source: general/sysutils/apache-ant.xml@ 5e7b080

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 5e7b080 was 5e7b080, checked in by Thomas Trepl <thomas@…>, 15 years ago

Fix download location of Ant

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

  • Property mode set to 100644
File size: 12.4 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://ftp.oregonstate.edu/pub/apache/ant/source/apache-ant-&apache-ant-version;-src.tar.bz2"> -->
9 <!ENTITY apache-ant-download-ftp " ">
10 <!ENTITY apache-ant-md5sum "0d68db4a1ada5c91bcbf53cefd0c2fd7">
11 <!ENTITY apache-ant-size "6.8 MB">
12 <!ENTITY apache-ant-buildsize "109 MB">
13 <!ENTITY apache-ant-time "0.4 SBU">
14]>
15
16<sect1 id="apache-ant" xreflabel="Apache Ant-&apache-ant-version;">
17 <?dbhtml filename="apache-ant.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Apache Ant-&apache-ant-version;</title>
25
26 <indexterm zone="apache-ant">
27 <primary sortas="a-Apache-Ant">Apache Ant</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Apache Ant</title>
32
33 <para>The <application>Apache Ant</application> package is a
34 <application>Java</application>-based build tool. In theory, it is kind of like
35 <command>make</command>, but without <command>make</command>'s wrinkles.
36 Ant is different. Instead of a model where it is extended with shell-based commands,
37 Ant is extended using <application>Java</application> classes. Instead of writing
38 shell commands, the configuration files are XML-based, calling out a target tree where
39 various tasks get executed. Each task is run by an object that implements a
40 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="jdk"/></para>
76
77 <bridgehead renderas="sect4">Recommended</bridgehead>
78 <para role="recommended"><xref linkend="junit"/></para>
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/apache-ant"/></para>
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Apache Ant</title>
87
88 <note>
89 <para>You may need additional libraries to satisfy the build
90 requirements of various packages installed using
91 <application>Apache Ant</application>. Review the table at
92 <ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
93 for any prerequisite libraries you may need.</para>
94
95 <!-- <para>One such library is the
96 <application>JUnit</application>-3.8.1 testing framework library. Many
97 Ant-installed packages will use this library to perform the unit tests
98 during the build process. To install the JUnit library along with the
99 <application>Apache Ant</application> package, download it from
100 <ulink url="http://www.junit.org/"/>, unzip the distribution file (requires
101 <xref linkend="unzip"/>) and copy the <filename>junit.jar</filename> file
102 into the <filename class='directory'>lib</filename> subdirectory of the
103 <application>Apache Ant</application> source tree before beginning the
104 <application>Apache Ant</application> build.</para> -->
105 </note>
106
107 <para>If the recommendation of having <application>JUnit</application> installed
108 cannot be matched, <application>Apache Ant</application> can be installed
109 anyway but the tests cannot be performed. Remove the reference to
110 the test instructions by running the following command:</para>
111
112<screen><userinput>sed -i 's;jars,test-jar;jars;' build.xml</userinput></screen>
113
114 <para>Install <application>Apache Ant</application> by running the following
115 commands:</para>
116
117<screen><userinput>sed -i 's|${dist.dir}/etc|/etc/ant|' build.xml
118sed -i 's|/etc/ant.conf|/etc/ant/ant.conf|' src/script/ant</userinput></screen>
119
120 <para>The unit regression tests are performed in the build step below except
121 the first <command>sed</command> has been executed.</para>
122
123 <para>Now, as the <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 <application>JUnit</application> package
135 is not installed, the regression tests cannot be performed.</para>
136
137 <para><command>sed ...</command>: These commands change the configuration
138 directory to <filename class='directory'>/etc/ant</filename> to conform
139 with FHS guidelines.</para>
140
141 <para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version;
142 dist</command>: This command does everything. It builds, tests, then
143 installs the package into
144 <filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
145
146 <para><command>ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>:
147 The <command>sed</command> commands change the configuration directory to
148 <filename class='directory'>/etc/ant</filename> and this command creates a
149 symlink from the configuration directory back to the installation directory
150 as the package is expecting to find some files there.</para>
151
152 <para><command>ln -v -sf ant-&apache-ant-version; /opt/ant</command>: This
153 command is optional, and creates a convenience symlink.</para>
154
155 </sect2>
156
157 <sect2 role="configuration">
158 <title>Configuring Apache Ant</title>
159
160 <sect3 id="apache-ant-config">
161 <title>Config Files</title>
162
163 <para><filename>/etc/ant/ant.conf</filename>,
164 <filename>~/.ant/ant.conf</filename>, and
165 <filename>~/.antrc</filename></para>
166
167 <indexterm zone="apache-ant apache-ant-config">
168 <primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary>
169 </indexterm>
170
171 <indexterm zone="apache-ant apache-ant-config">
172 <primary sortas="e-AA.antrc">~/.antrc</primary>
173 </indexterm>
174
175 <indexterm zone="apache-ant apache-ant-config">
176 <primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary>
177 </indexterm>
178
179 </sect3>
180
181 <sect3>
182 <title>Configuration Information</title>
183
184 <para>Some packages will require <command>ant</command> to be in the search
185 path and the <envar>$ANT_HOME</envar> environment variable defined.
186 Satisfy these requirements by adding the following lines to
187 <filename>/etc/profile</filename> or to individual user's
188 <filename>~/.profile</filename> or <filename>~/.bashrc</filename> files:</para>
189
190<screen><literal>export PATH=$PATH:/opt/ant/bin
191export ANT_HOME=/opt/ant</literal></screen>
192
193 </sect3>
194
195 </sect2>
196
197 <sect2 role="content">
198 <title>Contents</title>
199
200 <segmentedlist>
201 <segtitle>Installed Programs</segtitle>
202 <segtitle>Installed Libraries</segtitle>
203 <segtitle>Installed Directories</segtitle>
204
205 <seglistitem>
206 <seg>ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py</seg>
207 <seg>ant.jar, ant-*.jar, xercesImpl.jar, and xml-apis.jar</seg>
208 <seg>/etc/ant and /opt/ant-&apache-ant-version;</seg>
209 </seglistitem>
210 </segmentedlist>
211
212 <variablelist>
213 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
214 <?dbfo list-presentation="list"?>
215 <?dbhtml list-presentation="table"?>
216
217 <varlistentry id="ant">
218 <term><command>ant</command></term>
219 <listitem>
220 <para>is a <application>Java</application> based build tool used by
221 many packages instead of the conventional <command>make</command>
222 program.</para>
223 <indexterm zone="apache-ant ant">
224 <primary sortas="b-ant">ant</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="antRun">
230 <term><command>antRun</command></term>
231 <listitem>
232 <para>is a support script used to start <command>ant</command>
233 build scripts in a given directory.</para>
234 <indexterm zone="apache-ant antRun">
235 <primary sortas="b-antRun">antRun</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="antRun.pl">
241 <term><command>antRun.pl</command></term>
242 <listitem>
243 <para>is a <application>Perl</application> script that provides
244 similar functionality offered by the <command>antRun</command> script.</para>
245 <indexterm zone="apache-ant antRun.pl">
246 <primary sortas="b-antRun.pl">antRun.pl</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="complete-ant-cmd.pl">
252 <term><command>complete-ant-cmd.pl</command></term>
253 <listitem>
254 <para>is a <application>Perl</application> script that allows
255 <application>Bash</application> to complete an <command>ant</command>
256 command-line.</para>
257 <indexterm zone="apache-ant complete-ant-cmd.pl">
258 <primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="runant.pl">
264 <term><command>runant.pl</command></term>
265 <listitem>
266 <para>is a <application>Perl</application> wrapper script used to
267 invoke <command>ant</command>.</para>
268 <indexterm zone="apache-ant runant.pl">
269 <primary sortas="b-runant.pl">runant.pl</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="runant.py">
275 <term><command>runant.py</command></term>
276 <listitem>
277 <para>is a <application>Python</application> wrapper script used to
278 invoke <command>ant</command>.</para>
279 <indexterm zone="apache-ant runant.py">
280 <primary sortas="b-runant.py">runant.py</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="ant-star">
286 <term><filename class='libraryfile'>ant-*.jar</filename></term>
287 <listitem>
288 <para>files are the <application>Apache Ant</application>
289 <application>Java</application> class libraries.</para>
290 <indexterm zone="apache-ant ant-star">
291 <primary sortas="c-ant-star">ant-*.jar</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="xercesImpl">
297 <term><filename class='libraryfile'>xercesImpl.jar</filename></term>
298 <listitem>
299 <para>is a <application>Java</application> class library used by
300 <application>Apache Ant</application> to perform XML parsing.</para>
301 <indexterm zone="apache-ant xercesImpl">
302 <primary sortas="c-xercesImpl">xercesImpl.jar</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="xml-apis">
308 <term><filename class='libraryfile'>xml-apis.jar</filename></term>
309 <listitem>
310 <para>contains the DOM <application>Java</application> classes required
311 by the <application>Apache Ant</application> XML formatter.</para>
312 <indexterm zone="apache-ant xml-apis">
313 <primary sortas="c-xml-apis">xml-apis.jar</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 </variablelist>
319
320 </sect2>
321
322</sect1>
Note: See TracBrowser for help on using the repository browser.