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

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