Package org.codehaus.mojo.buildhelper
Class AbstractUpToDatePropertyMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
-
- org.codehaus.mojo.buildhelper.AbstractUpToDatePropertyMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
UpToDatePropertiesMojo
,UpToDatePropertyMojo
abstract class AbstractUpToDatePropertyMojo extends AbstractDefinePropertyMojo
Abstract base for setting properties according to whether sets of source and object resources are respectively up to date with each other.- Since:
- 1.12
-
-
Field Summary
-
Fields inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
project
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUpToDatePropertyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(UpToDatePropertySetting config)
private java.io.File
getFile(org.apache.maven.shared.model.fileset.FileSet fileSet, boolean useOutputDirectory, java.lang.String path)
private boolean
isUpToDate(java.io.File srcFile, java.io.File targetFile)
-
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
defineProperty, getProject
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
execute
protected void execute(UpToDatePropertySetting config) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getFile
private java.io.File getFile(org.apache.maven.shared.model.fileset.FileSet fileSet, boolean useOutputDirectory, java.lang.String path)
-
isUpToDate
private boolean isUpToDate(java.io.File srcFile, java.io.File targetFile)
-
-