public class SourcesFileMarkerHandler extends DefaultFileMarkerHandler
artifact, markerFilesDirectory| Constructor and Description |
|---|
SourcesFileMarkerHandler(org.apache.maven.artifact.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(org.apache.maven.artifact.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, setMarkerFilesDirectorypublic SourcesFileMarkerHandler(File markerFilesDirectory)
markerFilesDirectory - the marker files directory.public SourcesFileMarkerHandler(org.apache.maven.artifact.Artifact artifact,
File markerFilesDirectory,
boolean isResolved)
artifact - ArtifactmarkerFilesDirectory - marker files directory.isResolved - true/false.public File getMarkerFile()
getMarkerFile in class DefaultFileMarkerHandlerprotected File getMarkerFile(boolean res)
res - resolved or not.public boolean isMarkerSet()
throws org.apache.maven.plugin.MojoExecutionException
isMarkerSet in interface MarkerHandlerisMarkerSet in class DefaultFileMarkerHandlertrue if and only if the file or directory denoted by this abstract pathname exists;
false otherwiseorg.apache.maven.plugin.MojoExecutionException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file or
directorypublic boolean isMarkerOlder(org.apache.maven.artifact.Artifact theArtifact)
throws org.apache.maven.plugin.MojoExecutionException
isMarkerOlder in interface MarkerHandlerisMarkerOlder in class DefaultFileMarkerHandlertheArtifact - Artifactorg.apache.maven.plugin.MojoExecutionException - in case of an error.public void setMarker()
throws org.apache.maven.plugin.MojoExecutionException
setMarker in interface MarkerHandlersetMarker in class DefaultFileMarkerHandlerorg.apache.maven.plugin.MojoExecutionException - in case of an error.public boolean clearMarker()
throws org.apache.maven.plugin.MojoExecutionException
clearMarker in interface MarkerHandlerclearMarker in class DefaultFileMarkerHandlertrue 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 fileorg.apache.maven.plugin.MojoExecutionException - in case of an error.public boolean isResolved()
public void setResolved(boolean isResolved)
isResolved - The resolved to set.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.