public class MavenArchiveConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
addMavenDescriptor |
private boolean |
compress |
private boolean |
forced |
private boolean |
index |
private ManifestConfiguration |
manifest |
private java.util.Map<java.lang.String,java.lang.String> |
manifestEntries |
private java.io.File |
manifestFile |
private java.util.List<ManifestSection> |
manifestSections |
private java.io.File |
pomPropertiesFile |
private boolean |
recompressAddedZips |
| Constructor and Description |
|---|
MavenArchiveConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addManifestEntries(java.util.Map<java.lang.String,java.lang.String> map) |
void |
addManifestEntry(java.lang.String key,
java.lang.String value) |
void |
addManifestSection(ManifestSection section) |
void |
addManifestSections(java.util.List<ManifestSection> list) |
ManifestConfiguration |
getManifest() |
java.util.Map<java.lang.String,java.lang.String> |
getManifestEntries() |
java.io.File |
getManifestFile() |
java.util.List<ManifestSection> |
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() |
boolean |
isRecompressAddedZips() |
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<java.lang.String,java.lang.String> manifestEntries) |
void |
setManifestFile(java.io.File manifestFile) |
void |
setManifestSections(java.util.List<ManifestSection> manifestSections) |
void |
setPomPropertiesFile(java.io.File pomPropertiesFile)
Sets the location of the "pom.properties" file.
|
void |
setRecompressAddedZips(boolean recompressAddedZips) |
private boolean compress
private boolean recompressAddedZips
private boolean index
private boolean addMavenDescriptor
private java.io.File manifestFile
private ManifestConfiguration manifest
private java.util.Map<java.lang.String,java.lang.String> manifestEntries
private java.util.List<ManifestSection> manifestSections
private boolean forced
private java.io.File pomPropertiesFile
public boolean isCompress()
compresspublic boolean isRecompressAddedZips()
recompressAddedZipspublic void setRecompressAddedZips(boolean recompressAddedZips)
recompressAddedZips - recompressAddedZipspublic boolean isIndex()
indexpublic boolean isAddMavenDescriptor()
addMavenDescriptorpublic java.io.File getManifestFile()
manifestFilepublic ManifestConfiguration getManifest()
manifestpublic void setCompress(boolean compress)
compress - set compress to true/false.public void setIndex(boolean index)
index - set index to true/false.public void setAddMavenDescriptor(boolean addMavenDescriptor)
addMavenDescriptor - activate to add maven descriptor or not.public void setManifestFile(java.io.File manifestFile)
manifestFile - The manifest file.public void setManifest(ManifestConfiguration manifest)
manifest - ManifestConfigurationpublic void addManifestEntry(java.lang.String key,
java.lang.String value)
key - The key of the entry.value - The value of the entry.public void addManifestEntries(java.util.Map<java.lang.String,java.lang.String> map)
map - The whole map which should be added.public boolean isManifestEntriesEmpty()
public java.util.Map<java.lang.String,java.lang.String> getManifestEntries()
manifestEntriespublic void setManifestEntries(java.util.Map<java.lang.String,java.lang.String> manifestEntries)
manifestEntries - manifestEntriespublic void addManifestSection(ManifestSection section)
section - ManifestSectionpublic void addManifestSections(java.util.List<ManifestSection> list)
list - Added list of ManifestSection.public boolean isManifestSectionsEmpty()
public java.util.List<ManifestSection> getManifestSections()
manifestSectionspublic void setManifestSections(java.util.List<ManifestSection> manifestSections)
manifestSections - set The list of ManifestSection.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.