public class DefaultFileMarkerHandler extends java.lang.Object implements MarkerHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.artifact.Artifact |
artifact |
protected java.io.File |
markerFilesDirectory |
| Constructor and Description |
|---|
DefaultFileMarkerHandler(org.apache.maven.artifact.Artifact theArtifact,
java.io.File theMarkerFilesDirectory) |
DefaultFileMarkerHandler(java.io.File theMarkerFilesDirectory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearMarker()
Deletes the file or directory denoted by this abstract pathname.
|
org.apache.maven.artifact.Artifact |
getArtifact() |
protected java.io.File |
getMarkerFile()
Returns properly formatted File
|
java.io.File |
getMarkerFilesDirectory() |
boolean |
isMarkerOlder(org.apache.maven.artifact.Artifact artifact1) |
boolean |
isMarkerSet()
Tests whether the file or directory denoted by this abstract pathname exists.
|
void |
setArtifact(org.apache.maven.artifact.Artifact artifact) |
void |
setMarker() |
void |
setMarkerFilesDirectory(java.io.File markerFilesDirectory) |
protected org.apache.maven.artifact.Artifact artifact
protected java.io.File markerFilesDirectory
public DefaultFileMarkerHandler(java.io.File theMarkerFilesDirectory)
public DefaultFileMarkerHandler(org.apache.maven.artifact.Artifact theArtifact,
java.io.File theMarkerFilesDirectory)
protected java.io.File getMarkerFile()
public boolean isMarkerSet()
throws org.apache.maven.plugin.MojoExecutionException
isMarkerSet in interface MarkerHandlertrue if and only if the file or directory denoted by this abstract pathname exists;
false otherwisejava.lang.SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file or
directoryorg.apache.maven.plugin.MojoExecutionExceptionpublic boolean isMarkerOlder(org.apache.maven.artifact.Artifact artifact1)
throws org.apache.maven.plugin.MojoExecutionException
isMarkerOlder in interface MarkerHandlerorg.apache.maven.plugin.MojoExecutionExceptionpublic void setMarker()
throws org.apache.maven.plugin.MojoExecutionException
setMarker in interface MarkerHandlerorg.apache.maven.plugin.MojoExecutionExceptionpublic boolean clearMarker()
throws org.apache.maven.plugin.MojoExecutionException
clearMarker in interface MarkerHandlertrue if and only if the file or directory is successfully deleted; false
otherwisejava.lang.SecurityException - If a security manager exists and its SecurityManager.checkDelete(java.lang.String) method denies delete access to the fileorg.apache.maven.plugin.MojoExecutionExceptionpublic org.apache.maven.artifact.Artifact getArtifact()
public void setArtifact(org.apache.maven.artifact.Artifact artifact)
setArtifact in interface MarkerHandlerartifact - The artifact to set.public java.io.File getMarkerFilesDirectory()
public void setMarkerFilesDirectory(java.io.File markerFilesDirectory)
markerFilesDirectory - The markerFilesDirectory to set.