默认的 ant 配置文件名是什么?

What's the name of the default ant config file name?

其实我是蚂蚁新手。我想知道默认的 ant 配置文件名。是 build.xml 还是其他名称?如果可以,我可以更改该名称吗?如果是这样,我该如何执行脚本?

是的,默认构建文件是当前目录中的build.xml

所以如果你执行

ant

然后 ant 将尝试在当前目录中加载 build.xml。

您可以通过使用“-f”选项来指定具有不同名称或位置的文件,例如

ant -f ../other_dir/build.xml

ant -f special.xml