Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
跳转到内容

Apache Ant:修订间差异

维基百科,自由的百科全书
删除的内容 添加的内容
InternetArchiveBot留言 | 贡献
补救3个来源,并将0个来源标记为失效。 #IABot (v1.5)
 
(未显示4个用户的7个中间版本)
第1行: 第1行:
{{NoteTA|G1=IT|G2=FL}}
{{Infobox software
{{Infobox software
| name = Apache Ant
| name = Apache Ant
| logo = [[File:Apache-Ant-logo.svg|200px|Apache Ant Logo]]
| logo = Apache-Ant-logo.svg
| logo size = 200px
| logo alt = Apache Ant Logo
| screenshot =
| screenshot =
| caption =
| caption =
| developer = [[Apache Software Foundation]]
| developer = [[Apache软件基金会]]
| operating system = [[跨平臺]]
| latest release version = 1.9.4
| programming language = [[Java]]
| latest release date = {{release date|2014|5|5}}
| latest preview version =
| latest preview date =
| operating system = [[Cross-platform]]
| programming language = [[Java (programming language)|Java]]
| genre = [[組建自動化]]
| genre = [[組建自動化]]
| license = [[Apache License]] 2.0
| license = [[Apache许可证]] 2.0
| website = {{url|http://ant.apache.org}}
| website = {{url|https://ant.apache.org/}}
}}
}}


第46行: 第45行:
*[[Apache Maven]]
*[[Apache Maven]]
*[[Make]]
*[[Make]]

==参考资料==
{{refs}}


== 外部链接 ==
== 外部链接 ==
*[http://ant.apache.org/ Official website of Apache Ant]
*[http://ant.apache.org/ Official website of Apache Ant]{{Wayback|url=http://ant.apache.org/ |date=20100123055910 }}
*[http://wiki.apache.org/ant/FrontPage Apache Ant wiki]
*[https://web.archive.org/web/20151213155753/http://wiki.apache.org/ant/FrontPage Apache Ant wiki]
*[http://code.google.com/p/winant/ WinAnt - Windows installer for Apache Ant]
*[http://code.google.com/p/winant/ WinAnt - Windows installer for Apache Ant]{{Wayback|url=http://code.google.com/p/winant/ |date=20100227065258 }}
*[https://web.archive.org/web/20100131063201/http://www.exubero.com/ant/antintro-s5.html Introduction to Ant] (slide show)
*[https://web.archive.org/web/20100131063201/http://www.exubero.com/ant/antintro-s5.html Introduction to Ant] (slide show)
*[https://web.archive.org/web/20070612182856/http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=LinguineMapsForApacheAnt Linguine Maps visualization library will automatically produce easy to read diagrams from Ant build files.]
*[https://web.archive.org/web/20070612182856/http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=LinguineMapsForApacheAnt Linguine Maps visualization library will automatically produce easy to read diagrams from Ant build files.]
*[http://sourceforge.net/projects/antro antro - a profiler for Ant scripts]
*[http://sourceforge.net/projects/antro antro - a profiler for Ant scripts]{{Wayback|url=http://sourceforge.net/projects/antro |date=20100108073005 }}
*[[b:Programming:Apache Ant|Wiki Book on learning Apache Ant]]
*[[b:Programming:Apache Ant|Wiki Book on learning Apache Ant]]
*[http://ideoplex.com/focus/java#ant Ant tutorial]
*[http://ideoplex.com/focus/java#ant Ant tutorial]{{Wayback|url=http://ideoplex.com/focus/java#ant |date=20100130060540 }}
*[http://hbtechs.blogspot.com/2007/06/automation-using-innovative-tools.html Ant Automation], a good handy example of automation with Ant.
*[http://hbtechs.blogspot.com/2007/06/automation-using-innovative-tools.html Ant Automation]{{Wayback|url=http://hbtechs.blogspot.com/2007/06/automation-using-innovative-tools.html |date=20110708041538 }}, a good handy example of automation with Ant.
*[https://web.archive.org/web/20100131050800/http://visualdrugs.net/antrunner/ A simple Windows GUI for running Ant.]
*[https://web.archive.org/web/20100131050800/http://visualdrugs.net/antrunner/ A simple Windows GUI for running Ant.]


{{Apache}}
{{Apache}}
{{Android}}
{{Android}}

{{Authority control}}
{{Authority control}}

[[Category:Java]]
[[Category:程序设计工具]]
[[Category:Apache软件基金会项目|Ant]]
[[Category:Apache软件基金会]]
[[Category:自动化构建]]
[[Category:編譯工具]]
[[Category:編譯工具]]
[[Category:自由跨平台軟體]]
[[Category:用Java編程的自由軟體]]
[[Category:Java函式庫]]
[[Category:Java开发工具]]
[[Category:使用Apache许可证的软件]]

2024年9月5日 (四) 00:37的最新版本

Apache Ant
Apache Ant Logo
開發者Apache软件基金会
当前版本
  • 1.10.14(2023年8月21日;穩定版本)[1]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言Java
操作系统跨平臺
类型組建自動化
许可协议Apache许可证 2.0
网站ant.apache.org

Apache Ant,是一个将软件编译测试部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。默認情況下,它的buildfile(XML文件)名為build.xml。每一個buildfile含有一個<project>和至少一個預設的<target>,這些targets包含許多task elements。每一個task element有一個用來被參考的id,此id必須是唯一的。

build.xml 範例

[编辑]
<?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>

参见

[编辑]

参考资料

[编辑]
  1. ^ [ANNOUNCE] Apache Ant 1.10.14 released. 2023年8月21日 [2023年12月19日] (英語). 

外部链接

[编辑]