本文摘自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是什么意思的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
Apache ant是什么意思
重启docker会重启容器内的Apache吗
Apache与ngin服务器区别是什么
Apache基金会毕业是什么意思
Apache是什么服务软件
怎么卸载Apache?
Apache的配置文件在哪里
如何使用ubuntu18.04和16.04lts上的let’s encrypt保护nginx
Apache ab 如何使用
Apache服务器和tomcat服务器有不同?
更多相关阅读请进入《Apache》频道 >>
转载请注明出处:木庄网络博客 » apache ant是什么意思