source: general/prog/apache-ant.xml@ a0ad432

trunk
Last change on this file since a0ad432 was 7a1b99c, checked in by Bruce Dubbs <bdubbs@…>, 2 weeks ago

Update to apache-ant-1.10.15.

  • Property mode set to 100644
File size: 11.0 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[dd5bdf3]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[2612183a]7 <!ENTITY apache-ant-download-http "https://archive.apache.org/dist/ant/source/apache-ant-&apache-ant-version;-src.tar.xz">
[e8edecd]8 <!ENTITY apache-ant-download-ftp " ">
[7a1b99c]9 <!ENTITY apache-ant-md5sum "778c68be3787dfebc249de45598f63b2">
[91b39178]10 <!ENTITY apache-ant-size "3.6 MB">
[7a1b99c]11 <!ENTITY apache-ant-buildsize "196 MB">
12 <!ENTITY apache-ant-time "0.2 SBU (excluding download time)">
[dd5bdf3]13]>
14
[ff53809]15<sect1 id="apache-ant" xreflabel="apache-ant-&apache-ant-version;">
[514ef84d]16 <?dbhtml filename="apache-ant.html"?>
17
18
[ff53809]19 <title>apache-ant-&apache-ant-version;</title>
[514ef84d]20
21 <indexterm zone="apache-ant">
22 <primary sortas="a-Apache-Ant">Apache Ant</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Apache Ant</title>
27
[de33b2a]28 <para>
29 The <application>Apache Ant</application> package is a
30 <application>Java</application>-based build tool. In theory, it is
31 like the <command>make</command> command, but without
32 <command>make</command>'s wrinkles. <application>Ant</application> is
33 different. Instead of a model that is extended with shell-based commands,
34 <application>Ant</application> is extended using
35 <application>Java</application> classes. Instead of writing shell
36 commands, the configuration files are XML-based, calling out a target
37 tree that executes various tasks. Each task is run by an object that
38 implements a particular task interface.
39 </para>
[514ef84d]40
[fc87c5a0]41 &lfs122_checked;
[50929e8]42
[514ef84d]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[de33b2a]46 <para>
47 Download (HTTP): <ulink url="&apache-ant-download-http;"/>
48 </para>
[514ef84d]49 </listitem>
50 <listitem>
[de33b2a]51 <para>
52 Download (FTP): <ulink url="&apache-ant-download-ftp;"/>
53 </para>
[514ef84d]54 </listitem>
55 <listitem>
[de33b2a]56 <para>
57 Download MD5 sum: &apache-ant-md5sum;
58 </para>
[514ef84d]59 </listitem>
60 <listitem>
[de33b2a]61 <para>
62 Download size: &apache-ant-size;
63 </para>
[514ef84d]64 </listitem>
65 <listitem>
[de33b2a]66 <para>
67 Estimated disk space required: &apache-ant-buildsize;
68 </para>
[514ef84d]69 </listitem>
70 <listitem>
[de33b2a]71 <para>
72 Estimated build time: &apache-ant-time;
73 </para>
[514ef84d]74 </listitem>
75 </itemizedlist>
[488b738f]76<!--
[6dc9fd3]77 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required file: <ulink
[d61ead0a]82 url="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/javax/media/jai-core/1.1.3/jai-core-1.1.3.jar"/>
[6dc9fd3]83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Required file: <ulink
[d61ead0a]88 url="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.jar"/>
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Required file: <ulink
94 url="http://central.maven.org/maven2/org/tukaani/xz/1.0/xz-1.0.jar"/>
95 </para>
96 </listitem>
97 <listitem>
98 <para>
99 Required file: <ulink
100 url="http://www.netrexx.org/files/NetRexx-3.06-GA.zip"/>
[6dc9fd3]101 </para>
102 </listitem>
103 </itemizedlist>
[488b738f]104-->
[514ef84d]105 <bridgehead renderas="sect3">Apache Ant Dependencies</bridgehead>
106
107 <bridgehead renderas="sect4">Required</bridgehead>
[ff53809]108 <para role="required">
[4e047ca4]109 A JDK (<xref linkend="java-bin"/> or <xref linkend="openjdk"/>) and
110 <xref linkend="glib2"/>
[ff53809]111 </para>
[66ab31e]112
[afb71d0a]113 &build-use-internet;
114
[6dc9fd3]115<!-- <bridgehead renderas="sect4">Recommended</bridgehead>
[ff53809]116 <para role="recommended">
117 <xref linkend="junit"/>
118 </para>
[6dc9fd3]119-->
[514ef84d]120 </sect2>
121
122 <sect2 role="installation">
123 <title>Installation of Apache Ant</title>
[c084a2a]124
[488b738f]125 <para>
126 Build a limited bootstrap version of <application>Apache
127 Ant</application> using the following command:
128 </para>
[e8edecd]129
[d61ead0a]130<screen><userinput>./bootstrap.sh</userinput></screen>
[6dc9fd3]131
[488b738f]132 <para>
133 Download the runtime dependencies using the
134 <filename>fetch.xml</filename> ant build script:
135 </para>
[514ef84d]136
[50eb39e]137<!-- A spsce betweem -D and dest makes the build fail. -->
138
139<screen><userinput>bootstrap/bin/ant -f fetch.xml -Ddest=optional</userinput></screen>
[514ef84d]140
[488b738f]141 <para>
142 Build <application>Apache Ant</application> by running the following
143 command:
144 </para>
[e8edecd]145
[50eb39e]146<!-- A spsce betweem -D and dest here passes, but leave it out for consistency. -->
147
148<screen><userinput>./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; dist</userinput></screen>
[d61ead0a]149
[488b738f]150 <para>
151 Install, as the <systemitem class="username">root</systemitem> user:
152 </para>
[d61ead0a]153
154<screen role="root"><userinput>cp -rv ant-&apache-ant-version; /opt/ &amp;&amp;
155chown -R root:root /opt/ant-&apache-ant-version; &amp;&amp;
156ln -sfv ant-&apache-ant-version; /opt/ant</userinput></screen>
[6dc9fd3]157
[514ef84d]158 </sect2>
159
160 <sect2 role="commands">
161 <title>Command Explanations</title>
162
[488b738f]163 <para>
[7a1b99c]164 <command>bootstrap/bin/ant -f fetch.xml -Ddest=optional</command>:
[94bdff09]165 Downloads the missing dependencies to the user's home directory, and
166 copies them into the source tree (in the <filename>lib/optional</filename>
[c084a2a]167 directory, where <command>ant</command> picks them up at build time).
[488b738f]168 </para>
[514ef84d]169
[488b738f]170 <para>
[7a1b99c]171 <command>./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version;
[488b738f]172 dist</command>: This command builds, tests, then installs the package
173 into a temporary directory.
174 </para>
[514ef84d]175
176 </sect2>
177
178 <sect2 role="configuration">
179 <title>Configuring Apache Ant</title>
180
181 <sect3 id="apache-ant-config">
[30edc031]182 <title>Config Files</title>
[514ef84d]183
[de33b2a]184 <para>
185 <filename>/etc/ant/ant.conf</filename>,
186 <filename>~/.ant/ant.conf</filename>, and
187 <filename>~/.antrc</filename>
188 </para>
[514ef84d]189
190 <indexterm zone="apache-ant apache-ant-config">
191 <primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary>
192 </indexterm>
193
194 <indexterm zone="apache-ant apache-ant-config">
195 <primary sortas="e-AA.antrc">~/.antrc</primary>
196 </indexterm>
197
198 <indexterm zone="apache-ant apache-ant-config">
199 <primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary>
200 </indexterm>
201
202 </sect3>
203
204 <sect3>
205 <title>Configuration Information</title>
206
[de33b2a]207 <para>
208 Some packages will require <command>ant</command> to be in the
209 search path and the <envar>ANT_HOME</envar> environment variable
210 defined. Satisfy these requirements by issuing, as the <systemitem
211 class="username">root</systemitem> user:
212 </para>
[58cba7f0]213
[ea7266a]214<screen role="root"><userinput>cat &gt; /etc/profile.d/ant.sh &lt;&lt; EOF
215<literal># Begin /etc/profile.d/ant.sh
[7a5639a]216
[58cba7f0]217pathappend /opt/ant/bin
218export ANT_HOME=/opt/ant
[7a5639a]219
[ea7266a]220# End /etc/profile.d/ant.sh</literal>
[58cba7f0]221EOF</userinput></screen>
222
[de33b2a]223 <para>
224 The above instructions assume you have configured your system as
225 described in <xref linkend="postlfs-config-profile"/>.
226 </para>
[514ef84d]227
228 </sect3>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
[488b738f]241 <seg>
242 ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py </seg>
243 <seg>
[96923ef]244 Numerous <filename>ant*.jar</filename> and dependent libraries in
[488b738f]245 <envar>$ANT_HOME</envar><filename>/lib</filename>
246 </seg>
[e8edecd]247 <seg>/opt/ant-&apache-ant-version;</seg>
[514ef84d]248 </seglistitem>
249 </segmentedlist>
250
251 <variablelist>
252 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
253 <?dbfo list-presentation="list"?>
254 <?dbhtml list-presentation="table"?>
255
256 <varlistentry id="ant">
257 <term><command>ant</command></term>
258 <listitem>
[de33b2a]259 <para>
260 is a <application>Java</application> based build tool used by
261 many packages instead of the conventional <command>make</command>
[4c24eb0a]262 program
[de33b2a]263 </para>
[514ef84d]264 <indexterm zone="apache-ant ant">
265 <primary sortas="b-ant">ant</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="antRun">
271 <term><command>antRun</command></term>
272 <listitem>
[de33b2a]273 <para>
274 is a support script used to start <command>ant</command>
[4c24eb0a]275 build scripts in a given directory
[de33b2a]276 </para>
[514ef84d]277 <indexterm zone="apache-ant antRun">
278 <primary sortas="b-antRun">antRun</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="antRun.pl">
284 <term><command>antRun.pl</command></term>
285 <listitem>
[de33b2a]286 <para>
287 is a <application>Perl</application> script that provides similar
[4c24eb0a]288 functionality offered by the <command>antRun</command> script
[de33b2a]289 </para>
[514ef84d]290 <indexterm zone="apache-ant antRun.pl">
291 <primary sortas="b-antRun.pl">antRun.pl</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="complete-ant-cmd.pl">
297 <term><command>complete-ant-cmd.pl</command></term>
298 <listitem>
[de33b2a]299 <para>
300 is a <application>Perl</application> script that allows
301 <application>Bash</application> to complete an
[4c24eb0a]302 <command>ant</command> command-line
[de33b2a]303 </para>
[514ef84d]304 <indexterm zone="apache-ant complete-ant-cmd.pl">
305 <primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="runant.pl">
311 <term><command>runant.pl</command></term>
312 <listitem>
[de33b2a]313 <para>
314 is a <application>Perl</application> wrapper script used to
[4c24eb0a]315 invoke <command>ant</command>
[de33b2a]316 </para>
[514ef84d]317 <indexterm zone="apache-ant runant.pl">
318 <primary sortas="b-runant.pl">runant.pl</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="runant.py">
324 <term><command>runant.py</command></term>
325 <listitem>
[de33b2a]326 <para>
327 is a <application>Python</application> wrapper script used to
[4c24eb0a]328 invoke <command>ant</command>
[de33b2a]329 </para>
[514ef84d]330 <indexterm zone="apache-ant runant.py">
331 <primary sortas="b-runant.py">runant.py</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="ant-star">
[4c24eb0a]337 <term><filename class="libraryfile">ant*.jar</filename></term>
[514ef84d]338 <listitem>
[de33b2a]339 <para>
340 files are the <application>Apache Ant</application>
[4c24eb0a]341 <application>Java</application> class libraries
[de33b2a]342 </para>
[514ef84d]343 <indexterm zone="apache-ant ant-star">
344 <primary sortas="c-ant-star">ant-*.jar</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 </variablelist>
350
351 </sect2>
[dd5bdf3]352
353</sect1>
Note: See TracBrowser for help on using the repository browser.