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

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