Attribute | Description | Required |
destfile | the JAR file to create. | Yes |
basedir | the directory from which to jar the files. | No |
compress | Not only store data but also compress them, defaults to true | No |
encoding | The character encoding to use for filenames inside the archive. Defaults to UTF8. It is not recommended to change this value as the created archive will most likely be unreadable for Java otherwise. | No |
filesonly | Store only file entries, defaults to false | No |
includes | comma- or space-separated list of patterns of files that must be included. All files are included when omitted. | No |
includesfile | the name of a file. Each line of this file is taken to be an include pattern | No |
excludes | comma- or space-separated list of patterns of files that must be excluded. No files (except default excludes) are excluded when omitted. | No |
excludesfile | the name of a file. Each line of this file is taken to be an exclude pattern | No |
defaultexcludes | indicates whether default excludes should be used or not ("yes"/"no"). Default excludes are used when omitted. | No |
manifest | the manifest file to use. This can be either the location of a manifest, or the name of a jar added through a fileset. If its the name of an added jar, the task expects the manifest to be in the jar at META-INF/MANIFEST.MF | No |
update | indicates whether to update or overwrite the destination file if it already exists. Default is "false". | No |
whenempty | behavior when no files match. Valid values are "fail", "skip", and "create". Default is "skip". | No |
duplicate | behavior when a duplicate file is found. Valid values are "add", "preserve", and "fail". The default value is "add". | No |
index | whether to create an index list to speed up classloading. This is a JDK 1.3+ specific feature. Defaults to false. | No |
manifestencoding | The encoding used to read the JAR manifest, when a manifest file is specified. | No, defaults to the platform encoding. |