source: general/sysutils/apache-ant.xml@ 1039de3

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 1039de3 was 1039de3, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

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

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