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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 dd5bdf3 was dd5bdf3, checked in by Randy McMurchy <randy@…>, 19 years ago

Added new package Apache Ant-1.6.2

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

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY apache-ant-download-http "http://www.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 "83c3adefdbf90bcbc4b804d4c55c0778">
10 <!ENTITY apache-ant-size "6.2 MB">
11 <!ENTITY apache-ant-buildsize "90 MB">
12 <!ENTITY apache-ant-time "0.47 SBU">
13]>
14
15<sect1 id="apache-ant" xreflabel="Apache Ant-&apache-ant-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="apache-ant.html"?>
21<title>Apache Ant-&apache-ant-version;</title>
22
23<sect2>
24<title>Introduction to <application>Apache Ant</application></title>
25
26<para>The <application>Apache Ant</application> package is a
27<application>Java</application>-based build tool. In theory, it is kind of
28like <command>make</command>, but without <command>make</command>'s wrinkles.
29Ant is different. Instead of a model where it is extended with shell-based
30commands, Ant is extended using <application>Java</application> classes.
31Instead of writing shell commands, the configuration files are
32<acronym>XML</acronym>-based, calling out a target tree where various tasks
33get executed. Each task is run by an object that implements a particular task
34interface.</para>
35
36<sect3><title>Package information</title>
37<itemizedlist spacing="compact">
38<listitem><para>Download (HTTP):
39<ulink url="&apache-ant-download-http;"/></para></listitem>
40<listitem><para>Download (FTP):
41<ulink url="&apache-ant-download-ftp;"/></para></listitem>
42<listitem><para>Download MD5 sum: &apache-ant-md5sum;</para></listitem>
43<listitem><para>Download size: &apache-ant-size;</para></listitem>
44<listitem><para>Estimated disk space required:
45&apache-ant-buildsize;</para></listitem>
46<listitem><para>Estimated build time:
47&apache-ant-time;</para></listitem></itemizedlist>
48</sect3>
49
50<sect3><title>Additional downloads</title>
51<itemizedlist spacing="compact">
52<listitem><para>Required Patch: <ulink
53url="&patch-root;/apache-ant-&apache-ant-version;-blfs_install-1.patch"/></para>
54</listitem></itemizedlist>
55</sect3>
56
57<sect3><title><application>Apache Ant</application> dependencies</title>
58<sect4><title>Required</title>
59<para><xref linkend="j2sdk"/></para>
60</sect4>
61</sect3>
62
63</sect2>
64
65<sect2>
66<title>Installation of <application>Apache Ant</application></title>
67
68<para>Note: you may need additional libraries to satisify the build
69requirements of various packages. Review the table at
70<ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/>
71for any prerequisite libraries you may need.</para>
72
73<para>Install <application>Apache Ant</application> by running the following
74commands:</para>
75
76<screen><userinput><command>patch -Np1 -i ../apache-ant-&apache-ant-version;-blfs_install-1.patch &amp;&amp;
77./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp;
78ln -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp;
79ln -sf ant-&apache-ant-version; /opt/ant</command></userinput></screen>
80
81</sect2>
82
83<sect2>
84<title>Command explanations</title>
85
86<para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version;
87dist</command>: This command does everything. It builds the package, then
88installs the package into
89<filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para>
90
91<para><command>ln -sf /etc/ant /opt/ant-&apache-ant-version;/etc</command>:
92The patch changes the configuration directory to
93<filename class='directory'>/etc/ant</filename> to conform with
94<acronym>FHS</acronym> guidelines. This command creates a symlink from the
95configuration directory back to the installation directory as the package is
96expecting to find the files there.</para>
97
98<para><command>ln -sf ant-&apache-ant-version; /opt/ant</command>: This
99command is optional, and creates a convenience symlink.</para>
100
101</sect2>
102
103<sect2>
104<title>Configuring <application>Apache Ant</application></title>
105
106<sect3><title>Config files</title>
107<para><filename>/etc/ant/ant.conf</filename>,
108<filename>~/.ant/ant.conf</filename> and
109<filename>~/.antrc</filename></para>
110</sect3>
111
112<sect3><title>Configuration Information</title>
113<para>Some packages will require <command>ant</command> to be in the search
114path. Satisfy this requirement by adding the following line to
115<filename>/etc/profile</filename> or to individual user's
116<filename>~/.profile</filename> or <filename>.bashrc</filename> files:</para>
117
118<screen><userinput>export PATH=$PATH:/opt/ant/bin</userinput></screen>
119
120<para>You may also need to create an environment variable for
121<envar>$ANT_HOME</envar>. Add the following to one of the files mentioned
122above:</para>
123
124<screen><userinput>export ANT_HOME=/opt/ant</userinput></screen>
125</sect3>
126
127</sect2>
128
129<sect2>
130<title>Contents</title>
131
132<para>The <application>Apache Ant</application> package contains
133<command>ant</command>,
134<command>antRun</command>,
135<command>antRun.pl</command>,
136<command>complete-ant-cmd.pl</command>,
137<command>runant.pl</command>,
138<command>runant.py</command> and
139<filename>*.jar</filename> files.</para>
140
141</sect2>
142
143<sect2><title>Description</title>
144
145<sect3><title>ant</title>
146<para><command>ant</command> is a <application>Java</application> based
147build tool used by many packages instead of the conventional
148<command>make</command> program.</para>
149</sect3>
150
151</sect2>
152
153</sect1>
154
Note: See TracBrowser for help on using the repository browser.