Apache Ant:修订间差异
外观
删除的内容 添加的内容
无编辑摘要 |
Ohtashinichiro(留言 | 贡献) |
||
(未显示11个用户的16个中间版本) | |||
第1行: | 第1行: | ||
{{NoteTA|G1=IT|G2=FL}} |
|||
{{ |
{{Infobox software |
||
⚫ | |||
| |
| name = Apache Ant |
||
| |
| logo = Apache-Ant-logo.svg |
||
| |
| logo size = 200px |
||
| |
| logo alt = Apache Ant Logo |
||
| screenshot = |
|||
| latest release version = 1.8.2 |
|||
| caption = |
|||
| latest release date = {{release date|2010|12|27}} |
|||
⚫ | |||
| latest preview version = |
|||
| operating system = [[跨平臺]] |
|||
| latest preview date = |
|||
| |
| programming language = [[Java]] |
||
| programming language = [[Java (programming language)|Java]] |
|||
| genre = [[組建自動化]] |
| genre = [[組建自動化]] |
||
| license = [[Apache |
| license = [[Apache许可证]] 2.0 |
||
| website = |
| website = {{url|https://ant.apache.org/}} |
||
}} |
}} |
||
⚫ | |||
⚫ | |||
== 歷史 == |
|||
== build.xml 範例 == |
== build.xml 範例 == |
||
<syntaxhighlight lang="xml"> |
<syntaxhighlight lang="xml"> |
||
第42行: | 第41行: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
== 可攜性 == |
|||
== 限制 == |
|||
== 参见 == |
== 参见 == |
||
*[[Jakarta项目]] |
*[[Jakarta项目]] |
||
⚫ | |||
*[[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 }} |
||
*[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) |
||
*[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. |
||
*[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}} |
|||
[[Category: |
[[Category:Apache软件基金会项目|Ant]] |
||
[[Category: |
[[Category:自动化构建]] |
||
⚫ | |||
[[Category:編譯工具]] |
[[Category:編譯工具]] |
||
[[Category:自由跨平台軟體]] |
|||
[[Category:用Java編程的自由軟體]] |
|||
[[ar:أباتشي أنت]] |
|||
⚫ | |||
⚫ | |||
[[Category:Java开发工具]] |
|||
[[cs:Apache Ant]] |
|||
[[Category:使用Apache许可证的软件]] |
|||
[[da:Ant]] |
|||
[[de:Apache Ant]] |
|||
[[en:Apache Ant]] |
|||
[[es:Apache Ant]] |
|||
[[fr:Apache Ant]] |
|||
[[he:Apache Ant]] |
|||
[[hu:Apache Ant]] |
|||
[[it:Apache Ant]] |
|||
[[ja:Apache Ant]] |
|||
[[ko:Apache Ant]] |
|||
[[lt:Ant]] |
|||
[[ml:അപ്പാച്ചെ ആന്റ്]] |
|||
[[nl:Apache Ant]] |
|||
[[pl:Apache Ant]] |
|||
[[pt:Apache Ant]] |
|||
[[ru:Apache Ant]] |
|||
[[sv:Apache Ant]] |
|||
[[ta:அப்பாச்சி ஆன்ட்]] |
|||
[[tr:Apache Ant]] |
|||
[[uk:Apache Ant]] |
2024年9月5日 (四) 00:37的最新版本
開發者 | Apache软件基金会 |
---|---|
当前版本 |
|
源代码库 | |
编程语言 | Java |
操作系统 | 跨平臺 |
类型 | 組建自動化 |
许可协议 | Apache许可证 2.0 |
网站 | ant |
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>
参见
[编辑]参考资料
[编辑]- ^ [ANNOUNCE] Apache Ant 1.10.14 released. 2023年8月21日 [2023年12月19日] (英語).
外部链接
[编辑]- Official website of Apache Ant(页面存档备份,存于互联网档案馆)
- Apache Ant wiki
- WinAnt - Windows installer for Apache Ant(页面存档备份,存于互联网档案馆)
- Introduction to Ant (slide show)
- Linguine Maps visualization library will automatically produce easy to read diagrams from Ant build files.
- antro - a profiler for Ant scripts(页面存档备份,存于互联网档案馆)
- Wiki Book on learning Apache Ant
- Ant tutorial(页面存档备份,存于互联网档案馆)
- Ant Automation(页面存档备份,存于互联网档案馆), a good handy example of automation with Ant.
- A simple Windows GUI for running Ant.