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

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