>ant //默認調用名字爲build.xml的構建文件
>ant –propertyfile ftp.properties
需要屬性文件:
server.name=ftp.texas.austin.building7.eblox.org
Ant執行中的一些參數
>ant [option]
-help, –h
-projecthelp,-p 顯示descript中的信息
-version
-diagnostics 診斷,打印很多信息
-debug, –d
-lib 指定另外的Jar包
-logfile 指定輸出錯誤日誌至文件
-quite,-q 安靜的,隱藏一些提示輸出信息
-verbose,-v 提示信息很詳細
-buildfile 指定構建文件
-D= 設定構建文件中定義的變量
-find –s 查找構建文件,並執行找到的構建文件
Ant系統屬性
os.name:操作系統的名和
base.dir:項目引用的根路徑
ant.home:當前運行的Ant工具根目錄
ant.file:構建文件
ant.version:
ant.java.version
ant.project.name
java.version:
java.home
java.class.path:
line.separator:
user.home:用戶的home目錄,在Linux和UNIX中經常用到