Package org.codehaus.mojo.buildhelper
Class UpToDatePropertyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
org.codehaus.mojo.buildhelper.AbstractUpToDatePropertyMojo
org.codehaus.mojo.buildhelper.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
FieldsModifier and TypeFieldDescriptionprivate String
The property value to set if the up-to-date condition is not fulfilled.private org.apache.maven.shared.model.fileset.FileSet
The file set to check.private String
The name of the property to set.private boolean
Disables the plug-in execution.private String
The property value to set if the up-to-date condition is fulfilled.Fields inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractUpToDatePropertyMojo
execute
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
defineProperty, getProject
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
name
The name of the property to set. -
skip
@Parameter(property="buildhelper.uptodateproperty.skip", defaultValue="false") private boolean skipDisables the plug-in execution. -
fileSet
@Parameter(required=true) private org.apache.maven.shared.model.fileset.FileSet fileSetThe file set to check. -
value
The property value to set if the up-to-date condition is fulfilled. -
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
-