public class SourcesFileMarkerHandler extends DefaultFileMarkerHandler
artifact, markerFilesDirectory
Constructor and Description |
---|
SourcesFileMarkerHandler(Artifact artifact,
File markerFilesDirectory,
boolean isResolved) |
SourcesFileMarkerHandler(File markerFilesDirectory) |
Modifier and Type | Method and Description |
---|---|
boolean |
clearMarker()
Deletes the file or directory denoted by this abstract pathname.
|
File |
getMarkerFile()
Returns properly formatted File
|
protected File |
getMarkerFile(boolean res)
Get MarkerFile, exposed for unit testing purposes
|
boolean |
isMarkerOlder(Artifact theArtifact) |
boolean |
isMarkerSet()
Tests whether the file or directory denoted by this abstract pathname
exists.
|
boolean |
isResolved() |
void |
setMarker() |
void |
setResolved(boolean isResolved) |
getArtifact, getMarkerFilesDirectory, setArtifact, setMarkerFilesDirectory
public SourcesFileMarkerHandler(File markerFilesDirectory)
public File getMarkerFile()
getMarkerFile
in class DefaultFileMarkerHandler
protected File getMarkerFile(boolean res)
res
- resolved or not.public boolean isMarkerSet() throws MojoExecutionException
isMarkerSet
in interface MarkerHandler
isMarkerSet
in class DefaultFileMarkerHandler
true
if and only if the file or directory denoted
by this abstract pathname exists; false
otherwiseMojoExecutionException
- If a security manager exists and its SecurityManager.checkRead(java.lang.String)
method denies read access to the file or directorypublic boolean isMarkerOlder(Artifact theArtifact) throws MojoExecutionException
isMarkerOlder
in interface MarkerHandler
isMarkerOlder
in class DefaultFileMarkerHandler
MojoExecutionException
public void setMarker() throws MojoExecutionException
setMarker
in interface MarkerHandler
setMarker
in class DefaultFileMarkerHandler
MojoExecutionException
public boolean clearMarker() throws MojoExecutionException
clearMarker
in interface MarkerHandler
clearMarker
in class DefaultFileMarkerHandler
true
if and only if the file or directory is
successfully deleted; false
otherwiseSecurityException
- If a security manager exists and its SecurityManager.checkDelete(java.lang.String)
method denies delete access to the fileMojoExecutionException
public boolean isResolved()
public void setResolved(boolean isResolved)
isResolved
- The resolved to set.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.