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

The following examples show how to use org.apache.maven.shared.filtering.MavenFileFilter. 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 File: MojoParameters.java    From jkube with 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 File: SqlExecMojoTest.java    From sql-maven-plugin with 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 File: MojoParameters.java    From docker-maven-plugin with 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 File: MojoParameters.java    From jkube with Eclipse Public License 2.0 4 votes vote down vote up
public MavenFileFilter getMavenFileFilter() {
    return mavenFileFilter;
}
 
Example #5
Source File: SqlExecMojo.java    From sql-maven-plugin with Apache License 2.0 4 votes vote down vote up
public void setFileFilter( MavenFileFilter filter )
{
    this.fileFilter = filter;
}
 
Example #6
Source File: DockerAssemblyConfigurationSource.java    From docker-maven-plugin with Apache License 2.0 4 votes vote down vote up
public MavenFileFilter getMavenFileFilter() {
    return params.getMavenFileFilter();
}
 
Example #7
Source File: MojoParameters.java    From docker-maven-plugin with Apache License 2.0 4 votes vote down vote up
public MavenFileFilter getMavenFileFilter() {
    return mavenFileFilter;
}