本文摘自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是什么意思的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
nginx和Apache是什么
Apache禁用sslv3的方法
如何在mac上配置Apache和php
Apache怎么看日志
flask怎么结合Apache
ubuntu怎么重启Apache
怎么在Apache中配置php模块
centos系统如何查看是否安装了Apache
centos上Apache错误日志在哪
Apache的poi是什么意思
更多相关阅读请进入《Apache》频道 >>
转载请注明出处:木庄网络博客 » apache ant是什么意思