source: general/prog/apache-ant.xml@ 602332ff

systemd-13485
Last change on this file since 602332ff was 602332ff, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Update URLs for the new anduin server.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16523 af4574ff-66df-0310-9fd7-8a98e5e911e0

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