Class ModifyEE9ToEE8ServiceLoaderFiles

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

    @Mojo(name="modify-service-loader-files-ee9-to-ee8",
          defaultPhase=PROCESS_RESOURCES,
          threadSafe=true)
    public class ModifyEE9ToEE8ServiceLoaderFiles
    extends org.apache.maven.plugin.AbstractMojo
    Modify services files from EE9 project to be compiled with EE8 dependencies
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> extraFileNames
      extra file names to change content
      private java.io.File outputDirectory  
      protected org.apache.maven.project.MavenProject project
      Maven Project.
      private boolean skip  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      private java.lang.String mapFileName​(java.lang.String className)  
      void setOutputDirectory​(java.io.File outputDirectory)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • skip

        @Parameter(property="jetty.modifysources.servicesloader.files.skip")
        private boolean skip
      • outputDirectory

        @Parameter(defaultValue="${project.build.outputDirectory}")
        private java.io.File outputDirectory
      • project

        @Parameter(defaultValue="${project}",
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        Maven Project.
      • extraFileNames

        @Parameter
        private java.util.List<java.lang.String> extraFileNames
        extra file names to change content
    • Constructor Detail

      • ModifyEE9ToEE8ServiceLoaderFiles

        public ModifyEE9ToEE8ServiceLoaderFiles()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • mapFileName

        private java.lang.String mapFileName​(java.lang.String className)
      • setOutputDirectory

        public void setOutputDirectory​(java.io.File outputDirectory)