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.

user.html 11 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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="Adam Murdoch">
  8. <meta name="email" value="adammurdoch@apache.org">
  9. <title>Apache Myrmidon - User Guide</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> <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. </td>
  19. <td valign="bottom"><div align="right"><b><font size="+3" color="#525D76">Apache Myrmidon</font></b></div></td>
  20. </tr>
  21. </table>
  22. <table border="0" width="100%" cellspacing="4">
  23. <tr><td colspan="2">
  24. <hr noshade="" size="1"/>
  25. </td></tr>
  26. <tr>
  27. <!-- LEFT SIDE NAVIGATION -->
  28. <td valign="top" nowrap="true">
  29. <p><strong>Myrmidon</strong></p>
  30. <ul>
  31. <li> <a href="./index.html">Introduction</a>
  32. </li>
  33. <li> <a href="./getinvolved.html">Get Involved</a>
  34. </li>
  35. <li> <a href="./user.html">Building Myrmidon</a>
  36. </li>
  37. <li> <a href="./todo.html">Todo List</a>
  38. </li>
  39. </ul>
  40. <p><strong>User Guide</strong></p>
  41. <ul>
  42. <li> <a href="./buildfile.html">Build file</a>
  43. </li>
  44. <li> <a href="./vfs.html">Virtual File System</a>
  45. </li>
  46. <li> <a href="./ant1compat.html">Ant1 Compatibility Layer</a>
  47. </li>
  48. <li> <a href="./differences.html">Differences to Ant1</a>
  49. </li>
  50. <li> <a href="./task.html">My First Task</a>
  51. </li>
  52. </ul>
  53. <p><strong>Extending Ant</strong></p>
  54. <ul>
  55. <li> <a href="./classloader.html">ClassLoader HOWTO</a>
  56. </li>
  57. <li> <a href="./librarys.html">Library HOWTO</a>
  58. </li>
  59. </ul>
  60. <p><strong>Container Design</strong></p>
  61. <ul>
  62. </ul>
  63. </td>
  64. <td align="left" valign="top">
  65. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  66. <tr><td bgcolor="#525D76">
  67. <font color="#ffffff" face="arial,helvetica,sanserif">
  68. <a name="Building Myrmidon"><strong>Building Myrmidon</strong></a>
  69. </font>
  70. </td></tr>
  71. <tr><td>
  72. <blockquote>
  73. <p>
  74. First, you will need to fetch the Myrmidon source from CVS. The source
  75. can be source in the <code>proposal/myrmidon</code> directory of the
  76. Ant source tree. You should check out the <code>jakarta-ant</code> CVS
  77. module, as described
  78. <a href="http://jakarta.apache.org/site/cvsindex.html">here</a>.
  79. </p>
  80. <p>
  81. To build Myrmidon, use the <code>build.xml</code> build script. You will need
  82. to use Ant 1.4.1 or later. The default target builds the Myrmidon distribution
  83. into the <code>dist</code> directory. The distribution is a ready-to-run
  84. installation of Myrmidon.
  85. </p>
  86. <p>There are a number features that are not built unless the appropriate optional Jar
  87. files are found in the <code>lib</code> directory:</p>
  88. <table>
  89. <tr>
  90. <td bgcolor="#039acc" colspan="" rowspan=""
  91. valign="top" align="left">
  92. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  93. Feature
  94. </font>
  95. </td>
  96. <td bgcolor="#039acc" colspan="" rowspan=""
  97. valign="top" align="left">
  98. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  99. Jar File
  100. </font>
  101. </td>
  102. <td bgcolor="#039acc" colspan="" rowspan=""
  103. valign="top" align="left">
  104. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  105. Download From
  106. </font>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  111. valign="top" align="left">
  112. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  113. SMB VFS support (Samba, Windows shares)
  114. </font>
  115. </td>
  116. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  117. valign="top" align="left">
  118. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  119. jcifs.jar
  120. </font>
  121. </td>
  122. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  123. valign="top" align="left">
  124. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  125. <a href="http://jcifs.samba.org">jcifs.samba.org</a>.
  126. <p>Note: there are problems using the 0.6.1 release. Try 0.6.0 instead.</p>
  127. </font>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  132. valign="top" align="left">
  133. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  134. FTP VFS support
  135. </font>
  136. </td>
  137. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  138. valign="top" align="left">
  139. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  140. netcomponents.jar
  141. </font>
  142. </td>
  143. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  144. valign="top" align="left">
  145. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  146. <a href="http://www.savarese.org/oro/software/NetComponents.html">www.savarese.org</a>
  147. </font>
  148. </td>
  149. </tr>
  150. </table>
  151. </blockquote>
  152. </td></tr>
  153. </table>
  154. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  155. <tr><td bgcolor="#525D76">
  156. <font color="#ffffff" face="arial,helvetica,sanserif">
  157. <a name="Running Myrmidon"><strong>Running Myrmidon</strong></a>
  158. </font>
  159. </td></tr>
  160. <tr><td>
  161. <blockquote>
  162. <p>
  163. To run Myrmidon, use one of the following methods:
  164. </p>
  165. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  166. <tr><td bgcolor="#828DA6">
  167. <font color="#ffffff" face="arial,helvetica,sanserif">
  168. <a name="Launcher Script"><strong>Launcher Script</strong></a>
  169. </font>
  170. </td></tr>
  171. <tr><td>
  172. <blockquote>
  173. <p>
  174. On Windows and Unix platforms, you can use the <code>ant</code> script
  175. in the distribution's <code>bin</code> directory. The following environment
  176. variables can be used, but are not required (except on Windows 9x - see below).
  177. </p>
  178. <p>
  179. </p>
  180. <table>
  181. <tr>
  182. <td bgcolor="#039acc" colspan="" rowspan=""
  183. valign="top" align="left">
  184. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  185. Variable
  186. </font>
  187. </td>
  188. <td bgcolor="#039acc" colspan="" rowspan=""
  189. valign="top" align="left">
  190. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  191. Description
  192. </font>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  197. valign="top" align="left">
  198. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  199. JAVA_HOME
  200. </font>
  201. </td>
  202. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  203. valign="top" align="left">
  204. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  205. The directory that the JDK is installed in.
  206. </font>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  211. valign="top" align="left">
  212. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  213. JAVACMD
  214. </font>
  215. </td>
  216. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  217. valign="top" align="left">
  218. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  219. The command to use to start the JVM. Defaults to <code>java</code>.
  220. </font>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  225. valign="top" align="left">
  226. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  227. ANT_HOME
  228. </font>
  229. </td>
  230. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  231. valign="top" align="left">
  232. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  233. The directory containing the Myrmidon distribution. This must be
  234. set when running on Windows 95, 98 or Me.
  235. </font>
  236. </td>
  237. </tr>
  238. </table>
  239. </blockquote>
  240. </td></tr>
  241. </table>
  242. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  243. <tr><td bgcolor="#828DA6">
  244. <font color="#ffffff" face="arial,helvetica,sanserif">
  245. <a name="Executable Jar File"><strong>Executable Jar File</strong></a>
  246. </font>
  247. </td></tr>
  248. <tr><td>
  249. <blockquote>
  250. <p>
  251. The Myrmidon distribution includes an executable Jar file, which can be used
  252. to run Myrmidon. Use the following command:
  253. </p>
  254. <pre>
  255. prompt&gt; <i>java</i> -jar <i>ant-home</i>/bin/myrmidon-launcher.jar <i>options</i>
  256. </pre>
  257. </blockquote>
  258. </td></tr>
  259. </table>
  260. <p>When started, Myrmidon looks for a project file called <code>build.ant</code>
  261. in the current directory. A different project file can be specified using the
  262. <code>-f</code> command-line option. Myrmidon executes the targets given on
  263. the command-line, or the default target if none is given. For example, the
  264. following executes the targets <code>clean</code> and <code>build</code> from
  265. the project file <code>my-project.xml</code>:</p>
  266. <pre>
  267. prompt&gt; ant -f my-project.xml clean build
  268. </pre>
  269. <p>
  270. Run Myrmidon with the <code>-h</code> command-line option for a list of
  271. the command-line options that are available.
  272. </p>
  273. </blockquote>
  274. </td></tr>
  275. </table>
  276. </td>
  277. </tr>
  278. <!-- FOOTER -->
  279. <tr><td colspan="2">
  280. <hr noshade="" size="1"/>
  281. </td></tr>
  282. <tr><td colspan="2">
  283. <div align="center"><font color="#525D76" size="-1"><em>
  284. Copyright &#169; 2000-2002, Apache Software Foundation
  285. </em></font></div>
  286. </td></tr>
  287. </table>
  288. </body>
  289. </html>
  290. <!-- end the processing -->