【发布时间】:2015-08-20 21:39:56
【问题描述】:
我对使用构建文件和 Ant 从命令行编译和执行比较陌生,所以我想知道如何修改从 netbeans 自动生成的 build-impl.xml 文件,以便在它编译后它还执行程序。
目前,当我在列出 build.xml 文件的命令窗口中仅键入“ant”时,它会编译等等,然后说
-do-jar-copylibs:
[copylibs] Nothing to copy.
[echo] To run this application from the command line without Ant, try:
[echo] java -jar "C:\Users\Eric\Documents\Word Documents\Java Test Code\NetbeansVersion\Cops\dist\Cops.jar"
我可以运行该命令,它会运行良好,但我希望程序只需键入 ant 即可执行。
build.xml 文件 - Pastebin
Build-impl.xml 文件 - Pastebin
【问题讨论】:
标签: ant build execute build.xml