source: general/prog/apache-ant.xml@ 4ad483bf

10.0 10.1 11.0 11.1 7.10 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 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 4ad483bf was 4ad483bf, checked in by Fernando de Oliveira <fernando@…>, 8 years ago

Update to apache-ant-1.9.3.

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

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