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.

todo.html 18 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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 - Get Involved</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="Todo List"><strong>Todo List</strong></a>
  65. </font>
  66. </td></tr>
  67. <tr><td>
  68. <blockquote>
  69. <p>The broad goal is to grow Myrmidon from a prototype task engine into a fully
  70. fledged build system, that can serve as the basis for Ant 2. The following
  71. sections describe some of the many things which still need to be done to
  72. achieve that goal. This list is currently under construction.</p>
  73. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  74. <tr><td bgcolor="#828DA6">
  75. <font color="#ffffff" face="arial,helvetica,sanserif">
  76. <a name="Self Hosting"><strong>Self Hosting</strong></a>
  77. </font>
  78. </td></tr>
  79. <tr><td>
  80. <blockquote>
  81. <p>Myrmidon must be able to build itself. Currently, it is built using
  82. Ant 1.x. Ultimately, Myrmidon should be able to build itself from exactly the
  83. same build file. To start with, however, there is no need for Myrmidon to be
  84. able to do this. Myrmidon should also be able to be bootstrapped (that is, be
  85. able to be built from scratch, without using Ant 1.x at all).</p>
  86. </blockquote>
  87. </td></tr>
  88. </table>
  89. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  90. <tr><td bgcolor="#828DA6">
  91. <font color="#ffffff" face="arial,helvetica,sanserif">
  92. <a name="Ant 1.x Compatibility"><strong>Ant 1.x Compatibility</strong></a>
  93. </font>
  94. </td></tr>
  95. <tr><td>
  96. <blockquote>
  97. <p>There are 2 parts to this broad topic: Allow Ant 1.x build scripts to be
  98. executed by Myrmidon, and allow Ant 1.x tasks to be executed unmodified
  99. by Myrmidon.</p>
  100. </blockquote>
  101. </td></tr>
  102. </table>
  103. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  104. <tr><td bgcolor="#828DA6">
  105. <font color="#ffffff" face="arial,helvetica,sanserif">
  106. <a name="Virtual File System"><strong>Virtual File System</strong></a>
  107. </font>
  108. </td></tr>
  109. <tr><td>
  110. <blockquote>
  111. <p>The VFS needs plenty of work:</p>
  112. <ul>
  113. <li>Move and copy files/folders.</li>
  114. <li>Search through a file hierarchy, using Ant-style wildcards.</li>
  115. <li>Search through a file hierarchy, using a Selector interface.</li>
  116. <li>The in-memory caching mechanism is pretty rudimentary at this stage.
  117. It needs work to make it size capped. In addition, some mechanism needs
  118. to be provided to release and refresh cached info.
  119. </li>
  120. <li>Capabilities discovery.</li>
  121. <li>Attributes and attribute schema.</li>
  122. <li>File system layering. That is, the ability for a file system to
  123. sit on top of another file system, or a file from another file system
  124. (e.g. Zip/Jar/Tar file systems, gzip/encoding file systems, virtual file
  125. systems).
  126. </li>
  127. </ul>
  128. </blockquote>
  129. </td></tr>
  130. </table>
  131. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  132. <tr><td bgcolor="#828DA6">
  133. <font color="#ffffff" face="arial,helvetica,sanserif">
  134. <a name="File Data-Types and Tasks"><strong>File Data-Types and Tasks</strong></a>
  135. </font>
  136. </td></tr>
  137. <tr><td>
  138. <blockquote>
  139. <p>The file data-types, such as <code>&lt;fileset&gt;</code> and
  140. <code>&lt;path&gt;</code>, are some of the most widely used parts of Ant 1.x.
  141. Unfortunately, they aren't particularly extensible.</p>
  142. <ul>
  143. <li>Redesign the file data-types, replacing them with an interface-based
  144. API, plus a set of implementations. The API should use the VFS file
  145. <code>FileObject</code>, rather than <code>java.io.File</code>.
  146. This process has started, in the <code>antlib.vfile</code> package.
  147. </li>
  148. <li>File Selectors:
  149. <ul>
  150. <li>Change <code>AbstractNameFileSelector</code> to use Ant 1 style patterns
  151. matches, rather than Globs patterns.</li>
  152. <li>Add 'defaultexcludes' to <code>DefaultFileSet</code>. Also add a
  153. file selector implementation that matches everything except the default
  154. excludes.</li>
  155. <li>Add a name selector that loads patterns from a file.</li>
  156. <li>Add more selector implementations: size and last-modified comparisons,
  157. checksum comparison, byte-wise content comparison.</li>
  158. </ul></li>
  159. <li>File conditions:
  160. <ul>
  161. <li>Add more condition implementations that perform checks on files.
  162. One that searches a path for a file would be useful.</li>
  163. </ul></li>
  164. <li>File Name Mappers:
  165. <ul>
  166. <li>Add a file name mapper interface, and port the current Mapper
  167. implementations to it.</li>
  168. </ul></li>
  169. <li>File Sets:
  170. <ul>
  171. <li>Add a file set implementation that uses a mapper to transform a nested
  172. file set.</li>
  173. <li>Add a file set implementation that provides the union of several
  174. nested file sets (that is, a file set that merges several file sets
  175. together).</li>
  176. <li>Add a file set implementation that filters files that are up-to-date
  177. WRT some other file. Alternatively, this might be better done using a
  178. file selector.</li>
  179. </ul></li>
  180. <li>Paths:
  181. <ul>
  182. <li>Add path implementations that evaluate to the system classpath,
  183. and the ant runtime classpath. Or, more generally, combine this with
  184. <code>ClassLoaderManager</code> to evaluate to the classpath of any
  185. 'library' (e.g. system classpath, ant runtime, tools.jar,
  186. an antlib, an installed extension, or the system classes of another JVM
  187. for cross-compiling).</li>
  188. </ul></li>
  189. <li>Port across the Ant 1 file filter proposal, once it is complete.</li>
  190. <li>Copy task:
  191. <ul>
  192. <li>Implement 'preservelastmodified', 'overwrite', and 'includeemptydirs'.</li>
  193. <li>Support a file name mapper.</li>
  194. <li>Support file filters.</li>
  195. </ul></li>
  196. <li>Implement the <code>&lt;move&gt;</code>, <code>&lt;delete&gt;</code>,
  197. <code>&lt;touch&gt;</code> and <code>&lt;mkdir&gt;</code> tasks on top
  198. of the VFS and the new file data-types. Might be some scope for generalising
  199. 'touch' and 'mkdir' into a single task.</li>
  200. </ul>
  201. </blockquote>
  202. </td></tr>
  203. </table>
  204. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  205. <tr><td bgcolor="#828DA6">
  206. <font color="#ffffff" face="arial,helvetica,sanserif">
  207. <a name="Command-line and Configuration Files"><strong>Command-line and Configuration Files</strong></a>
  208. </font>
  209. </td></tr>
  210. <tr><td>
  211. <blockquote>
  212. <p>One of the goals of Ant 2 is to allow the user to easily customise and
  213. extend Ant. The command-line and local configuration files, are two places
  214. where this would be done. Currently, Myrmidon some customisation from the
  215. command-line, but does not support configuration files.</p>
  216. <ul>
  217. <li>Load configuration from system (from $ANT_HOME) and user (from $HOME)
  218. configuration files.</li>
  219. <li>Allow the following via config files:
  220. <ul>
  221. <li>Add (or override) the <code>lib</code> and <code>ext</code> directories.</li>
  222. <li>Enable more than one listener, and configure the listeners from
  223. the conents of the config file.</li>
  224. <li>Import libraries, and set properties.</li>
  225. <li>Execute tasks.</li>
  226. <li>Install and configure runtime services.</li>
  227. </ul>
  228. </li>
  229. </ul>
  230. </blockquote>
  231. </td></tr>
  232. </table>
  233. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  234. <tr><td bgcolor="#828DA6">
  235. <font color="#ffffff" face="arial,helvetica,sanserif">
  236. <a name="Scripting"><strong>Scripting</strong></a>
  237. </font>
  238. </td></tr>
  239. <tr><td>
  240. <blockquote>
  241. <p>Add the ability to extend Ant using languages other than
  242. Java:</p>
  243. <ul>
  244. <li>Define a task using a scripting language such as Javascript.</li>
  245. <li>Use Rhino's ability to implement Java interfaces, to
  246. implement and define types, such as FileSelector, or
  247. Condition.</li>
  248. <li>Define a task using template.</li>
  249. <li>Add some lightweight scripting tasks.</li>
  250. </ul>
  251. </blockquote>
  252. </td></tr>
  253. </table>
  254. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  255. <tr><td bgcolor="#828DA6">
  256. <font color="#ffffff" face="arial,helvetica,sanserif">
  257. <a name="Documentation"><strong>Documentation</strong></a>
  258. </font>
  259. </td></tr>
  260. <tr><td>
  261. <blockquote>
  262. <p>Everyone loves writing documentation, and so a goal for Ant 2 is to
  263. generate a lot of reference documentation for tasks and other types directly
  264. from the source. Unfortunately, there's still plenty of tutorial material
  265. to write. In particular we need these:</p>
  266. <ul>
  267. <li>User documentation - describing things like the build file format,
  268. how properties work, how to use references, how sub-builds work, how to customise
  269. Myrmidon, and so on.</li>
  270. <li>Task writer documentation - describing things like an overview the task API,
  271. how configuration works, task lifecycle, how to assemble an antlib, a catalog
  272. of the runtime services, and so on.</li>
  273. <li>Myrmidon developer documentation - a broad outline of the architecture,
  274. how to build, how to test, and so on. Also, this todo list needs plenty
  275. of filling out.</li>
  276. </ul>
  277. </blockquote>
  278. </td></tr>
  279. </table>
  280. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  281. <tr><td bgcolor="#828DA6">
  282. <font color="#ffffff" face="arial,helvetica,sanserif">
  283. <a name="Miscellaneous"><strong>Miscellaneous</strong></a>
  284. </font>
  285. </td></tr>
  286. <tr><td>
  287. <blockquote>
  288. <p>A completely unordered list of items, big and small:</p>
  289. <ul>
  290. <li>Search through the code for 'TODO' items and fix them.</li>
  291. <li>Tidy-up CLIMain so that it calls System.exit() with a non-zero exit code,
  292. if the build fails.</li>
  293. <li>Tidy-up the 'build failed' message, so that the stack trace is only
  294. printed out if the log level is verbose/debug.</li>
  295. <li>Allow service factories to be configured from the contents of the
  296. <code>ant-services.xml</code> descriptor.</li>
  297. <li>Route external process stdout and stderr through the logger.</li>
  298. <li>Add verbosity level to ProjectListener LogEvent</li>
  299. <li>Fire ProjectListener events taskFinished(), targetFinished() and
  300. projectFinished() events on build failure, adding indicator methods to
  301. ProjectEvent.</li>
  302. <li>Fire ProjectListener events projectStarted() and projectFinished()
  303. events on start and finish of referenced projects, adding indicator methods
  304. to ProjectEvent.</li>
  305. <li>Convert PropertyUtil to a non-static PropertyResolver service.</li>
  306. <li>Validate project and target names in DefaultProjectBuilder - reject dodgy
  307. names like "," or "", or " ". Probably want to exclude names that start or
  308. end with white-space (though internal whitespace is probably fine). We also
  309. want to reserve certain punctuation characters like . , : ? [ ] { }, etc for
  310. future use.</li>
  311. <li>Similarly, validate property names, using the same rules.</li>
  312. <li>Detect duplicate type names.</li>
  313. <li>Add fully qualified type names, based on antlib name and type shorthand name.
  314. Allow these to be used in build files in addition to the shorthand names.</li>
  315. <li>Move the <code>&lt;http&gt;</code> and <code>&lt;socket&gt;</code>
  316. conditions to an antlib. Need to resolve how these will be passed a logger.</li>
  317. <li>Make the <code>&lt;uptodate&gt;</code> task a condition, and move to
  318. an antlib.</li>
  319. <li>Split up <code>&lt;is-set&gt;</code> condition into is-set and is-true conditions.</li>
  320. <li>Allow the <code>&lt;if&gt;</code> task to take any condition implementation.</li>
  321. <li>Unit tests.</li>
  322. </ul>
  323. </blockquote>
  324. </td></tr>
  325. </table>
  326. </blockquote>
  327. </td></tr>
  328. </table>
  329. </td>
  330. </tr>
  331. <!-- FOOTER -->
  332. <tr><td colspan="2">
  333. <hr noshade="" size="1"/>
  334. </td></tr>
  335. <tr><td colspan="2">
  336. <div align="center"><font color="#525D76" size="-1"><em>
  337. Copyright &#169; 2000-2002, Apache Software Foundation
  338. </em></font></div>
  339. </td></tr>
  340. </table>
  341. </body>
  342. </html>
  343. <!-- end the processing -->