public class MavenArchiveConfiguration extends Object
Constructor and Description |
---|
MavenArchiveConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addManifestEntries(Map<String,String> map) |
void |
addManifestEntry(String key,
String value) |
void |
addManifestSection(ManifestSection section) |
void |
addManifestSections(List<ManifestSection> list) |
ManifestConfiguration |
getManifest() |
Map<String,String> |
getManifestEntries() |
File |
getManifestFile() |
List<ManifestSection> |
getManifestSections() |
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(Map<String,String> manifestEntries) |
void |
setManifestFile(File manifestFile) |
void |
setManifestSections(List<ManifestSection> manifestSections) |
void |
setPomPropertiesFile(File pomPropertiesFile)
Sets the location of the "pom.properties" file.
|
void |
setRecompressAddedZips(boolean recompressAddedZips) |
public boolean isCompress()
compress
public boolean isRecompressAddedZips()
recompressAddedZips
public void setRecompressAddedZips(boolean recompressAddedZips)
recompressAddedZips
- recompressAddedZips
public boolean isIndex()
index
public boolean isAddMavenDescriptor()
addMavenDescriptor
public File getManifestFile()
manifestFile
public ManifestConfiguration getManifest()
manifest
public 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(File manifestFile)
manifestFile
- The manifest file.public void setManifest(ManifestConfiguration manifest)
manifest
- ManifestConfiguration
public void addManifestEntry(String key, String value)
key
- The key of the entry.value
- The value of the entry.public void addManifestEntries(Map<String,String> map)
map
- The whole map which should be added.public boolean isManifestEntriesEmpty()
public Map<String,String> getManifestEntries()
manifestEntries
public void setManifestEntries(Map<String,String> manifestEntries)
manifestEntries
- manifestEntries
public void addManifestSection(ManifestSection section)
section
- ManifestSection
public void addManifestSections(List<ManifestSection> list)
list
- Added list of ManifestSection
.public boolean isManifestSectionsEmpty()
public List<ManifestSection> getManifestSections()
manifestSections
public void setManifestSections(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 File getPomPropertiesFile()
public void setPomPropertiesFile(File pomPropertiesFile)
pomPropertiesFile
- "pom.properties" location or null.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.