You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

faq.html 10 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- Content Stylesheet for Site -->
  3. <!-- start the processing -->
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  7. <meta name="author" value="Stefan Bodewig">
  8. <meta name="email" value="bodewig@apache.org">
  9. <title>The Jakarta Site - Frequently Asked Questions</title>
  10. </head>
  11. <body bgcolor="#ffffff" text="#000000" link="#525D76">
  12. <table border="0" width="100%" cellspacing="0">
  13. <!-- TOP IMAGE -->
  14. <tr>
  15. <td colspan="2">
  16. <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
  17. </td>
  18. </tr>
  19. </table>
  20. <table border="0" width="100%" cellspacing="4">
  21. <tr><td colspan="2">
  22. <hr noshade="" size="1"/>
  23. </td></tr>
  24. <tr>
  25. <!-- LEFT SIDE NAVIGATION -->
  26. <td valign="top" nowrap="true">
  27. <p><strong>Ant</strong></p>
  28. <ul>
  29. <li> <a href="./index.html">Front Page</a>
  30. </li>
  31. <li> <a href="./antnews.html">News</a>
  32. </li>
  33. <li> <a href="./manual/">Documentation</a>
  34. </li>
  35. <li> <a href="./external.html">External Resources</a>
  36. </li>
  37. <li> <a href="./faq.html">Ant FAQ</a>
  38. </li>
  39. </ul>
  40. <p><strong>Download</strong></p>
  41. <ul>
  42. <li> <a href="http://jakarta.apache.org/site/binindex.html">Binaries</a>
  43. </li>
  44. <li> <a href="http://jakarta.apache.org/site/sourceindex.html">Source Code</a>
  45. </li>
  46. </ul>
  47. <p><strong>Jakarta</strong></p>
  48. <ul>
  49. <li> <a href="http://jakarta.apache.org/site/news.html">News & Status</a>
  50. </li>
  51. <li> <a href="http://jakarta.apache.org/site/mission.html">Mission</a>
  52. </li>
  53. <li> <a href="http://jakarta.apache.org/site/guidelines.html">Guidelines Notes</a>
  54. </li>
  55. <li> <a href="http://jakarta.apache.org/site/faqs.html">FAQs</a>
  56. </li>
  57. </ul>
  58. <p><strong>Get Involved</strong></p>
  59. <ul>
  60. <li> <a href="http://jakarta.apache.org/site/getinvolved.html">Overview</a>
  61. </li>
  62. <li> <a href="http://jakarta.apache.org/site/cvsindex.html">CVS Repositories</a>
  63. </li>
  64. <li> <a href="http://jakarta.apache.org/site/mail.html">Mailing Lists</a>
  65. </li>
  66. <li> <a href="http://jakarta.apache.org/site/library.html">Reference Library</a>
  67. </li>
  68. <li> <a href="http://jakarta.apache.org/site/bugs.html">Bug Database</a>
  69. </li>
  70. </ul>
  71. </td>
  72. <td align="left" valign="top">
  73. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  74. <tr><td bgcolor="#525D76">
  75. <font color="#ffffff" face="arial,helvetica,sanserif">
  76. <strong>Questions</strong>
  77. </font>
  78. </td></tr>
  79. <tr><td>
  80. <blockquote>
  81. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  82. <tr><td bgcolor="#828DA6">
  83. <font color="#ffffff" face="arial,helvetica,sanserif">
  84. <strong>Installation</strong>
  85. </font>
  86. </td></tr>
  87. <tr><td>
  88. <blockquote>
  89. <ul>
  90. <li><a href="#no-gnu-tar">
  91. <question>I get checksum errors when I try to extract the
  92. <code>tar.gz</code> distribution file. Why?</question>
  93. </a></li>
  94. </ul>
  95. </blockquote>
  96. </td></tr>
  97. </table>
  98. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  99. <tr><td bgcolor="#828DA6">
  100. <font color="#ffffff" face="arial,helvetica,sanserif">
  101. <strong>Advanced issues</strong>
  102. </font>
  103. </td></tr>
  104. <tr><td>
  105. <blockquote>
  106. <ul>
  107. <li><a href="#xml-entity-include">
  108. <question>How do I include an XML snippet in my build file?</question>
  109. </a></li>
  110. </ul>
  111. </blockquote>
  112. </td></tr>
  113. </table>
  114. </blockquote>
  115. </td></tr>
  116. </table>
  117. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  118. <tr><td bgcolor="#525D76">
  119. <font color="#ffffff" face="arial,helvetica,sanserif">
  120. <strong>Answers</strong>
  121. </font>
  122. </td></tr>
  123. <tr><td>
  124. <blockquote>
  125. <a name="no-gnu-tar">
  126. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  127. <tr><td bgcolor="#828DA6">
  128. <font color="#ffffff" face="arial,helvetica,sanserif">
  129. <strong>
  130. <question>I get checksum errors when I try to extract the
  131. <code>tar.gz</code> distribution file. Why?</question>
  132. </strong>
  133. </font>
  134. </td></tr>
  135. <tr><td>
  136. <blockquote>
  137. <p>Ant's distibution contains file names that are longer
  138. than 100 characters, which is not supported by the standard
  139. tar file format. Several different implementations of tar use
  140. different and incompatible ways to work around this
  141. restriction.</p>
  142. <p>Ant's &lt;tar&gt; task can create tar archives that use
  143. the GNU tar extension, and this has been used when putting
  144. together the distribution. If you are using a different
  145. version of tar (for example, the one shipping with Solaris),
  146. you cannot use it to extract the archive.</p>
  147. <p>The solution is to either install GNU tar, which can be
  148. found <a href="http://www.gnu.org/software/tar/tar.html">here</a>
  149. or use the zip archive instead (you can extract it using
  150. <code>jar xf</code>).</p>
  151. </blockquote>
  152. </td></tr>
  153. </table>
  154. </a>
  155. <a name="xml-entity-include">
  156. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  157. <tr><td bgcolor="#828DA6">
  158. <font color="#ffffff" face="arial,helvetica,sanserif">
  159. <strong>
  160. <question>How do I include an XML snippet in my build file?</question>
  161. </strong>
  162. </font>
  163. </td></tr>
  164. <tr><td>
  165. <blockquote>
  166. <p>You can use XML's way of including external files and let
  167. the parser do the job for Ant:</p>
  168. <div align="left">
  169. <table cellspacing="4" cellpadding="0" border="0">
  170. <tr>
  171. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  172. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  173. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  174. </tr>
  175. <tr>
  176. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  177. <td bgcolor="#ffffff"><pre>
  178. &lt;?xml version=&quot;1.0&quot;?&gt;
  179. &lt;!DOCTYPE project [
  180. &lt;!ENTITY common SYSTEM &quot;file:./common.xml&quot;&gt;
  181. ]&gt;
  182. &lt;project name=&quot;test&quot; default=&quot;test&quot; basedir=&quot;.&quot;&gt;
  183. &lt;target name=&quot;setup&quot;&gt;
  184. ...
  185. &lt;/target&gt;
  186. &amp;common;
  187. ...
  188. &lt;/project&gt;
  189. </pre></td>
  190. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  191. </tr>
  192. <tr>
  193. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  194. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  195. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  196. </tr>
  197. </table>
  198. </div>
  199. <p>will literally include the contents of <code>common.xml</code> where
  200. you've placed the <code>&amp;common;</code> entity.</p>
  201. <p>In combination with a DTD, this would look like this:</p>
  202. <div align="left">
  203. <table cellspacing="4" cellpadding="0" border="0">
  204. <tr>
  205. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  206. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  207. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  208. </tr>
  209. <tr>
  210. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  211. <td bgcolor="#ffffff"><pre>
  212. &lt;!DOCTYPE project PUBLIC &quot;-//ANT//DTD project//EN&quot; &quot;file:./ant.dtd&quot; [
  213. &lt;!ENTITY include SYSTEM &quot;file:./header.xml&quot;&gt;
  214. ]&gt;
  215. </pre></td>
  216. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  217. </tr>
  218. <tr>
  219. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  220. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  221. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  222. </tr>
  223. </table>
  224. </div>
  225. </blockquote>
  226. </td></tr>
  227. </table>
  228. </a>
  229. </blockquote>
  230. </td></tr>
  231. </table>
  232. </td>
  233. </tr>
  234. <!-- FOOTER -->
  235. <tr><td colspan="2">
  236. <hr noshade="" size="1"/>
  237. </td></tr>
  238. <tr><td colspan="2">
  239. <div align="center"><font color="#525D76" size="-1"><em>
  240. Copyright &#169; 1999-2001, Apache Software Foundation
  241. </em></font></div>
  242. </td></tr>
  243. </table>
  244. </body>
  245. </html>
  246. <!-- end the processing -->