Class UpToDatePropertyMojo

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

    @Mojo(name="uptodate-property",
          defaultPhase=VALIDATE,
          threadSafe=true)
    public class UpToDatePropertyMojo
    extends AbstractUpToDatePropertyMojo
    Sets a property according to whether one set of resources is up to date with respect to another.
    Since:
    1.12
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String elseValue
      The property value to set if the up-to-date condition is not fulfilled.
      private org.apache.maven.shared.model.fileset.FileSet fileSet
      The file set to check.
      private java.lang.String name
      The name of the property to set.
      private boolean skip
      Disables the plug-in execution.
      private java.lang.String value
      The property value to set if the up-to-date condition is fulfilled.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Field Detail

      • name

        @Parameter(required=true)
        private java.lang.String name
        The name of the property to set.
      • skip

        @Parameter(property="buildhelper.uptodateproperty.skip",
                   defaultValue="false")
        private boolean skip
        Disables the plug-in execution.
      • fileSet

        @Parameter(required=true)
        private org.apache.maven.shared.model.fileset.FileSet fileSet
        The file set to check.
      • value

        @Parameter(defaultValue="true")
        private java.lang.String value
        The property value to set if the up-to-date condition is fulfilled.
      • elseValue

        @Parameter(alias="else")
        private java.lang.String elseValue
        The property value to set if the up-to-date condition is not fulfilled.
    • Constructor Detail

      • UpToDatePropertyMojo

        public UpToDatePropertyMojo()
    • 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