Java Code Examples for org.apache.maven.shared.filtering.MavenFileFilter

The following examples show how to use org.apache.maven.shared.filtering.MavenFileFilter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jkube   Source File: MojoParameters.java    License: Eclipse Public License 2.0 5 votes vote down vote up
public MojoParameters(MavenSession session, MavenProject project, MavenArchiveConfiguration archive, MavenFileFilter mavenFileFilter,
                      MavenReaderFilter mavenFilterReader, Settings settings, String sourceDirectory, String outputDirectory, List<MavenProject> reactorProjects) {
    this.archive = archive;
    this.session = session;
    this.mavenFileFilter = mavenFileFilter;
    this.mavenFilterReader = mavenFilterReader;
    this.project = project;
    this.settings = settings;

    this.sourceDirectory = sourceDirectory;
    this.outputDirectory = outputDirectory;

    this.reactorProjects = reactorProjects;
}
 
Example 2
Source Project: sql-maven-plugin   Source File: SqlExecMojoTest.java    License: Apache License 2.0 5 votes vote down vote up
public void setUp()
    throws Exception
{
    super.setUp();
    p = new Properties();
    p.load( getClass().getResourceAsStream( "/test.properties" ) );

    mojo = new SqlExecMojo();

    // populate parameters
    mojo.setDriver( p.getProperty( "driver" ) );
    mojo.setUsername( p.getProperty( "user" ) );
    mojo.setPassword( p.getProperty( "password" ) );
    mojo.setUrl( p.getProperty( "url" ) );
    mojo.setDriverProperties( p.getProperty( "driverProperties" ) );
    mojo.setSqlCommand( null );
    mojo.setDelimiter( SqlExecMojo.DEFAULT_DELIMITER );// This will simulate the defaultValue of @Parameter (...)
    mojo.setOnError( SqlExecMojo.ON_ERROR_ABORT );
    mojo.setDelimiterType( DelimiterType.NORMAL );
    mojo.setEscapeProcessing( true );

    MavenFileFilter filter =
        (MavenFileFilter) lookup( "org.apache.maven.shared.filtering.MavenFileFilter", "default" );
    mojo.setFileFilter( filter );

    SecDispatcher securityDispatcher =
        (SecDispatcher) lookup( "org.sonatype.plexus.components.sec.dispatcher.SecDispatcher", "default" );
    mojo.setSecurityDispatcher( securityDispatcher );

    MavenProject project = new MavenProjectStub();
    setVariableValueToObject( mojo, "project", project );
}
 
Example 3
Source Project: docker-maven-plugin   Source File: MojoParameters.java    License: Apache License 2.0 5 votes vote down vote up
public MojoParameters(MavenSession session, MavenProject project, MavenArchiveConfiguration archive, MavenFileFilter mavenFileFilter,
        MavenReaderFilter mavenFilterReader, Settings settings, String sourceDirectory, String outputDirectory, List<MavenProject> reactorProjects) {
    this.archive = archive;
    this.session = session;
    this.mavenFileFilter = mavenFileFilter;
    this.mavenFilterReader = mavenFilterReader;
    this.project = project;
    this.settings = settings;

    this.sourceDirectory = sourceDirectory;
    this.outputDirectory = outputDirectory;
    
    this.reactorProjects = reactorProjects;
}
 
Example 4
Source Project: jkube   Source File: MojoParameters.java    License: Eclipse Public License 2.0 4 votes vote down vote up
public MavenFileFilter getMavenFileFilter() {
    return mavenFileFilter;
}
 
Example 5
Source Project: sql-maven-plugin   Source File: SqlExecMojo.java    License: Apache License 2.0 4 votes vote down vote up
public void setFileFilter( MavenFileFilter filter )
{
    this.fileFilter = filter;
}
 
Example 6
public MavenFileFilter getMavenFileFilter() {
    return params.getMavenFileFilter();
}
 
Example 7
Source Project: docker-maven-plugin   Source File: MojoParameters.java    License: Apache License 2.0 4 votes vote down vote up
public MavenFileFilter getMavenFileFilter() {
    return mavenFileFilter;
}