source: general/sysutils/apache-ant.xml@ 9b9be0d

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 9b9be0d was 9b9be0d, checked in by Randy McMurchy <randy@…>, 14 years ago

Updated to Apache Ant-1.8.0

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

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