public class MavenArchiveConfiguration extends Object
| Constructor and Description |
|---|
MavenArchiveConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addManifestEntries(Map<String,String> map)
addManifestEntries.
|
void |
addManifestEntry(String key,
String value)
addManifestEntry.
|
void |
addManifestSection(ManifestSection section)
addManifestSection.
|
void |
addManifestSections(List<ManifestSection> list)
addManifestSections.
|
ManifestConfiguration |
getManifest()
Getter for the field
manifest. |
Map<String,String> |
getManifestEntries()
Getter for the field
manifestEntries. |
File |
getManifestFile()
Getter for the field
manifestFile. |
List<ManifestSection> |
getManifestSections()
Getter for the field
manifestSections. |
File |
getPomPropertiesFile()
Returns the location of the "pom.properties" file.
|
boolean |
isAddMavenDescriptor()
isAddMavenDescriptor.
|
boolean |
isCompress()
isCompress.
|
boolean |
isForced()
Returns, whether recreating the archive is forced (default).
|
boolean |
isIndex()
Deprecated.
See JDK-8305597
|
boolean |
isManifestEntriesEmpty()
isManifestEntriesEmpty.
|
boolean |
isManifestSectionsEmpty()
isManifestSectionsEmpty.
|
boolean |
isRecompressAddedZips()
isRecompressAddedZips.
|
void |
setAddMavenDescriptor(boolean addMavenDescriptor)
Setter for the field
addMavenDescriptor. |
void |
setCompress(boolean compress)
Setter for the field
compress. |
void |
setForced(boolean forced)
Sets, whether recreating the archive is forced (default).
|
void |
setIndex(boolean index)
Deprecated.
See JDK-8305597
|
void |
setManifest(ManifestConfiguration manifest)
Setter for the field
manifest. |
void |
setManifestEntries(Map<String,String> manifestEntries)
Setter for the field
manifestEntries. |
void |
setManifestFile(File manifestFile)
Setter for the field
manifestFile. |
void |
setManifestSections(List<ManifestSection> manifestSections)
Setter for the field
manifestSections. |
void |
setPomPropertiesFile(File pomPropertiesFile)
Sets the location of the "pom.properties" file.
|
void |
setRecompressAddedZips(boolean recompressAddedZips)
Setter for the field
recompressAddedZips. |
public boolean isCompress()
isCompress.
compresspublic boolean isRecompressAddedZips()
isRecompressAddedZips.
recompressAddedZipspublic void setRecompressAddedZips(boolean recompressAddedZips)
Setter for the field recompressAddedZips.
recompressAddedZips - recompressAddedZips@Deprecated public boolean isIndex()
isIndex.
indexpublic boolean isAddMavenDescriptor()
isAddMavenDescriptor.
addMavenDescriptorpublic File getManifestFile()
Getter for the field manifestFile.
manifestFilepublic ManifestConfiguration getManifest()
Getter for the field manifest.
manifestpublic void setCompress(boolean compress)
Setter for the field compress.
compress - set compress to true/false.@Deprecated public void setIndex(boolean index)
Setter for the field index.
index - set index to true/false.public void setAddMavenDescriptor(boolean addMavenDescriptor)
Setter for the field addMavenDescriptor.
addMavenDescriptor - activate to add maven descriptor or not.public void setManifestFile(File manifestFile)
Setter for the field manifestFile.
manifestFile - The manifest file.public void setManifest(ManifestConfiguration manifest)
Setter for the field manifest.
manifest - ManifestConfigurationpublic void addManifestEntry(String key, String value)
addManifestEntry.
key - The key of the entry.value - The value of the entry.public void addManifestEntries(Map<String,String> map)
addManifestEntries.
map - The whole map which should be added.public boolean isManifestEntriesEmpty()
isManifestEntriesEmpty.
public Map<String,String> getManifestEntries()
Getter for the field manifestEntries.
manifestEntriespublic void setManifestEntries(Map<String,String> manifestEntries)
Setter for the field manifestEntries.
manifestEntries - manifestEntriespublic void addManifestSection(ManifestSection section)
addManifestSection.
section - ManifestSectionpublic void addManifestSections(List<ManifestSection> list)
addManifestSections.
list - Added list of ManifestSection.public boolean isManifestSectionsEmpty()
isManifestSectionsEmpty.
public List<ManifestSection> getManifestSections()
Getter for the field manifestSections.
manifestSectionspublic void setManifestSections(List<ManifestSection> manifestSections)
Setter for the field 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 File getPomPropertiesFile()
public void setPomPropertiesFile(File pomPropertiesFile)
pomPropertiesFile - "pom.properties" location or null.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.