source: general/sysutils/apache-ant.xml@ e549304

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e549304 was e549304, checked in by Randy McMurchy <randy@…>, 13 years ago

Updated to Apache-Ant-1.8.1

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

  • Property mode set to 100644
File size: 12.7 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 "http://www.apache.org/dist/ant/source/apache-ant-&apache-ant-version;-src.tar.bz2">
8 <!ENTITY apache-ant-download-ftp "ftp://anduin.linuxfromscratch.org/BLFS/svn/a/apache-ant-&apache-ant-version;-src.tar.bz2">
9 <!ENTITY apache-ant-md5sum "8c31b30f6b9863d1fef4bdf484fc8507">
10 <!ENTITY apache-ant-size "5.8 MB">
11 <!ENTITY apache-ant-buildsize "119 MB">
12 <!ENTITY apache-ant-time "0.4 SBU">
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 kind of
34 like <command>make</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 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&apache-ant-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&apache-ant-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &apache-ant-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &apache-ant-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &apache-ant-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &apache-ant-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>Required Patch: <ulink
68 url="&patch-root;/apache-ant-&apache-ant-version;-blfs_install-1.patch"/></para>
69 </listitem>
70 </itemizedlist> -->
71
72 <bridgehead renderas="sect3">Apache Ant Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required"><xref linkend="icedtea6"/> or
76 <xref linkend="jdk"/></para>
77
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended"><xref linkend="junit"/></para>
80
81 <para condition="html" role="usernotes">User Notes:
82 <ulink url="&blfs-wiki;/apache-ant"/></para>
83
84 </sect2>
85
86 <sect2 role="installation">
87 <title>Installation of Apache Ant</title>
88
89 <note>
90 <para>You may need additional libraries to satisfy the build
91 requirements of various packages installed using
92 <application>Apache Ant</application>. Review the table at
93 <ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
94 for any prerequisite libraries you may need.</para>
95
96 <!-- <para>One such library is the
97 <application>JUnit</application>-3.8.1 testing framework library. Many
98 Ant-installed packages will use this library to perform the unit tests
99 during the build process. To install the JUnit library along with the
100 <application>Apache Ant</application> package, download it from
101 <ulink url="http://www.junit.org/"/>, unzip the distribution file (requires
102 <xref linkend="unzip"/>) and copy the <filename>junit.jar</filename> file
103 into the <filename class='directory'>lib</filename> subdirectory of the
104 <application>Apache Ant</application> source tree before beginning the
105 <application>Apache Ant</application> build.</para> -->
106 </note>
107
108 <para>If it is not possible to install the recommended
109 <application>JUnit</application> package, install
110 <application>Apache Ant</application> by removing the reference to the test
111 instructions (note that the tests will not be performed):</para>
112
113<screen><userinput>sed -i 's;jars,test-jar;jars;' build.xml</userinput></screen>
114
115 <para>Install <application>Apache Ant</application> by running the following
116 commands:</para>
117
118<screen><userinput>sed -i 's|${dist.dir}/etc|/etc/ant|' build.xml &amp;&amp;
119sed -i 's|/etc/ant.conf|/etc/ant/ant.conf|' src/script/ant &amp;&amp;
120cp -v /usr/share/junit-&junit-version;/junit-&junit-version;.jar \
121 lib/optional/junit.jar</userinput></screen>
122
123 <para>The unit regression tests are performed during the build step below
124 unless <application>JUnit</application> is not installed. Now, as the
125 <systemitem class="username">root</systemitem> user:</para>
126
127<screen role="root"><userinput>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp;
128ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp;
129ln -v -sf ant-&apache-ant-version; /opt/ant</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para><command>sed -i 's;jars...</command>: If the
137 <application>JUnit</application> package is not installed, the regression
138 tests cannot be performed.</para>
139
140 <para><command>sed ...</command>: These commands change the configuration
141 directory to <filename class='directory'>/etc/ant</filename> to conform
142 with FHS guidelines.</para>
143
144 <para><command>cp -v
145 /usr/share/junit-&junit-version;/&junit-version;.jar ...</command>:
146 This command copies the JUnit jar file into the directory where Apache Ant
147 will look for it.</para>
148
149 <para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version;
150 dist</command>: This command does everything. It builds, tests, then
151 installs the package into
152 <filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
153
154 <para><command>ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>:
155 The <command>sed</command> commands change the configuration directory to
156 <filename class='directory'>/etc/ant</filename> and this command creates a
157 symlink from the configuration directory back to the installation directory
158 as the package is expecting to find some files there.</para>
159
160 <para><command>ln -v -sf ant-&apache-ant-version; /opt/ant</command>: This
161 command is optional, and creates a convenience symlink.</para>
162
163 </sect2>
164
165 <sect2 role="configuration">
166 <title>Configuring Apache Ant</title>
167
168 <sect3 id="apache-ant-config">
169 <title>Config Files</title>
170
171 <para><filename>/etc/ant/ant.conf</filename>,
172 <filename>~/.ant/ant.conf</filename>, and
173 <filename>~/.antrc</filename></para>
174
175 <indexterm zone="apache-ant apache-ant-config">
176 <primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary>
177 </indexterm>
178
179 <indexterm zone="apache-ant apache-ant-config">
180 <primary sortas="e-AA.antrc">~/.antrc</primary>
181 </indexterm>
182
183 <indexterm zone="apache-ant apache-ant-config">
184 <primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary>
185 </indexterm>
186
187 </sect3>
188
189 <sect3>
190 <title>Configuration Information</title>
191
192 <para>Some packages will require <command>ant</command> to be in the
193 search path and the <envar>$ANT_HOME</envar> environment variable
194 defined. Satisfy these requirements by adding the following lines to
195 <filename>/etc/profile</filename> or to individual user's
196 <filename>~/.profile</filename> or <filename>~/.bashrc</filename> files:</para>
197
198<screen><literal>export PATH=$PATH:/opt/ant/bin
199export ANT_HOME=/opt/ant</literal></screen>
200
201 </sect3>
202
203 </sect2>
204
205 <sect2 role="content">
206 <title>Contents</title>
207
208 <segmentedlist>
209 <segtitle>Installed Programs</segtitle>
210 <segtitle>Installed Libraries</segtitle>
211 <segtitle>Installed Directories</segtitle>
212
213 <seglistitem>
214 <seg>ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py</seg>
215 <seg>ant.jar, ant-*.jar, xercesImpl.jar, and xml-apis.jar</seg>
216 <seg>/etc/ant and /opt/ant-&apache-ant-version;</seg>
217 </seglistitem>
218 </segmentedlist>
219
220 <variablelist>
221 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
222 <?dbfo list-presentation="list"?>
223 <?dbhtml list-presentation="table"?>
224
225 <varlistentry id="ant">
226 <term><command>ant</command></term>
227 <listitem>
228 <para>is a <application>Java</application> based build tool used by
229 many packages instead of the conventional <command>make</command>
230 program.</para>
231 <indexterm zone="apache-ant ant">
232 <primary sortas="b-ant">ant</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="antRun">
238 <term><command>antRun</command></term>
239 <listitem>
240 <para>is a support script used to start <command>ant</command>
241 build scripts in a given directory.</para>
242 <indexterm zone="apache-ant antRun">
243 <primary sortas="b-antRun">antRun</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="antRun.pl">
249 <term><command>antRun.pl</command></term>
250 <listitem>
251 <para>is a <application>Perl</application> script that provides
252 similar functionality offered by the <command>antRun</command> script.</para>
253 <indexterm zone="apache-ant antRun.pl">
254 <primary sortas="b-antRun.pl">antRun.pl</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="complete-ant-cmd.pl">
260 <term><command>complete-ant-cmd.pl</command></term>
261 <listitem>
262 <para>is a <application>Perl</application> script that allows
263 <application>Bash</application> to complete an <command>ant</command>
264 command-line.</para>
265 <indexterm zone="apache-ant complete-ant-cmd.pl">
266 <primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="runant.pl">
272 <term><command>runant.pl</command></term>
273 <listitem>
274 <para>is a <application>Perl</application> wrapper script used to
275 invoke <command>ant</command>.</para>
276 <indexterm zone="apache-ant runant.pl">
277 <primary sortas="b-runant.pl">runant.pl</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="runant.py">
283 <term><command>runant.py</command></term>
284 <listitem>
285 <para>is a <application>Python</application> wrapper script used to
286 invoke <command>ant</command>.</para>
287 <indexterm zone="apache-ant runant.py">
288 <primary sortas="b-runant.py">runant.py</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="ant-star">
294 <term><filename class='libraryfile'>ant-*.jar</filename></term>
295 <listitem>
296 <para>files are the <application>Apache Ant</application>
297 <application>Java</application> class libraries.</para>
298 <indexterm zone="apache-ant ant-star">
299 <primary sortas="c-ant-star">ant-*.jar</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="xercesImpl">
305 <term><filename class='libraryfile'>xercesImpl.jar</filename></term>
306 <listitem>
307 <para>is a <application>Java</application> class library used by
308 <application>Apache Ant</application> to perform XML parsing.</para>
309 <indexterm zone="apache-ant xercesImpl">
310 <primary sortas="c-xercesImpl">xercesImpl.jar</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="xml-apis">
316 <term><filename class='libraryfile'>xml-apis.jar</filename></term>
317 <listitem>
318 <para>contains the DOM <application>Java</application> classes required
319 by the <application>Apache Ant</application> XML formatter.</para>
320 <indexterm zone="apache-ant xml-apis">
321 <primary sortas="c-xml-apis">xml-apis.jar</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 </variablelist>
327
328 </sect2>
329
330</sect1>
Note: See TracBrowser for help on using the repository browser.