Ant 学习笔记
2006-09-04 14:34
459 查看
A project has three attributes:
A target has the following attributes:
Attribute | Description | Required |
name | the name of the project. | No |
default | the default target to use when no target is supplied. | Yes. |
basedir | the base directory from which all path calculations are done. This attribute might be overridden by setting the "basedir" property beforehand. When this is done, it must be omitted in the project tag. If neither the attribute nor the property have been set, the parent directory of the buildfile will be used. | No |
Attribute | Description | Required |
name | the name of the target. | Yes |
depends | a comma-separated list of names of targets on which this target depends. | No |
if | the name of the property that must be set in order for this target to execute. | No |
unless | the name of the property that must not be set in order for this target to execute. | No |
description | a short description of this target's function. | No |
相关文章推荐