Tagged apache-ant.xml

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3995 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Manuel Canales Esparcia 2005-05-06 19:15:52 +00:00
parent 2c24d1e1a3
commit 514ef84dee

View File

@ -13,242 +13,285 @@
]> ]>
<sect1 id="apache-ant" xreflabel="Apache Ant-&apache-ant-version;"> <sect1 id="apache-ant" xreflabel="Apache Ant-&apache-ant-version;">
<sect1info> <?dbhtml filename="apache-ant.html"?>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="apache-ant.html"?>
<title>Apache Ant-&apache-ant-version;</title>
<indexterm zone="apache-ant">
<primary sortas="a-Apache-Ant">Apache Ant</primary></indexterm>
<sect2> <sect1info>
<title>Introduction to <application>Apache Ant</application></title> <othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<para>The <application>Apache Ant</application> package is a <title>Apache Ant-&apache-ant-version;</title>
<application>Java</application>-based build tool. In theory, it is kind of
like <command>make</command>, but without <command>make</command>'s wrinkles.
Ant is different. Instead of a model where it is extended with shell-based
commands, Ant is extended using <application>Java</application> classes.
Instead of writing shell commands, the configuration files are
<acronym>XML</acronym>-based, calling out a target tree where various tasks
get executed. Each task is run by an object that implements a particular task
interface.</para>
<sect3><title>Package information</title> <indexterm zone="apache-ant">
<itemizedlist spacing="compact"> <primary sortas="a-Apache-Ant">Apache Ant</primary>
<listitem><para>Download (HTTP): </indexterm>
<ulink url="&apache-ant-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&apache-ant-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum: &apache-ant-md5sum;</para></listitem>
<listitem><para>Download size: &apache-ant-size;</para></listitem>
<listitem><para>Estimated disk space required:
&apache-ant-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&apache-ant-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title> <sect2 role="package">
<itemizedlist spacing="compact"> <title>Introduction to Apache Ant</title>
<listitem><para>Required Patch: <ulink
url="&patch-root;/apache-ant-&apache-ant-version;-blfs_install-1.patch"/></para>
</listitem></itemizedlist>
</sect3>
<sect3><title><application>Apache Ant</application> dependencies</title> <para>The <application>Apache Ant</application> package is a
<sect4><title>Required</title> <application>Java</application>-based build tool. In theory, it is kind of like
<para><xref linkend="jdk"/></para> <command>make</command>, but without <command>make</command>'s wrinkles.
</sect4> Ant is different. Instead of a model where it is extended with shell-based commands,
</sect3> Ant is extended using <application>Java</application> classes. Instead of writing
shell commands, the configuration files are XML-based, calling out a target tree where
various tasks get executed. Each task is run by an object that implements a
particular task interface.</para>
</sect2> <bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&apache-ant-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&apache-ant-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &apache-ant-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &apache-ant-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &apache-ant-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &apache-ant-time;</para>
</listitem>
</itemizedlist>
<sect2> <bridgehead renderas="sect3">Additional Downloads</bridgehead>
<title>Installation of <application>Apache Ant</application></title> <itemizedlist spacing="compact">
<listitem>
<para>Required Patch: <ulink
url="&patch-root;/apache-ant-&apache-ant-version;-blfs_install-1.patch"/></para>
</listitem>
</itemizedlist>
<para>Note: you may need additional libraries to satisify the build <bridgehead renderas="sect3">Apache Ant Dependencies</bridgehead>
requirements of various packages installed using
<application>Apache Ant</application>. Review the table at
<ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
for any prerequisite libraries you may need. One such library is the
<application>JUnit</application> testing framework library. Many Ant-installed
packages will use this library to perform the unit tests during the build
process. To install the JUnit library along with the
<application>Apache Ant</application> package, download it from
<ulink url="http://www.junit.org/"/>, unzip the distribution file (requires
<xref linkend="unzip"/>) and copy the <filename>junit.jar</filename> file
into the <filename class='directory'>lib</filename> subdirectory of the
<application>Apache Ant</application> source tree before beginning the
<application>Apache Ant</application> build.</para>
<para>Install <application>Apache Ant</application> by running the following <bridgehead renderas="sect4">Required</bridgehead>
commands:</para> <para><xref linkend="jdk"/></para>
<screen><userinput><command>patch -Np1 -i ../apache-ant-&apache-ant-version;-blfs_install-1.patch</command></userinput></screen> </sect2>
<para>Now, as the root user:</para> <sect2 role="installation">
<title>Installation of Apache Ant</title>
<screen><userinput role='root'><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp; <note>
ln -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp; <para>You may need additional libraries to satisify the build
ln -sf ant-&apache-ant-version; /opt/ant</command></userinput></screen> requirements of various packages installed using
<application>Apache Ant</application>. Review the table at
<ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
for any prerequisite libraries you may need. One such library is the
<application>JUnit</application> testing framework library. Many Ant-installed
packages will use this library to perform the unit tests during the build
process. To install the JUnit library along with the
<application>Apache Ant</application> package, download it from
<ulink url="http://www.junit.org/"/>, unzip the distribution file (requires
<xref linkend="unzip"/>) and copy the <filename>junit.jar</filename> file
into the <filename class='directory'>lib</filename> subdirectory of the
<application>Apache Ant</application> source tree before beginning the
<application>Apache Ant</application> build.</para>
</note>
</sect2> <para>Install <application>Apache Ant</application> by running the following
commands:</para>
<sect2> <screen><userinput>patch -Np1 -i ../apache-ant-&apache-ant-version;-blfs_install-1.patch</userinput></screen>
<title>Command explanations</title>
<para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
dist</command>: This command does everything. It builds the package, then
installs the package into
<filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
<para><command>ln -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>: <screen role="root"><userinput>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp;
The patch changes the configuration directory to ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp;
<filename class='directory'>/etc/ant</filename> to conform with ln -v -sf ant-&apache-ant-version; /opt/ant</userinput></screen>
<acronym>FHS</acronym> guidelines. This command creates a symlink from the
configuration directory back to the installation directory as the package is
expecting to find the files there.</para>
<para><command>ln -sf ant-&apache-ant-version; /opt/ant</command>: This </sect2>
command is optional, and creates a convenience symlink.</para>
</sect2> <sect2 role="commands">
<title>Command Explanations</title>
<sect2> <para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version;
<title>Configuring <application>Apache Ant</application></title> dist</command>: This command does everything. It builds the package, then
installs the package into
<filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
<sect3 id="apache-ant-config"><title>Config files</title> <para><command>ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>:
<para><filename>/etc/ant/ant.conf</filename>, The patch changes the configuration directory to
<filename>~/.ant/ant.conf</filename> and <filename class='directory'>/etc/ant</filename> to conform with
<filename>~/.antrc</filename></para> FHS guidelines. This command creates a symlink from the
<indexterm zone="apache-ant apache-ant-config"> configuration directory back to the installation directory as the package is
<primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary></indexterm> expecting to find the files there.</para>
<indexterm zone="apache-ant apache-ant-config">
<primary sortas="e-AA.antrc">~/.antrc</primary></indexterm>
<indexterm zone="apache-ant apache-ant-config">
<primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary></indexterm>
</sect3>
<sect3><title>Configuration Information</title> <para><command>ln -v -sf ant-&apache-ant-version; /opt/ant</command>: This
<para>Some packages will require <command>ant</command> to be in the search command is optional, and creates a convenience symlink.</para>
path and the <envar>$ANT_HOME</envar> environment variable defined.
Satisfy these requirements by adding the following lines to
<filename>/etc/profile</filename> or to individual user's
<filename>~/.profile</filename> or <filename>~/.bashrc</filename> files:</para>
<screen><userinput>export PATH=$PATH:/opt/ant/bin </sect2>
export ANT_HOME=/opt/ant</userinput></screen>
</sect3>
</sect2> <sect2 role="configuration">
<title>Configuring Apache Ant</title>
<sect2> <sect3 id="apache-ant-config">
<title>Contents</title> <title>Config files</title>
<segmentedlist> <para><filename>/etc/ant/ant.conf</filename>,
<segtitle>Installed Programs</segtitle> <filename>~/.ant/ant.conf</filename>, and
<segtitle>Installed Libraries</segtitle> <filename>~/.antrc</filename></para>
<segtitle>Installed Directories</segtitle>
<seglistitem> <indexterm zone="apache-ant apache-ant-config">
<seg>ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl and runant.py</seg> <primary sortas="e-AA.ant-ant.conf">~/.ant/ant.conf</primary>
<seg>ant-*.jar, xercesImpl.jar and xml-apis.jar</seg> </indexterm>
<seg>/etc/ant and /opt/ant-&apache-ant-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist> <indexterm zone="apache-ant apache-ant-config">
<bridgehead renderas="sect3">Short Descriptions</bridgehead> <primary sortas="e-AA.antrc">~/.antrc</primary>
<?dbfo list-presentation="list"?> </indexterm>
<varlistentry id="ant"> <indexterm zone="apache-ant apache-ant-config">
<term><command>ant</command></term> <primary sortas="e-etc-ant-ant.conf">/etc/ant/ant.conf</primary>
<listitem><para>is a <application>Java</application> based build tool used by </indexterm>
many packages instead of the conventional <command>make</command>
program.</para>
<indexterm zone="apache-ant ant">
<primary sortas="b-ant">ant</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="antRun"> </sect3>
<term><command>antRun</command></term>
<listitem><para>is a support script used to start <command>ant</command>
build scripts in a given directory.</para>
<indexterm zone="apache-ant antRun">
<primary sortas="b-antRun">antRun</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="antRun.pl"> <sect3>
<term><command>antRun.pl</command></term> <title>Configuration Information</title>
<listitem><para>is a <application>Perl</application> script that provides
similar functionality offered by the <command>antRun</command> script.</para>
<indexterm zone="apache-ant antRun.pl">
<primary sortas="b-antRun.pl">antRun.pl</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="complete-ant-cmd.pl"> <para>Some packages will require <command>ant</command> to be in the search
<term><command>complete-ant-cmd.pl</command></term> path and the <envar>$ANT_HOME</envar> environment variable defined.
<listitem><para>is a <application>Perl</application> script that allows Satisfy these requirements by adding the following lines to
<application>Bash</application> to complete an <command>ant</command> <filename>/etc/profile</filename> or to individual user's
command-line.</para> <filename>~/.profile</filename> or <filename>~/.bashrc</filename> files:</para>
<indexterm zone="apache-ant complete-ant-cmd.pl">
<primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="runant.pl"> <screen><literal>export PATH=$PATH:/opt/ant/bin
<term><command>runant.pl</command></term> export ANT_HOME=/opt/ant</literal></screen>
<listitem><para>is a <application>Perl</application> wrapper script used to
invoke <command>ant</command>.</para>
<indexterm zone="apache-ant runant.pl">
<primary sortas="b-runant.pl">runant.pl</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="runant.py"> </sect3>
<term><command>runant.py</command></term>
<listitem><para>is a <application>Python</application> wrapper script used to
invoke <command>ant</command>.</para>
<indexterm zone="apache-ant runant.py">
<primary sortas="b-runant.py">runant.py</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="ant-star"> </sect2>
<term><filename class='libraryfile'>ant-*.jar</filename></term>
<listitem><para>files are the <application>Apache Ant</application>
<application>Java</application> class libraries.</para>
<indexterm zone="apache-ant ant-star">
<primary sortas="c-ant-star">ant-*.jar</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="xercesImpl"> <sect2 role="content">
<term><filename class='libraryfile'>xercesImpl.jar</filename></term> <title>Contents</title>
<listitem><para>is a <application>Java</application> class library used by
<application>Apache Ant</application> to perform <acronym>XML</acronym>
parsing.</para>
<indexterm zone="apache-ant xercesImpl">
<primary sortas="c-xercesImpl">xercesImpl.jar</primary>
</indexterm></listitem>
</varlistentry>
<varlistentry id="xml-apis"> <segmentedlist>
<term><filename class='libraryfile'>xml-apis.jar</filename></term> <segtitle>Installed Programs</segtitle>
<listitem><para>contains the <acronym>DOM</acronym> <segtitle>Installed Libraries</segtitle>
<application>Java</application> classes required by the <segtitle>Installed Directories</segtitle>
<application>Apache Ant</application> <acronym>XML</acronym> formatter.</para>
<indexterm zone="apache-ant xml-apis">
<primary sortas="c-xml-apis">xml-apis.jar</primary>
</indexterm></listitem>
</varlistentry>
</variablelist>
</sect2> <seglistitem>
<seg>ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py</seg>
<seg>ant-*.jar, xercesImpl.jar, and xml-apis.jar</seg>
<seg>/etc/ant and /opt/ant-&apache-ant-version;</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="ant">
<term><command>ant</command></term>
<listitem>
<para>is a <application>Java</application> based build tool used by
many packages instead of the conventional <command>make</command>
program.</para>
<indexterm zone="apache-ant ant">
<primary sortas="b-ant">ant</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="antRun">
<term><command>antRun</command></term>
<listitem>
<para>is a support script used to start <command>ant</command>
build scripts in a given directory.</para>
<indexterm zone="apache-ant antRun">
<primary sortas="b-antRun">antRun</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="antRun.pl">
<term><command>antRun.pl</command></term>
<listitem>
<para>is a <application>Perl</application> script that provides
similar functionality offered by the <command>antRun</command> script.</para>
<indexterm zone="apache-ant antRun.pl">
<primary sortas="b-antRun.pl">antRun.pl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="complete-ant-cmd.pl">
<term><command>complete-ant-cmd.pl</command></term>
<listitem>
<para>is a <application>Perl</application> script that allows
<application>Bash</application> to complete an <command>ant</command>
command-line.</para>
<indexterm zone="apache-ant complete-ant-cmd.pl">
<primary sortas="b-complete-ant-cmd.pl">complete-ant-cmd.pl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="runant.pl">
<term><command>runant.pl</command></term>
<listitem>
<para>is a <application>Perl</application> wrapper script used to
invoke <command>ant</command>.</para>
<indexterm zone="apache-ant runant.pl">
<primary sortas="b-runant.pl">runant.pl</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="runant.py">
<term><command>runant.py</command></term>
<listitem>
<para>is a <application>Python</application> wrapper script used to
invoke <command>ant</command>.</para>
<indexterm zone="apache-ant runant.py">
<primary sortas="b-runant.py">runant.py</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ant-star">
<term><filename class='libraryfile'>ant-*.jar</filename></term>
<listitem>
<para>files are the <application>Apache Ant</application>
<application>Java</application> class libraries.</para>
<indexterm zone="apache-ant ant-star">
<primary sortas="c-ant-star">ant-*.jar</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="xercesImpl">
<term><filename class='libraryfile'>xercesImpl.jar</filename></term>
<listitem>
<para>is a <application>Java</application> class library used by
<application>Apache Ant</application> to perform XML parsing.</para>
<indexterm zone="apache-ant xercesImpl">
<primary sortas="c-xercesImpl">xercesImpl.jar</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="xml-apis">
<term><filename class='libraryfile'>xml-apis.jar</filename></term>
<listitem>
<para>contains the DOM <application>Java</application> classes required
by the <application>Apache Ant</application> XML formatter.</para>
<indexterm zone="apache-ant xml-apis">
<primary sortas="c-xml-apis">xml-apis.jar</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1> </sect1>