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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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. <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="Todo List"><strong>Todo List</strong></a>
  67. </font>
  68. </td></tr>
  69. <tr><td>
  70. <blockquote>
  71. <p>The broad goal is to grow Myrmidon from a prototype task engine into a fully
  72. fledged build system, that can serve as the basis for Ant 2. The following
  73. sections describe some of the many things which still need to be done to
  74. achieve that goal. This list is currently under construction.</p>
  75. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  76. <tr><td bgcolor="#828DA6">
  77. <font color="#ffffff" face="arial,helvetica,sanserif">
  78. <a name="Self Hosting"><strong>Self Hosting</strong></a>
  79. </font>
  80. </td></tr>
  81. <tr><td>
  82. <blockquote>
  83. <p>Myrmidon must be able to build itself. Currently, it is built using
  84. Ant 1.x. Ultimately, Myrmidon should be able to build itself from exactly the
  85. same build file. To start with, however, there is no need for Myrmidon to be
  86. able to do this. Myrmidon should also be able to be bootstrapped (that is, be
  87. able to be built from scratch, without using Ant 1.x at all).</p>
  88. </blockquote>
  89. </td></tr>
  90. </table>
  91. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  92. <tr><td bgcolor="#828DA6">
  93. <font color="#ffffff" face="arial,helvetica,sanserif">
  94. <a name="Paths"><strong>Paths</strong></a>
  95. </font>
  96. </td></tr>
  97. <tr><td>
  98. <blockquote>
  99. <p>Consider allowing the user to configure the ant system by setting the
  100. following path types.</p>
  101. <ul>
  102. <li>ant.type.path: path that is used to search for the type libraries</li>
  103. <li>ant.ext.path: path that is used to search for "Optional Packages"
  104. or extensions.</li>
  105. </ul>
  106. <p>
  107. The default search path will probably include a per-user path element,
  108. a workspace path element and a system path elemtn that are searched in
  109. that order. Some possible defaults;
  110. </p>
  111. <ul>
  112. <li>Unix Per-user: ${user.home}/.ant/lib, ${user.home}/.ant/ext</li>
  113. <li>Windows Per-user: ${user.home}/ant/lib, ${user.home}/ant/ext</li>
  114. <li>MacOSX Per-user: ${user.home}/Library/Ant/lib,
  115. ${user.home}/Library/Ant/ext</li>
  116. <li>Unix System-wide: /opt/ant/lib, /opt/ant/ext</li>
  117. <li>Unix System-wide: /usr/local/ant/lib, /usr/local/ant/ext</li>
  118. <li>Windows System-wide: %SYS_DRIVE%/Program Files/ant/lib,
  119. %SYS_DRIVE%/Program Files/ant/ext</li>
  120. <li>MacOSX System-wide: /Library/Ant/lib, /Library/Ant/ant/ext</li>
  121. </ul>
  122. </blockquote>
  123. </td></tr>
  124. </table>
  125. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  126. <tr><td bgcolor="#828DA6">
  127. <font color="#ffffff" face="arial,helvetica,sanserif">
  128. <a name="Ant 1.x Compatibility"><strong>Ant 1.x Compatibility</strong></a>
  129. </font>
  130. </td></tr>
  131. <tr><td>
  132. <blockquote>
  133. <p>The Ant1 Compatibility layer is still in early stages of development.
  134. </p>
  135. <ul>
  136. <li>Get a version of <code>&lt;ant&gt;</code> and
  137. <code>&lt;antcall&gt;</code> working.</li>
  138. <li>
  139. Provide hooks between Ant1 references and Myrmidon properties.
  140. May use converters for adapting Ant2 objects (like Ant2
  141. <code>&lt;path&gt;</code> or <code>&lt;fileset&gt;</code>)
  142. as Ant1 types.
  143. </li>
  144. <li>Handle differences between Ant1 if/unless on targets,
  145. and Myrmidon &lt;if&gt; task.</li>
  146. <li>
  147. Write tests for the various bits that rely on Myrmidon
  148. functionality:
  149. <ul>
  150. <li>if/unless on targets: check that behaviour complies with Ant1</li>
  151. <li>Make sure properties are shared between Ant1 and Myrmidon tasks.</li>
  152. <li>Make sure that &lt;ant1.property&gt; behaves as per Ant1</li>
  153. </ul>
  154. </li>
  155. <li>Get GUMP runs going using Myrmidon.</li>
  156. </ul>
  157. </blockquote>
  158. </td></tr>
  159. </table>
  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="Virtual File System"><strong>Virtual File System</strong></a>
  164. </font>
  165. </td></tr>
  166. <tr><td>
  167. <blockquote>
  168. <p>The VFS needs plenty of work:</p>
  169. <ul>
  170. <li>Move files/folders.</li>
  171. <li>Recursive folders copy.</li>
  172. <li>Search through a file hierarchy, using Ant-style wildcards.</li>
  173. <li>Search through a file hierarchy, using a Selector interface.</li>
  174. <li>The in-memory caching mechanism is pretty rudimentary at this stage.
  175. It needs work to make it size capped. In addition, some mechanism needs
  176. to be provided to release and refresh cached info.
  177. </li>
  178. <li>Convert files/folders into local files, for handing off
  179. to external commands, or legacy tasks.</li>
  180. <li>Refactor the replication mechanism out of ZipFileSystemProvder,
  181. and make more general pluggable.</li>
  182. <li>Capabilities discovery.</li>
  183. <li>Attributes and attribute schema.</li>
  184. <li>Handle file canonicalisation better (for cases like case-insensitive
  185. file systems, symbolic links, name encoding, etc).</li>
  186. <li>File system layering. That is, the ability for a file system to
  187. sit on top of another file system, or a file from another file system
  188. (e.g. Zip/Jar/Tar file systems, gzip/encoding file systems, virtual file
  189. systems).
  190. </li>
  191. </ul>
  192. </blockquote>
  193. </td></tr>
  194. </table>
  195. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  196. <tr><td bgcolor="#828DA6">
  197. <font color="#ffffff" face="arial,helvetica,sanserif">
  198. <a name="File Data-Types and Tasks"><strong>File Data-Types and Tasks</strong></a>
  199. </font>
  200. </td></tr>
  201. <tr><td>
  202. <blockquote>
  203. <p>The file data-types, such as
  204. <code>&lt;fileset&gt;</code> and
  205. <code>&lt;path&gt;</code>, are some of the most widely used parts of Ant 1.x.
  206. Unfortunately, they aren't particularly extensible.
  207. </p>
  208. <ul>
  209. <li>Redesign the file data-types, replacing them with an interface-based
  210. API, plus a set of implementations. The API should use the VFS file
  211. <code>FileObject</code>, rather than
  212. <code>java.io.File</code>.
  213. This process has started, in the
  214. <code>antlib.vfile</code> package.
  215. </li>
  216. <li>File Selectors:
  217. <ul>
  218. <li>Change
  219. <code>AbstractNameFileSelector</code> to use Ant 1 style patterns
  220. matches, rather than Globs patterns.
  221. </li>
  222. <li>Add 'defaultexcludes' to
  223. <code>DefaultFileSet</code>. Also add a
  224. file selector implementation that matches everything except the default
  225. excludes.
  226. </li>
  227. <li>Add a name selector that loads patterns from a file.</li>
  228. <li>Add more selector implementations: size and last-modified comparisons,
  229. checksum comparison, byte-wise content comparison.</li>
  230. </ul>
  231. </li>
  232. <li>File conditions:
  233. <ul>
  234. <li>Add more condition implementations that perform checks on files.
  235. One that searches a path for a file would be useful.</li>
  236. </ul>
  237. </li>
  238. <li>File Name Mappers:
  239. <ul>
  240. <li>Change FileNameMapper.mapFileName() to take vfs.FileName objects.</li>
  241. <li>Move the current mapper implementations across to antlib.</li>
  242. </ul>
  243. </li>
  244. <li>File Sets:
  245. <ul>
  246. <li>Add a file set implementation that provides the union of several
  247. nested file sets (that is, a file set that merges several file sets
  248. together).</li>
  249. <li>Add a file set implementation that filters files that are up-to-date
  250. WRT some other file. Alternatively, this might be better done as a
  251. file selector.</li>
  252. </ul>
  253. </li>
  254. <li>Paths:
  255. <ul>
  256. <li>Add path implementations that evaluate to the system classpath,
  257. and the ant runtime classpath. Or, more generally, combine this with
  258. <code>ClassLoaderManager</code> to evaluate to the classpath of any
  259. 'library' (e.g. system classpath, ant runtime, tools.jar,
  260. an antlib, an installed extension, or the system classes of another JVM
  261. for cross-compiling).
  262. </li>
  263. </ul>
  264. </li>
  265. <li>Port across the Ant 1 file filter proposal, once it is complete.</li>
  266. <li>Copy task:
  267. <ul>
  268. <li>Implement 'preservelastmodified', 'overwrite', and 'includeemptydirs'.</li>
  269. <li>Support a file name mapper.</li>
  270. <li>Support file filters.</li>
  271. <li>Detect and handle destination file name collisions.</li>
  272. </ul>
  273. </li>
  274. <li>Implement the
  275. <code>&lt;move&gt;</code>,
  276. <code>&lt;delete&gt;</code>,
  277. <code>&lt;touch&gt;</code> and
  278. <code>&lt;mkdir&gt;</code> tasks on top
  279. of the VFS and the new file data-types. Might be some scope for generalising
  280. 'touch' and 'mkdir' into a single task.
  281. </li>
  282. </ul>
  283. </blockquote>
  284. </td></tr>
  285. </table>
  286. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  287. <tr><td bgcolor="#828DA6">
  288. <font color="#ffffff" face="arial,helvetica,sanserif">
  289. <a name="Command-line and Configuration Files"><strong>Command-line and Configuration Files</strong></a>
  290. </font>
  291. </td></tr>
  292. <tr><td>
  293. <blockquote>
  294. <p>One of the goals of Ant 2 is to allow the user to easily customise and
  295. extend Ant. The command-line and local configuration files, are two places
  296. where this would be done. Currently, Myrmidon some customisation from the
  297. command-line, but does not support configuration files.</p>
  298. <ul>
  299. <li>Load configuration from system (from $ANT_HOME) and user (from $HOME)
  300. configuration files.</li>
  301. <li>Allow the following via config files:
  302. <ul>
  303. <li>Add (or override) the
  304. <code>lib</code> and
  305. <code>ext</code> directories.
  306. </li>
  307. <li>Enable more than one listener, and configure the listeners from
  308. the conents of the config file.</li>
  309. <li>Import libraries, and set properties.</li>
  310. <li>Execute tasks.</li>
  311. <li>Install and configure runtime services.</li>
  312. </ul>
  313. </li>
  314. </ul>
  315. </blockquote>
  316. </td></tr>
  317. </table>
  318. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  319. <tr><td bgcolor="#828DA6">
  320. <font color="#ffffff" face="arial,helvetica,sanserif">
  321. <a name="Scripting"><strong>Scripting</strong></a>
  322. </font>
  323. </td></tr>
  324. <tr><td>
  325. <blockquote>
  326. <p>Add the ability to extend Ant using languages other than
  327. Java:</p>
  328. <ul>
  329. <li>Define a task using a scripting language such as Javascript.</li>
  330. <li>Use Rhino's ability to implement Java interfaces, to
  331. implement and define types, such as FileSelector, or
  332. Condition.</li>
  333. <li>Define a task using template.</li>
  334. <li>Add some lightweight scripting tasks.</li>
  335. </ul>
  336. </blockquote>
  337. </td></tr>
  338. </table>
  339. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  340. <tr><td bgcolor="#828DA6">
  341. <font color="#ffffff" face="arial,helvetica,sanserif">
  342. <a name="Documentation"><strong>Documentation</strong></a>
  343. </font>
  344. </td></tr>
  345. <tr><td>
  346. <blockquote>
  347. <p>Everyone loves writing documentation, and so a goal for Ant 2 is to
  348. generate a lot of reference documentation for tasks and other types directly
  349. from the source. Unfortunately, there's still plenty of tutorial material
  350. to write. In particular we need these:</p>
  351. <ul>
  352. <li>User documentation - describing things like the build file format,
  353. how properties work, how to use references, how sub-builds work, how to customise
  354. Myrmidon, and so on.</li>
  355. <li>Task writer documentation - describing things like an overview the task API,
  356. how configuration works, task lifecycle, how to assemble an antlib, a catalog
  357. of the runtime services, and so on.</li>
  358. <li>Myrmidon developer documentation - a broad outline of the architecture,
  359. how to build, how to test, and so on. Also, this todo list needs plenty
  360. of filling out.</li>
  361. </ul>
  362. </blockquote>
  363. </td></tr>
  364. </table>
  365. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  366. <tr><td bgcolor="#828DA6">
  367. <font color="#ffffff" face="arial,helvetica,sanserif">
  368. <a name="Miscellaneous"><strong>Miscellaneous</strong></a>
  369. </font>
  370. </td></tr>
  371. <tr><td>
  372. <blockquote>
  373. <p>A completely unordered list of items, big and small:</p>
  374. <ul>
  375. <li>Search through the code for 'TODO' items and fix them.</li>
  376. <li>Allow service factories to be configured from the contents of the
  377. <code>ant-services.xml</code> descriptor.
  378. </li>
  379. <li>Route external process stdout and stderr through the logger.</li>
  380. <li>Add verbosity level to ProjectListener LogEvent</li>
  381. <li>Fire ProjectListener events taskFinished(), targetFinished() and
  382. projectFinished() events on build failure, adding indicator methods to
  383. ProjectEvent.</li>
  384. <li>Fire ProjectListener events projectStarted() and projectFinished()
  385. events on start and finish of referenced projects, adding indicator methods
  386. to ProjectEvent.</li>
  387. <li>Detect duplicate type names.</li>
  388. <li>Add fully qualified type names, based on antlib name and type shorthand name.
  389. Allow these to be used in build files in addition to the shorthand names.</li>
  390. <li>Move the
  391. <code>&lt;http&gt;</code> and
  392. <code>&lt;socket&gt;</code>
  393. conditions to an antlib. Need to resolve how these will be passed a logger.
  394. </li>
  395. <li>Make the
  396. <code>&lt;uptodate&gt;</code> task a condition, and move to
  397. an antlib.
  398. </li>
  399. <li>Split up
  400. <code>&lt;is-set&gt;</code> condition into is-set and is-true conditions.
  401. </li>
  402. <li>Allow the
  403. <code>&lt;if&gt;</code> task to take any condition implementation.
  404. </li>
  405. <li>Add an else block to the
  406. <code>&lt;if&gt;</code> task.
  407. </li>
  408. <li>Split the
  409. <code>&lt;available&gt;</code> condition into separate conditions
  410. that test for the availability of a class, or a resource.
  411. </li>
  412. <li>Move
  413. <code>crimson.jar</code> to
  414. <code>bin/lib</code> in the distribution,
  415. and make to other jars via the extension mechanism.
  416. </li>
  417. <li>Unit tests.</li>
  418. </ul>
  419. </blockquote>
  420. </td></tr>
  421. </table>
  422. </blockquote>
  423. </td></tr>
  424. </table>
  425. </td>
  426. </tr>
  427. <!-- FOOTER -->
  428. <tr><td colspan="2">
  429. <hr noshade="" size="1"/>
  430. </td></tr>
  431. <tr><td colspan="2">
  432. <div align="center"><font color="#525D76" size="-1"><em>
  433. Copyright &#169; 2000-2002, Apache Software Foundation
  434. </em></font></div>
  435. </td></tr>
  436. </table>
  437. </body>
  438. </html>
  439. <!-- end the processing -->