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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 af2764a was af2764a, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated the Apache Ant instructions to specify the version of Junit you should use

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

  • Property mode set to 100644
File size: 11.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY apache-ant-download-http "http://archive.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-md5sum "80a7ad191c40b7d8c82533524b282b6b">
10 <!ENTITY apache-ant-size "6.2 MB">
11 <!ENTITY apache-ant-buildsize "94.5 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 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 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/apache-ant"/></para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of Apache Ant</title>
83
84 <note>
85 <para>You may need additional libraries to satisfy the build
86 requirements of various packages installed using
87 <application>Apache Ant</application>. Review the table at
88 <ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
89 for any prerequisite libraries you may need. One such library is the
90 <application>JUnit</application>-3.8.1 testing framework library. Many
91 Ant-installed packages will use this library to perform the unit tests
92 during the build process. To install the JUnit library along with the
93 <application>Apache Ant</application> package, download it from
94 <ulink url="http://www.junit.org/"/>, unzip the distribution file (requires
95 <xref linkend="unzip"/>) and copy the <filename>junit.jar</filename> file
96 into the <filename class='directory'>lib</filename> subdirectory of the
97 <application>Apache Ant</application> source tree before beginning the
98 <application>Apache Ant</application> build.</para>
99 </note>
100
101 <para>Install <application>Apache Ant</application> by running the following
102 commands:</para>
103
104<screen><userinput>patch -Np1 -i ../apache-ant-&apache-ant-version;-blfs_install-1.patch</userinput></screen>
105
106 <para>This package does not come with a test suite.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role="root"><userinput>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp;
111ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp;
112ln -v -sf ant-&apache-ant-version; /opt/ant</userinput></screen>
113
114 </sect2>
115
116 <sect2 role="commands">
117 <title>Command Explanations</title>
118
119 <para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version;
120 dist</command>: This command does everything. It builds, then
121 installs the package into
122 <filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
123
124 <para><command>ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>:
125 The patch changes the configuration directory to
126 <filename class='directory'>/etc/ant</filename> to conform with
127 FHS guidelines. This command creates a symlink from the
128 configuration directory back to the installation directory as the package is
129 expecting to find the files there.</para>
130
131 <para><command>ln -v -sf ant-&apache-ant-version; /opt/ant</command>: This
132 command is optional, and creates a convenience symlink.</para>
133
134 </sect2>
135
136 <sect2 role="configuration">
137 <title>Configuring Apache Ant</title>
138
139 <sect3 id="apache-ant-config">
140 <title>Config Files</title>
141
142 <para><filename>/etc/ant/ant.conf</filename>,
143 <filename>~/.ant/ant.conf</filename>, and
144 <filename>~/.antrc</filename></para>
145
146 <indexterm zone="apache-ant apache-ant-config">
147 <primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary>
148 </indexterm>
149
150 <indexterm zone="apache-ant apache-ant-config">
151 <primary sortas="e-AA.antrc">~/.antrc</primary>
152 </indexterm>
153
154 <indexterm zone="apache-ant apache-ant-config">
155 <primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary>
156 </indexterm>
157
158 </sect3>
159
160 <sect3>
161 <title>Configuration Information</title>
162
163 <para>Some packages will require <command>ant</command> to be in the search
164 path and the <envar>$ANT_HOME</envar> environment variable defined.
165 Satisfy these requirements by adding the following lines to
166 <filename>/etc/profile</filename> or to individual user's
167 <filename>~/.profile</filename> or <filename>~/.bashrc</filename> files:</para>
168
169<screen><literal>export PATH=$PATH:/opt/ant/bin
170export ANT_HOME=/opt/ant</literal></screen>
171
172 </sect3>
173
174 </sect2>
175
176 <sect2 role="content">
177 <title>Contents</title>
178
179 <segmentedlist>
180 <segtitle>Installed Programs</segtitle>
181 <segtitle>Installed Libraries</segtitle>
182 <segtitle>Installed Directories</segtitle>
183
184 <seglistitem>
185 <seg>ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py</seg>
186 <seg>ant-*.jar, xercesImpl.jar, and xml-apis.jar</seg>
187 <seg>/etc/ant and /opt/ant-&apache-ant-version;</seg>
188 </seglistitem>
189 </segmentedlist>
190
191 <variablelist>
192 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
193 <?dbfo list-presentation="list"?>
194 <?dbhtml list-presentation="table"?>
195
196 <varlistentry id="ant">
197 <term><command>ant</command></term>
198 <listitem>
199 <para>is a <application>Java</application> based build tool used by
200 many packages instead of the conventional <command>make</command>
201 program.</para>
202 <indexterm zone="apache-ant ant">
203 <primary sortas="b-ant">ant</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="antRun">
209 <term><command>antRun</command></term>
210 <listitem>
211 <para>is a support script used to start <command>ant</command>
212 build scripts in a given directory.</para>
213 <indexterm zone="apache-ant antRun">
214 <primary sortas="b-antRun">antRun</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="antRun.pl">
220 <term><command>antRun.pl</command></term>
221 <listitem>
222 <para>is a <application>Perl</application> script that provides
223 similar functionality offered by the <command>antRun</command> script.</para>
224 <indexterm zone="apache-ant antRun.pl">
225 <primary sortas="b-antRun.pl">antRun.pl</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="complete-ant-cmd.pl">
231 <term><command>complete-ant-cmd.pl</command></term>
232 <listitem>
233 <para>is a <application>Perl</application> script that allows
234 <application>Bash</application> to complete an <command>ant</command>
235 command-line.</para>
236 <indexterm zone="apache-ant complete-ant-cmd.pl">
237 <primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="runant.pl">
243 <term><command>runant.pl</command></term>
244 <listitem>
245 <para>is a <application>Perl</application> wrapper script used to
246 invoke <command>ant</command>.</para>
247 <indexterm zone="apache-ant runant.pl">
248 <primary sortas="b-runant.pl">runant.pl</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="runant.py">
254 <term><command>runant.py</command></term>
255 <listitem>
256 <para>is a <application>Python</application> wrapper script used to
257 invoke <command>ant</command>.</para>
258 <indexterm zone="apache-ant runant.py">
259 <primary sortas="b-runant.py">runant.py</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="ant-star">
265 <term><filename class='libraryfile'>ant-*.jar</filename></term>
266 <listitem>
267 <para>files are the <application>Apache Ant</application>
268 <application>Java</application> class libraries.</para>
269 <indexterm zone="apache-ant ant-star">
270 <primary sortas="c-ant-star">ant-*.jar</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="xercesImpl">
276 <term><filename class='libraryfile'>xercesImpl.jar</filename></term>
277 <listitem>
278 <para>is a <application>Java</application> class library used by
279 <application>Apache Ant</application> to perform XML parsing.</para>
280 <indexterm zone="apache-ant xercesImpl">
281 <primary sortas="c-xercesImpl">xercesImpl.jar</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="xml-apis">
287 <term><filename class='libraryfile'>xml-apis.jar</filename></term>
288 <listitem>
289 <para>contains the DOM <application>Java</application> classes required
290 by the <application>Apache Ant</application> XML formatter.</para>
291 <indexterm zone="apache-ant xml-apis">
292 <primary sortas="c-xml-apis">xml-apis.jar</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 </variablelist>
298
299 </sect2>
300
301</sect1>
Note: See TracBrowser for help on using the repository browser.