|
|
@@ -11,22 +11,22 @@ |
|
|
|
<question>I get checksum errors when I try to extract the |
|
|
|
<code>tar.gz</code> distribution file. Why?</question> |
|
|
|
<answer> |
|
|
|
<p>Ant'distibution contains file names which are longer |
|
|
|
<p>Ant's distibution contains file names that are longer |
|
|
|
than 100 characters, which is not supported by the standard |
|
|
|
tar file format. Several different implementations of tar use |
|
|
|
tar file format. Several different implementations of tar use |
|
|
|
different and incompatible ways to work around this |
|
|
|
restriction.</p> |
|
|
|
|
|
|
|
<p>Ant' <tar> task can create tar archives that use |
|
|
|
<p>Ant's <tar> task can create tar archives that use |
|
|
|
the GNU tar extension, and this has been used when putting |
|
|
|
together the distribution. If you are using a different |
|
|
|
version of tar (for example the one shipping with Solaris), |
|
|
|
together the distribution. If you are using a different |
|
|
|
version of tar (for example, the one shipping with Solaris), |
|
|
|
you cannot use it to extract the archive.</p> |
|
|
|
|
|
|
|
<p>The solution is to either install GNU tar, which can be |
|
|
|
found <a href="http://www.gnu.org/software/tar/tar.html">here</a> |
|
|
|
or use the zip archive instead (you can extract it using |
|
|
|
<code>jar cf</code>).</p> |
|
|
|
<code>jar xf</code>).</p> |
|
|
|
</answer> |
|
|
|
</faq> |
|
|
|
</faqsection> |
|
|
@@ -35,7 +35,7 @@ |
|
|
|
<faq id="xml-entity-include"> |
|
|
|
<question>How do I include an XML snippet in my build file?</question> |
|
|
|
<answer> |
|
|
|
<p>You can use XML's way of including external files and let |
|
|
|
<p>You can use XML's way of including external files and let |
|
|
|
the parser do the job for Ant:</p> |
|
|
|
|
|
|
|
<source><![CDATA[ |
|
|
@@ -58,10 +58,10 @@ |
|
|
|
</project> |
|
|
|
]]></source> |
|
|
|
|
|
|
|
<p>will literally include the contents of common.xml where |
|
|
|
you've placed the &common; entity.</p> |
|
|
|
<p>will literally include the contents of <code>common.xml</code> where |
|
|
|
you've placed the <code>&common;</code> entity.</p> |
|
|
|
|
|
|
|
<p>In combination with a DTD this would look like this:</p> |
|
|
|
<p>In combination with a DTD, this would look like this:</p> |
|
|
|
|
|
|
|
<source><![CDATA[ |
|
|
|
<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "file:./ant.dtd" [ |
|
|
@@ -71,4 +71,4 @@ |
|
|
|
</answer> |
|
|
|
</faq> |
|
|
|
</faqsection> |
|
|
|
</document> |
|
|
|
</document> |