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

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