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