运行ant 显示结果如下
c:\apacheant\samples> antBuildfile: buildxml
Init :
AsimpleHelloObject:
[echo] Wrote AsimpleHelloObjectjava
compile:
[javac] Compiling source file to c:\apacheant\samples
run :
[java] AsimpleHelloObjectmain was called[echo] Ant appears to be successfully installed
BUILDE SUCCESSFUL
Total time : seconds
到此你安装的ANT以及环境已经设置成功如果有以下警告
Warning: JAVA_HOME environment variable is not set If build fails because sun* classes could not be found you will need to set the JAVA_HOME environment variable to the installation directory of java
表示你需要设置JAVA_HOME环境指定你安装的JDK 目录如何运用Ant 中的各种命令我会在以后编写《ANT文档》介绍安装JBOSS
[] [] [] [] [] [] [] []