ant available 属性值作用 通过路径声明一个类别名,或通过文件声明一个别名
Attribute | Description | Required |
property | 要设置的属性的名称。 | Yes |
value | 要设置属性的值. Defaults to "true". 默认是true | No |
classname | class类的类名称 | Yes |
file | 文件路径 | |
resource | The resource to look for in the JVM.看在JVM的资源。 | |
classpath | The classpath to use when looking upclassname orresource .用于当有classname和resource属性的时候 | No |
filepath | The path to use when looking up file . 路径当有file节点的时候 | No |
classpathref | The classpath to use, given as a reference to a path defined elsewhere. classpath中使用,因为在别处定义的路径作为一个参考。 | No |
type | The type of file to look for, either a directory (type="dir" ) or a file (type="file" ). If not set, the property will be set if the name specified in the file attribute exists as either a file or a directory. | No |
ignoresystemclasses | Ignore Ant's runtime classes, using only the specified classpath. Only affects the "classname" attribute. Defaults to "false" | No |
searchparents | This contains the behaviour of the "file" type. If true, the available task will, when searching for a file, search not only the directories specified but will also search the parent directories of those specified. If false, only the directories specified will be searched. Defaults to "false". Since Ant 1.7 | No |