Class MavenArchiveConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
private ManifestConfiguration
private File
private List<ManifestSection>
private File
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addManifestEntries
(Map<String, String> map) void
addManifestEntry
(String key, String value) void
addManifestSection
(ManifestSection section) void
Returns the location of the "pom.properties" file.boolean
boolean
boolean
isForced()
Returns, whether recreating the archive is forced (default).boolean
isIndex()
boolean
boolean
boolean
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)
-
Field Details
-
compress
private boolean compress -
recompressAddedZips
private boolean recompressAddedZips -
index
private boolean index -
addMavenDescriptor
private boolean addMavenDescriptor -
manifestFile
-
manifest
-
manifestEntries
-
manifestSections
-
forced
private boolean forced- Since:
- 2.2
-
pomPropertiesFile
- Since:
- 2.3
-
-
Constructor Details
-
MavenArchiveConfiguration
public MavenArchiveConfiguration()
-
-
Method Details
-
isCompress
public boolean isCompress()- Returns:
compress
-
isRecompressAddedZips
public boolean isRecompressAddedZips()- Returns:
recompressAddedZips
-
setRecompressAddedZips
public void setRecompressAddedZips(boolean recompressAddedZips) - Parameters:
recompressAddedZips
-recompressAddedZips
-
isIndex
public boolean isIndex()- Returns:
index
-
isAddMavenDescriptor
public boolean isAddMavenDescriptor()- Returns:
addMavenDescriptor
-
getManifestFile
- Returns:
manifestFile
-
getManifest
- Returns:
manifest
-
setCompress
public void setCompress(boolean compress) - Parameters:
compress
- set compress to true/false.
-
setIndex
public void setIndex(boolean index) - Parameters:
index
- set index to true/false.
-
setAddMavenDescriptor
public void setAddMavenDescriptor(boolean addMavenDescriptor) - Parameters:
addMavenDescriptor
- activate to add maven descriptor or not.
-
setManifestFile
- Parameters:
manifestFile
- The manifest file.
-
setManifest
- Parameters:
manifest
-ManifestConfiguration
-
addManifestEntry
- Parameters:
key
- The key of the entry.value
- The value of the entry.
-
addManifestEntries
- Parameters:
map
- The whole map which should be added.
-
isManifestEntriesEmpty
public boolean isManifestEntriesEmpty()- Returns:
- are there entries true yes false otherwise.
-
getManifestEntries
- Returns:
manifestEntries
-
setManifestEntries
- Parameters:
manifestEntries
-manifestEntries
-
addManifestSection
- Parameters:
section
-ManifestSection
-
addManifestSections
- Parameters:
list
- Added list ofManifestSection
.
-
isManifestSectionsEmpty
public boolean isManifestSectionsEmpty()- Returns:
- if manifestSections is empty or not.
-
getManifestSections
- Returns:
manifestSections
-
setManifestSections
- 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.
-