Class Link.Compression
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Link.Compression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a nested element which can specify a pattern of files to compress.getLevel()
Required attribute containing level of compression.void
Sets an attribute that represents a list of file patterns to compress in the linked image, as a comma-separated list of PathMatcher patterns or pattern list files.void
setLevel
(Link.CompressionLevel level) Sets attribute indicating level of compression.Converts this element to a single jlink option value.void
validate()
Verifies this element's state.
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
getLevel
Required attribute containing level of compression.- Returns:
- compression level
-
setLevel
Sets attribute indicating level of compression.- Parameters:
level
- type of compression to apply to linked image
-
createFiles
Creates a nested element which can specify a pattern of files to compress.- Returns:
- new, unconfigured child element
-
setFiles
Sets an attribute that represents a list of file patterns to compress in the linked image, as a comma-separated list of PathMatcher patterns or pattern list files.- Parameters:
patternList
- comma-separated list of patterns and/or file names- See Also:
-
validate
public void validate()Verifies this element's state.- Throws:
BuildException
- if compression level is not setBuildException
- if any nested patterns are invalid
-
toCommandLineOption
Converts this element to a single jlink option value.- Returns:
- command line option representing this element's state
-