|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiver.MavenArchiveConfiguration
public class MavenArchiveConfiguration
Capture common archive configuration.
Field Summary | |
---|---|
private boolean |
addMavenDescriptor
|
private boolean |
compress
|
private boolean |
forced
|
private boolean |
index
|
private ManifestConfiguration |
manifest
|
private java.util.Map |
manifestEntries
|
private java.io.File |
manifestFile
|
private java.util.List |
manifestSections
|
private java.io.File |
pomPropertiesFile
|
Constructor Summary | |
---|---|
MavenArchiveConfiguration()
|
Method Summary | |
---|---|
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 |
setManifestFile(java.io.File manifestFile)
|
void |
setPomPropertiesFile(java.io.File pomPropertiesFile)
Sets the location of the "pom.properties" file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean compress
private boolean index
private boolean addMavenDescriptor
private java.io.File manifestFile
private ManifestConfiguration manifest
private java.util.Map manifestEntries
private java.util.List manifestSections
private boolean forced
private java.io.File pomPropertiesFile
Constructor Detail |
---|
public MavenArchiveConfiguration()
Method Detail |
---|
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 addManifestSection(ManifestSection section)
public void addManifestSections(java.util.List list)
public boolean isManifestSectionsEmpty()
public java.util.List getManifestSections()
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |