source: general/prog/apache-ant.xml@ 02e06ab

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 02e06ab was 02e06ab, checked in by Pierre Labastie <pieere@…>, 5 years ago

tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21197 af4574ff-66df-0310-9fd7-8a98e5e911e0

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