本文摘自PHP中文网,作者藏色散人,侵删。

Apache Ant是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。默认情况下,它的buildfile(XML文件)名为build.xml。
每一个buildfile含有一个<project>和至少一个预设的<target>,这些targets包含许多task elements。每一个task element有一个用来被参考的id,此id必须是唯一的。
build.xml 范例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?xml version= "1.0" ?>
<project name= "Hello World" default = "execute" >
<target name= "init" >
< mkdir dir= "build/classes" />
< mkdir dir= "dist" />
</target>
<target name= "compile" depends= "init" >
<javac srcdir= "src" destdir= "build/classes" />
</target>
<target name= "compress" depends= "compile" >
<jar destfile= "dist/HelloWorld.jar" basedir= "build/classes" />
</target>
<target name= "execute" depends= "compile" >
<java classname= "HelloWorld" classpath= "build/classes" />
</target>
</project>
|
更多Apache相关知识,请访问Apache使用教程栏目!
以上就是apache ant是什么意思的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
centos安装Apache服务器无法访问
Apache spark是什么意思?
lamp是什么意思
ubuntu如何卸载Apache
Apache组织为什么这么厉害
怎么看Apache的端口号
Apache禁用sslv3的方法
如何设置Apache虚拟目录
怎么配置Apache服务器
linux如何安装Apache tomcat
更多相关阅读请进入《Apache》频道 >>
转载请注明出处:木庄网络博客 » apache ant是什么意思