ANT Notes
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
ANT notes:
(1) Path 和 value的使用
对于需要绝对路径名的应用,则要求使用Path属性。
对于value,属性文本将不做任何改动地传递给正在执行的进程。对于Path属性,诸如"familyTree.xml"的文本在传递给进程之前将被转换为一个平台专有的路径,比如"C:\path\to\file\familyTree.xml"。
(2) 任何将一个路径形式的结构作为一个命令行参数传递:
<arg path = "/temp:/tmp"/>
在Windows系统中,这将转换为C:\temp;C:\tmp
在Windows上,;被用作路径间的连接符,而在Linux/Mac等POSIX Platform上,则是“:”.
(3)
You can access environment variables with the property element's environment attribute, which sets the prefix to use for environment variables ("env" is customary in Ant files); after you set that prefix, you can reference environment variables by name using that prefix.