org.apache.maven.archiver
public class MavenArchiveConfiguration extends java.lang.Object
Constructor and Description |
---|
MavenArchiveConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addManifestEntries(java.util.Map map) |
void |
addManifestEntry(java.lang.Object key,
java.lang.Object value) |
void |
addManifestSection(ManifestSection section) |
void |
addManifestSections(java.util.List list) |
ManifestConfiguration |
getManifest() |
java.util.Map |
getManifestEntries() |
java.io.File |
getManifestFile() |
java.util.List |
getManifestSections() |
java.io.File |
getPomPropertiesFile()
Returns the location of the "pom.properties" file.
|
boolean |
isAddMavenDescriptor() |
boolean |
isCompress() |
boolean |
isForced()
Returns, whether recreating the archive is forced (default).
|
boolean |
isIndex() |
boolean |
isManifestEntriesEmpty() |
boolean |
isManifestSectionsEmpty() |
void |
setAddMavenDescriptor(boolean addMavenDescriptor) |
void |
setCompress(boolean compress) |
void |
setForced(boolean forced)
Sets, whether recreating the archive is forced (default).
|
void |
setIndex(boolean index) |
void |
setManifest(ManifestConfiguration manifest) |
void |
setManifestEntries(java.util.Map manifestEntries) |
void |
setManifestFile(java.io.File manifestFile) |
void |
setManifestSections(java.util.List manifestSections) |
void |
setPomPropertiesFile(java.io.File pomPropertiesFile)
Sets the location of the "pom.properties" file.
|
public boolean isCompress()
public boolean isIndex()
public boolean isAddMavenDescriptor()
public java.io.File getManifestFile()
public ManifestConfiguration getManifest()
public void setCompress(boolean compress)
public void setIndex(boolean index)
public void setAddMavenDescriptor(boolean addMavenDescriptor)
public void setManifestFile(java.io.File manifestFile)
public void setManifest(ManifestConfiguration manifest)
public void addManifestEntry(java.lang.Object key, java.lang.Object value)
public void addManifestEntries(java.util.Map map)
public boolean isManifestEntriesEmpty()
public java.util.Map getManifestEntries()
public void setManifestEntries(java.util.Map manifestEntries)
public void addManifestSection(ManifestSection section)
public void addManifestSections(java.util.List list)
public boolean isManifestSectionsEmpty()
public java.util.List getManifestSections()
public void setManifestSections(java.util.List manifestSections)
public boolean isForced()
Returns, whether recreating the archive is forced (default). Setting this option to false means, that the archiver should compare the timestamps of included files with the timestamp of the target archive and rebuild the archive only, if the latter timestamp precedes the former timestamps. Checking for timestamps will typically offer a performance gain (in particular, if the following steps in a build can be suppressed, if an archive isn't recrated) on the cost that you get inaccurate results from time to time. In particular, removal of source files won't be detected.
An archiver doesn't necessarily support checks for uptodate. If so, setting this option to true will simply be ignored.
setForced(boolean)
public void setForced(boolean forced)
Sets, whether recreating the archive is forced (default). Setting this option to false means, that the archiver should compare the timestamps of included files with the timestamp of the target archive and rebuild the archive only, if the latter timestamp precedes the former timestamps. Checking for timestamps will typically offer a performance gain (in particular, if the following steps in a build can be suppressed, if an archive isn't recrated) on the cost that you get inaccurate results from time to time. In particular, removal of source files won't be detected.
An archiver doesn't necessarily support checks for uptodate. If so, setting this option to true will simply be ignored.
forced
- True, if the target archive should always be created; false
otherwiseisForced()
public java.io.File getPomPropertiesFile()
public void setPomPropertiesFile(java.io.File pomPropertiesFile)
pomPropertiesFile
- "pom.properties" location or null.Copyright © 2014. All Rights Reserved.