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 10 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <p>Note: there are problems using the 0.6.1 release. Try 0.6.0 instead.</p>
  123. </font>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  128. valign="top" align="left">
  129. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  130. FTP VFS support
  131. </font>
  132. </td>
  133. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  134. valign="top" align="left">
  135. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  136. netcomponents.jar
  137. </font>
  138. </td>
  139. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  140. valign="top" align="left">
  141. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  142. <a href="http://www.savarese.org/oro/software/NetComponents.html">www.savarese.org</a>
  143. </font>
  144. </td>
  145. </tr>
  146. </table>
  147. </blockquote>
  148. </td></tr>
  149. </table>
  150. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  151. <tr><td bgcolor="#525D76">
  152. <font color="#ffffff" face="arial,helvetica,sanserif">
  153. <a name="Running Myrmidon"><strong>Running Myrmidon</strong></a>
  154. </font>
  155. </td></tr>
  156. <tr><td>
  157. <blockquote>
  158. <p>
  159. To run Myrmidon, use one of the following methods:
  160. </p>
  161. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  162. <tr><td bgcolor="#828DA6">
  163. <font color="#ffffff" face="arial,helvetica,sanserif">
  164. <a name="Launcher Script"><strong>Launcher Script</strong></a>
  165. </font>
  166. </td></tr>
  167. <tr><td>
  168. <blockquote>
  169. <p>
  170. On Windows and Unix platforms, you can use the <code>ant</code> script
  171. in the distribution's <code>bin</code> directory. The following environment
  172. variables can be used, but are not required (except on Windows 9x - see below).
  173. </p>
  174. <p>
  175. </p>
  176. <table>
  177. <tr>
  178. <td bgcolor="#039acc" colspan="" rowspan=""
  179. valign="top" align="left">
  180. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  181. Variable
  182. </font>
  183. </td>
  184. <td bgcolor="#039acc" colspan="" rowspan=""
  185. valign="top" align="left">
  186. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  187. Description
  188. </font>
  189. </td>
  190. </tr>
  191. <tr>
  192. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  193. valign="top" align="left">
  194. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  195. JAVA_HOME
  196. </font>
  197. </td>
  198. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  199. valign="top" align="left">
  200. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  201. The directory that the JDK is installed in.
  202. </font>
  203. </td>
  204. </tr>
  205. <tr>
  206. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  207. valign="top" align="left">
  208. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  209. JAVACMD
  210. </font>
  211. </td>
  212. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  213. valign="top" align="left">
  214. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  215. The command to use to start the JVM. Defaults to <code>java</code>.
  216. </font>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  221. valign="top" align="left">
  222. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  223. ANT_HOME
  224. </font>
  225. </td>
  226. <td bgcolor="#a0ddf0" colspan="" rowspan=""
  227. valign="top" align="left">
  228. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  229. The directory containing the Myrmidon distribution. This must be
  230. set when running on Windows 95, 98 or Me.
  231. </font>
  232. </td>
  233. </tr>
  234. </table>
  235. </blockquote>
  236. </td></tr>
  237. </table>
  238. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  239. <tr><td bgcolor="#828DA6">
  240. <font color="#ffffff" face="arial,helvetica,sanserif">
  241. <a name="Executable Jar File"><strong>Executable Jar File</strong></a>
  242. </font>
  243. </td></tr>
  244. <tr><td>
  245. <blockquote>
  246. <p>
  247. The Myrmidon distribution includes an executable Jar file, which can be used
  248. to run Myrmidon. Use the following command:
  249. </p>
  250. <pre>
  251. prompt&gt; <i>java</i> -jar <i>ant-home</i>/bin/myrmidon-launcher.jar <i>options</i>
  252. </pre>
  253. </blockquote>
  254. </td></tr>
  255. </table>
  256. <p>When started, Myrmidon looks for a project file called <code>build.ant</code>
  257. in the current directory. A different project file can be specified using the
  258. <code>-f</code> command-line option. Myrmidon executes the targets given on
  259. the command-line, or the default target if none is given. For example, the
  260. following executes the targets <code>clean</code> and <code>build</code> from
  261. the project file <code>my-project.xml</code>:</p>
  262. <pre>
  263. prompt&gt; ant -f my-project.xml clean build
  264. </pre>
  265. <p>
  266. Run Myrmidon with the <code>-h</code> command-line option for a list of
  267. the command-line options that are available.
  268. </p>
  269. </blockquote>
  270. </td></tr>
  271. </table>
  272. </td>
  273. </tr>
  274. <!-- FOOTER -->
  275. <tr><td colspan="2">
  276. <hr noshade="" size="1"/>
  277. </td></tr>
  278. <tr><td colspan="2">
  279. <div align="center"><font color="#525D76" size="-1"><em>
  280. Copyright &#169; 2000-2002, Apache Software Foundation
  281. </em></font></div>
  282. </td></tr>
  283. </table>
  284. </body>
  285. </html>
  286. <!-- end the processing -->