Class MavenArchiveConfiguration
- Author:
- Brett Porter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addManifestEntries
(Map<String, String> map) addManifestEntries.void
addManifestEntry
(String key, String value) addManifestEntry.void
addManifestSection
(ManifestSection section) addManifestSection.void
addManifestSections.Getter for the fieldmanifest
.Getter for the fieldmanifestEntries
.Getter for the fieldmanifestFile
.Getter for the fieldmanifestSections
.Returns the location of the "pom.properties" file.boolean
isAddMavenDescriptor.boolean
isCompress.boolean
isForced()
Returns, whether recreating the archive is forced (default).boolean
isManifestEntriesEmpty.boolean
isManifestSectionsEmpty.boolean
isRecompressAddedZips.void
setAddMavenDescriptor
(boolean addMavenDescriptor) Setter for the fieldaddMavenDescriptor
.void
setCompress
(boolean compress) Setter for the fieldcompress
.void
setForced
(boolean forced) Sets, whether recreating the archive is forced (default).void
setManifest
(ManifestConfiguration manifest) Setter for the fieldmanifest
.void
setManifestEntries
(Map<String, String> manifestEntries) Setter for the fieldmanifestEntries
.void
setManifestFile
(Path manifestFile) Setter for the fieldmanifestFile
.void
setManifestSections
(List<ManifestSection> manifestSections) Setter for the fieldmanifestSections
.void
setPomPropertiesFile
(Path pomPropertiesFile) Sets the location of the "pom.properties" file.void
setRecompressAddedZips
(boolean recompressAddedZips) Setter for the fieldrecompressAddedZips
.
-
Constructor Details
-
MavenArchiveConfiguration
public MavenArchiveConfiguration()
-
-
Method Details
-
isCompress
public boolean isCompress()isCompress.
- Returns:
compress
-
isRecompressAddedZips
public boolean isRecompressAddedZips()isRecompressAddedZips.
- Returns:
recompressAddedZips
-
setRecompressAddedZips
public void setRecompressAddedZips(boolean recompressAddedZips) Setter for the field
recompressAddedZips
.- Parameters:
recompressAddedZips
-recompressAddedZips
-
isAddMavenDescriptor
public boolean isAddMavenDescriptor()isAddMavenDescriptor.
- Returns:
addMavenDescriptor
-
getManifestFile
Getter for the field
manifestFile
.- Returns:
manifestFile
-
getManifest
Getter for the field
manifest
.- Returns:
manifest
-
setCompress
public void setCompress(boolean compress) Setter for the field
compress
.- Parameters:
compress
- set compress to true/false.
-
setAddMavenDescriptor
public void setAddMavenDescriptor(boolean addMavenDescriptor) Setter for the field
addMavenDescriptor
.- Parameters:
addMavenDescriptor
- activate to add maven descriptor or not.
-
setManifestFile
Setter for the field
manifestFile
.- Parameters:
manifestFile
- The manifest file.
-
setManifest
Setter for the field
manifest
.- Parameters:
manifest
-ManifestConfiguration
-
addManifestEntry
addManifestEntry.
- Parameters:
key
- The key of the entry.value
- The value of the entry.
-
addManifestEntries
addManifestEntries.
- Parameters:
map
- The whole map which should be added.
-
isManifestEntriesEmpty
public boolean isManifestEntriesEmpty()isManifestEntriesEmpty.
- Returns:
- are there entries true yes false otherwise.
-
getManifestEntries
Getter for the field
manifestEntries
.- Returns:
manifestEntries
-
setManifestEntries
Setter for the field
manifestEntries
.- Parameters:
manifestEntries
-manifestEntries
-
addManifestSection
addManifestSection.
- Parameters:
section
-ManifestSection
-
addManifestSections
addManifestSections.
- Parameters:
list
- Added list ofManifestSection
.
-
isManifestSectionsEmpty
public boolean isManifestSectionsEmpty()isManifestSectionsEmpty.
- Returns:
- if manifestSections is empty or not.
-
getManifestSections
Getter for the field
manifestSections
.- Returns:
manifestSections
-
setManifestSections
Setter for the field
manifestSections
.- Parameters:
manifestSections
- set The list ofManifestSection
.
-
isForced
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.
- Returns:
- True, if the target archive should always be created; false otherwise
- See Also:
-
setForced
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.
- Parameters:
forced
- True, if the target archive should always be created; false otherwise- See Also:
-
getPomPropertiesFile
Returns the location of the "pom.properties" file. May be null, in which case a default value is choosen.- Returns:
- "pom.properties" location or null.
-
setPomPropertiesFile
Sets the location of the "pom.properties" file. May be null, in which case a default value is choosen.- Parameters:
pomPropertiesFile
- "pom.properties" location or null.
-