Class MergeCopyrightHeadersMojo

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

    @Mojo(name="merge-copyright-headers")
    public final class MergeCopyrightHeadersMojo
    extends org.apache.maven.plugin.AbstractMojo
    Merges two property files properly.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File[] inputFiles
      The files to merge.
      private java.io.File outputFile
      The merged file.
      private static java.lang.String PROPERTY_PREFIX
      Parameters property prefix.
      private java.lang.Boolean skip
      Skip this mojo.
      • 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()  
      • 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

      • PROPERTY_PREFIX

        private static final java.lang.String PROPERTY_PREFIX
        Parameters property prefix.
        See Also:
        Constant Field Values
      • outputFile

        @Parameter(property="merge.copyright.headers.outputFileoutputFile",
                   defaultValue="${project.build.directory}/merged.properties")
        private java.io.File outputFile
        The merged file.
      • inputFiles

        @Parameter(property="merge.copyright.headers.outputFileinputFiles")
        private java.io.File[] inputFiles
        The files to merge.
      • skip

        @Parameter(property="merge.copyright.headers.outputFileskip",
                   defaultValue="false")
        private java.lang.Boolean skip
        Skip this mojo.
    • Constructor Detail

      • MergeCopyrightHeadersMojo

        public MergeCopyrightHeadersMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException