source: general/prog/apache-ant.xml@ 7d65f30

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7d65f30 was 3795b64, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to apache-ant-1.10.6.
Update to libinput-1.13.2.
Update to tcsh-6.21.00.

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

  • Property mode set to 100644
File size: 11.0 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 "2e93110151656faaf36ab14603e93b8b">
10 <!ENTITY apache-ant-size "4.1 MB">
11 <!ENTITY apache-ant-buildsize "144 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 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>apache-ant-&apache-ant-version;</title>
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
32 <para>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 <command>make</command>'s
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>
41
42 &lfs84_checked;
43
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>
65<!--
66 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
67 <itemizedlist spacing="compact">
68 <listitem>
69 <para>
70 Required file: <ulink
71 url="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/javax/media/jai-core/1.1.3/jai-core-1.1.3.jar"/>
72 </para>
73 </listitem>
74 <listitem>
75 <para>
76 Required file: <ulink
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"/>
90 </para>
91 </listitem>
92 </itemizedlist>
93-->
94 <bridgehead renderas="sect3">Apache Ant Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required">
98 A JDK (<xref linkend="java-bin"/> or <xref linkend="openjdk"/>) and
99 <xref linkend="glib2"/>
100 </para>
101
102<!-- <bridgehead renderas="sect4">Recommended</bridgehead>
103 <para role="recommended">
104 <xref linkend="junit"/>
105 </para>
106-->
107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/apache-ant"/></para>
109
110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of Apache Ant</title>
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
123 <para>
124 Build a limited bootstrap version of <application>Apache
125 Ant</application> using the following command:
126 </para>
127
128<screen><userinput>./bootstrap.sh</userinput></screen>
129
130 <para>
131 Download the runtime dependencies using the
132 <filename>fetch.xml</filename> ant build script:
133 </para>
134
135<screen><userinput>bootstrap/bin/ant -f fetch.xml -Ddest=optional</userinput></screen>
136
137 <para>
138 Build <application>Apache Ant</application> by running the following
139 command:
140 </para>
141
142<screen><userinput>./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; dist</userinput></screen>
143
144 <para>
145 Install, as the <systemitem class="username">root</systemitem> user:
146 </para>
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>
151
152 </sect2>
153
154 <sect2 role="commands">
155 <title>Command Explanations</title>
156
157 <para>
158 <command>bootstrap/bin/ant -f fetch.xml -Ddest=optional</command>:
159 Downloads the missing dependencies to user's home directory, and copy
160 them into the source tree (in the <filename>lib/optional</filename>
161 directory, where <command>ant</command> picks them up at build time).
162 </para>
163
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>
169
170 </sect2>
171
172 <sect2 role="configuration">
173 <title>Configuring Apache Ant</title>
174
175 <sect3 id="apache-ant-config">
176 <title>Config Files</title>
177
178 <para><filename>/etc/ant/ant.conf</filename>,
179 <filename>~/.ant/ant.conf</filename>, and
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
199 <para>Some packages will require <command>ant</command> to be in the
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
204<screen role="root"><userinput>cat &gt; /etc/profile.d/ant.sh &lt;&lt; EOF
205<literal># Begin /etc/profile.d/ant.sh
206
207pathappend /opt/ant/bin
208export ANT_HOME=/opt/ant
209
210# End /etc/profile.d/ant.sh</literal>
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>
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>
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>
235 <seg>/opt/ant-&apache-ant-version;</seg>
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>
247 <para>is a <application>Java</application> based build tool used by
248 many packages instead of the conventional <command>make</command>
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>
259 <para>is a support script used to start <command>ant</command>
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>
270 <para>is a <application>Perl</application> script that provides
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>
281 <para>is a <application>Perl</application> script that allows
282 <application>Bash</application> to complete an <command>ant</command>
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>
293 <para>is a <application>Perl</application> wrapper script used to
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>
304 <para>is a <application>Python</application> wrapper script used to
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">
313 <term><filename class='libraryfile'>ant*.jar</filename></term>
314 <listitem>
315 <para>files are the <application>Apache Ant</application>
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>
326
327</sect1>
Note: See TracBrowser for help on using the repository browser.