Class UpToDatePropertyMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 Details

    • name

      @Parameter(required=true) private 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 String value
      The property value to set if the up-to-date condition is fulfilled.
    • elseValue

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

    • UpToDatePropertyMojo

      public UpToDatePropertyMojo()
  • Method Details

    • 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