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, setMarkerFilesDirectorypublic SourcesFileMarkerHandler(File markerFilesDirectory)
markerFilesDirectory - the marker files directory.public File getMarkerFile()
getMarkerFile in class DefaultFileMarkerHandlerprotected File getMarkerFile(boolean res)
res - resolved or not.public boolean isMarkerSet()
                    throws MojoExecutionException
isMarkerSet in interface MarkerHandlerisMarkerSet in class DefaultFileMarkerHandlertrue 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 MarkerHandlerisMarkerOlder in class DefaultFileMarkerHandlertheArtifact - ArtifactMojoExecutionException - in case of an error.public void setMarker()
               throws MojoExecutionException
setMarker in interface MarkerHandlersetMarker in class DefaultFileMarkerHandlerMojoExecutionException - in case of an error.public boolean clearMarker()
                    throws 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 fileMojoExecutionException - in case of an error.public boolean isResolved()
public void setResolved(boolean isResolved)
isResolved - The resolved to set.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.