Ant clean up

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7999 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2009-08-29 17:18:46 +00:00
parent 643a6b4163
commit d41419060c

View File

@ -103,10 +103,10 @@
<application>Apache Ant</application> build.</para> -->
</note>
<para>If the recommendation of having <application>JUnit</application> installed
cannot be matched, <application>Apache Ant</application> can be installed
anyway but the tests cannot be performed. Remove the reference to
the test instructions by running the following command:</para>
<para>If it is not possible to install the recommended
<application>JUnit</application> package, install
<application>Apache Ant</application> by removing the reference to the test
instructions (note that the tests will not be performed):</para>
<screen><userinput>sed -i 's;jars,test-jar;jars;' build.xml</userinput></screen>
@ -116,10 +116,9 @@
<screen><userinput>sed -i 's|${dist.dir}/etc|/etc/ant|' build.xml
sed -i 's|/etc/ant.conf|/etc/ant/ant.conf|' src/script/ant</userinput></screen>
<para>The unit regression tests are performed in the build step below except
the first <command>sed</command> has been executed.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<para>The unit regression tests are performed during the build step below
unless <application>JUnit</application> is not installed. Now, as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist &amp;&amp;
ln -v -sf /etc/ant /opt/ant-&apache-ant-version;/etc &amp;&amp;
@ -130,8 +129,9 @@ ln -v -sf ant-&apache-ant-version; /opt/ant</userinput></screen>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>sed -i 's;jars...</command>: If <application>JUnit</application> package
is not installed, the regression tests cannot be performed.</para>
<para><command>sed -i 's;jars...</command>: If the
<application>JUnit</application> package is not installed, the regression
tests cannot be performed.</para>
<para><command>sed ...</command>: These commands change the configuration
directory to <filename class='directory'>/etc/ant</filename> to conform