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 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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="./external.html">External Resources</a>
  34. </li>
  35. </ul>
  36. <p><strong>Jakarta</strong></p>
  37. <ul>
  38. <li> <a href="http://jakarta.apache.org/site/news.html">News & Status</a>
  39. </li>
  40. <li> <a href="http://jakarta.apache.org/site/mission.html">Mission</a>
  41. </li>
  42. <li> <a href="http://jakarta.apache.org/site/guidelines.html">Guidelines Notes</a>
  43. </li>
  44. <li> <a href="http://jakarta.apache.org/site/faqs.html">FAQs</a>
  45. </li>
  46. </ul>
  47. <p><strong>Download</strong></p>
  48. <ul>
  49. <li> <a href="http://jakarta.apache.org/site/binindex.html">Binaries</a>
  50. </li>
  51. <li> <a href="http://jakarta.apache.org/site/sourceindex.html">Source Code</a>
  52. </li>
  53. </ul>
  54. <p><strong>Get Involved</strong></p>
  55. <ul>
  56. <li> <a href="http://jakarta.apache.org/site/getinvolved.html">Overview</a>
  57. </li>
  58. <li> <a href="http://jakarta.apache.org/site/cvsindex.html">CVS Repositories</a>
  59. </li>
  60. <li> <a href="http://jakarta.apache.org/site/mail.html">Mailing Lists</a>
  61. </li>
  62. <li> <a href="http://jakarta.apache.org/site/library.html">Reference Library</a>
  63. </li>
  64. <li> <a href="http://jakarta.apache.org/site/bugs.html">Bug Database</a>
  65. </li>
  66. </ul>
  67. <p><strong>Other Projects</strong></p>
  68. <ul>
  69. <li> <a href="http://jakarta.apache.org/avalon/index.html">Avalon</a>
  70. </li>
  71. <li> <a href="http://jakarta.apache.org/commons/index.html">Commons</a>
  72. </li>
  73. <li> <a href="http://jakarta.apache.org/ecs/index.html">ECS</a>
  74. </li>
  75. <li> <a href="http://jakarta.apache.org/james/index.html">James</a>
  76. </li>
  77. <li> <a href="http://jakarta.apache.org/jetspeed/index.html">Jetspeed</a>
  78. </li>
  79. <li> <a href="http://jakarta.apache.org/jmeter/index.html">JMeter</a>
  80. </li>
  81. <li> <a href="http://jakarta.apache.org/log4j/index.html">Log4J</a>
  82. </li>
  83. <li> <a href="http://jakarta.apache.org/oro/index.html">ORO</a>
  84. </li>
  85. <li> <a href="http://jakarta.apache.org/regexp/index.html">Regexp</a>
  86. </li>
  87. <li> <a href="http://jakarta.apache.org/slide/index.html">Slide</a>
  88. </li>
  89. <li> <a href="http://jakarta.apache.org/struts/index.html">Struts</a>
  90. </li>
  91. <li> <a href="http://jakarta.apache.org/taglibs/index.html">Taglibs</a>
  92. </li>
  93. <li> <a href="http://jakarta.apache.org/tomcat/index.html">Tomcat</a>
  94. </li>
  95. <li> <a href="http://jakarta.apache.org/turbine/index.html">Turbine</a>
  96. </li>
  97. <li> <a href="http://jakarta.apache.org/velocity/index.html">Velocity</a>
  98. </li>
  99. <li> <a href="http://jakarta.apache.org/watchdog/index.html">Watchdog</a>
  100. </li>
  101. </ul>
  102. <p><strong>Misc</strong></p>
  103. <ul>
  104. <li> <a href="http://jakarta.apache.org/site/whoweare.html">Who We Are</a>
  105. </li>
  106. <li> <a href="http://jakarta.apache.org/site/acknowledgements.html">Acknowledgements</a>
  107. </li>
  108. <li> <a href="http://jakarta.apache.org/site/roles.html">Management</a>
  109. </li>
  110. <li> <a href="http://jakarta.apache.org/site/jakarta-site2.html">About This Site</a>
  111. </li>
  112. <li> <a href="http://jakarta.apache.org/site/contact.html">Contact</a>
  113. </li>
  114. <li> <a href="http://jakarta.apache.org/site/legal.html">Legal</a>
  115. </li>
  116. </ul>
  117. </td>
  118. <td align="left" valign="top">
  119. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  120. <tr><td bgcolor="#525D76">
  121. <font color="#ffffff" face="arial,helvetica,sanserif">
  122. <strong>Questions</strong>
  123. </font>
  124. </td></tr>
  125. <tr><td>
  126. <blockquote>
  127. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  128. <tr><td bgcolor="#828DA6">
  129. <font color="#ffffff" face="arial,helvetica,sanserif">
  130. <strong>Installation</strong>
  131. </font>
  132. </td></tr>
  133. <tr><td>
  134. <blockquote>
  135. <ul>
  136. <li><a href="no-gnu-tar">
  137. <question>I get checksum errors when I try to extract the
  138. <code>tar.gz</code> distribution file. Why?</question>
  139. </a></li>
  140. </ul>
  141. </blockquote>
  142. </td></tr>
  143. </table>
  144. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  145. <tr><td bgcolor="#828DA6">
  146. <font color="#ffffff" face="arial,helvetica,sanserif">
  147. <strong>Advanced issues</strong>
  148. </font>
  149. </td></tr>
  150. <tr><td>
  151. <blockquote>
  152. <ul>
  153. <li><a href="xml-entity-include">
  154. <question>How do I include an XML snippet in my build file?</question>
  155. </a></li>
  156. </ul>
  157. </blockquote>
  158. </td></tr>
  159. </table>
  160. </blockquote>
  161. </td></tr>
  162. </table>
  163. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  164. <tr><td bgcolor="#525D76">
  165. <font color="#ffffff" face="arial,helvetica,sanserif">
  166. <strong>Answers</strong>
  167. </font>
  168. </td></tr>
  169. <tr><td>
  170. <blockquote>
  171. <a name="no-gnu-tar">
  172. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  173. <tr><td bgcolor="#828DA6">
  174. <font color="#ffffff" face="arial,helvetica,sanserif">
  175. <strong>
  176. <question>I get checksum errors when I try to extract the
  177. <code>tar.gz</code> distribution file. Why?</question>
  178. </strong>
  179. </font>
  180. </td></tr>
  181. <tr><td>
  182. <blockquote>
  183. <p>Ant'distibution contains file names which are longer
  184. than 100 characters, which is not supported by the standard
  185. tar file format. Several different implementations of tar use
  186. different and incompatible ways to work around this
  187. restriction.</p>
  188. <p>Ant' &lt;tar&gt; task can create tar archives that use
  189. the GNU tar extension, and this has been used when putting
  190. together the distribution. If you are using a different
  191. version of tar (for example the one shipping with Solaris),
  192. you cannot use it to extract the archive.</p>
  193. <p>The solution is to either install GNU tar, which can be
  194. found <a href="http://www.gnu.org/software/tar/tar.html">here</a>
  195. or use the zip archive instead (you can extract it using
  196. <code>jar cf</code>).</p>
  197. </blockquote>
  198. </td></tr>
  199. </table>
  200. </a>
  201. <a name="xml-entity-include">
  202. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  203. <tr><td bgcolor="#828DA6">
  204. <font color="#ffffff" face="arial,helvetica,sanserif">
  205. <strong>
  206. <question>How do I include an XML snippet in my build file?</question>
  207. </strong>
  208. </font>
  209. </td></tr>
  210. <tr><td>
  211. <blockquote>
  212. <p>You can use XML's way of including external files and let
  213. the parser do the job for Ant:</p>
  214. <div align="left">
  215. <table cellspacing="4" cellpadding="0" border="0">
  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. <tr>
  222. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  223. <td bgcolor="#ffffff"><pre>
  224. &lt;?xml version=&quot;1.0&quot;?&gt;
  225. &lt;!DOCTYPE project [
  226. &lt;!ENTITY common SYSTEM &quot;file:./common.xml&quot;&gt;
  227. ]&gt;
  228. &lt;project name=&quot;test&quot; default=&quot;test&quot; basedir=&quot;.&quot;&gt;
  229. &lt;target name=&quot;setup&quot;&gt;
  230. ...
  231. &lt;/target&gt;
  232. &amp;common;
  233. ...
  234. &lt;/project&gt;
  235. </pre></td>
  236. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  237. </tr>
  238. <tr>
  239. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  240. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  241. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  242. </tr>
  243. </table>
  244. </div>
  245. <p>will literally include the contents of common.xml where
  246. you've placed the &amp;common; entity.</p>
  247. <p>In combination with a DTD this would look like this:</p>
  248. <div align="left">
  249. <table cellspacing="4" cellpadding="0" border="0">
  250. <tr>
  251. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  252. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  253. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  254. </tr>
  255. <tr>
  256. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  257. <td bgcolor="#ffffff"><pre>
  258. &lt;!DOCTYPE project PUBLIC &quot;-//ANT//DTD project//EN&quot; &quot;file:./ant.dtd&quot; [
  259. &lt;!ENTITY include SYSTEM &quot;file:./header.xml&quot;&gt;
  260. ]&gt;
  261. </pre></td>
  262. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  263. </tr>
  264. <tr>
  265. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  266. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  267. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  268. </tr>
  269. </table>
  270. </div>
  271. </blockquote>
  272. </td></tr>
  273. </table>
  274. </a>
  275. </blockquote>
  276. </td></tr>
  277. </table>
  278. </td>
  279. </tr>
  280. <!-- FOOTER -->
  281. <tr><td colspan="2">
  282. <hr noshade="" size="1"/>
  283. </td></tr>
  284. <tr><td colspan="2">
  285. <div align="center"><font color="#525D76" size="-1"><em>
  286. Copyright &#169; 1999-2001, Apache Software Foundation
  287. </em></font></div>
  288. </td></tr>
  289. </table>
  290. </body>
  291. </html>
  292. <!-- end the processing -->