Class FilterTestSourcesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="filter-test-sources",
          defaultPhase=GENERATE_TEST_SOURCES,
          threadSafe=true)
    public class FilterTestSourcesMojo
    extends AbstractFilterSourcesMojo
    This mojo helps adding a filtered source folder in one go. This is typically useful if you want to use properties coming from the POM inside parts of your test source code that requires real constants, like annotations for example.
    • Field Detail

      • testSourceDirectory

        @Parameter(defaultValue="${basedir}/src/test/java-templates")
        private java.io.File testSourceDirectory
        Source directory that will be first filtered and then added as a classical source folder.
      • testOutputDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-test-sources/java-templates")
        private java.io.File testOutputDirectory
        Output folder where filtered test sources will land.
    • Constructor Detail

      • FilterTestSourcesMojo

        public FilterTestSourcesMojo()