source: general/prog/apache-ant.xml@ 45ab6c7

trunk
Last change on this file since 45ab6c7 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 months ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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