public abstract class AbstractFileNameMapping extends java.lang.Object implements FileNameMapping
Artifact.getFile().| Modifier and Type | Field and Description |
|---|---|
private boolean |
useBaseVersion |
| Constructor and Description |
|---|
AbstractFileNameMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
generateFileName(org.apache.maven.artifact.Artifact a,
boolean addVersion)
Generates a standard file name for the specified
Artifact. |
void |
setUseBaseVersion(boolean useBaseVersion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapFileNamepublic final void setUseBaseVersion(boolean useBaseVersion)
setUseBaseVersion in interface FileNameMappinguseBaseVersion - true if the base version will be use false otherwise.protected java.lang.String generateFileName(org.apache.maven.artifact.Artifact a,
boolean addVersion)
Artifact.
Returns something like artifactId-version[-classifier].extension if addVersion is true.
Otherwise it generates something like artifactId[-classifier].extensiona - the artifact to generate a filename fromaddVersion - whether the version should be added