The following command will recursively search for ant build file in the directories and then its parent directories, till it finds it; and then executes it.以下命令將遞歸搜索為螞蟻在建立檔案的目錄,然後它的父目錄中,直到它認為有;然後執行它。 In short you can use this command to manage your project from any subdirectory of the project.在短期內您可以使用此命令來管理您的項目從任何子目錄該項目。

ant -s [build file name] 螞蟻[建立檔案名稱]

If you are specifying a target on the commandline then you should specify it as follows:如果您所指定的目標上的命令,那麼你應該指定它如下:

ant target_name -s [build file name] 螞蟻target_name - [建立檔案名稱]

Note: build file name is optional; default is build.xml注:建立檔案名稱是可選的;默認是build.xml