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 44 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  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. <meta name="author" value="Peter Donald">
  10. <meta name="email" value="peter@apache.org">
  11. <title>Apache Myrmidon - Get Involved</title>
  12. </head>
  13. <body bgcolor="#ffffff" text="#000000" link="#525D76">
  14. <table border="0" width="100%" cellspacing="0">
  15. <!-- TOP IMAGE -->
  16. <tr>
  17. <td> <td colspan="2">
  18. <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
  19. </td>
  20. </td>
  21. <td valign="bottom"><div align="right"><b><font size="+3" color="#525D76">Apache Myrmidon</font></b></div></td>
  22. </tr>
  23. </table>
  24. <table border="0" width="100%" cellspacing="4">
  25. <tr><td colspan="2">
  26. <hr noshade="" size="1"/>
  27. </td></tr>
  28. <tr>
  29. <!-- LEFT SIDE NAVIGATION -->
  30. <td valign="top" nowrap="true">
  31. <p><strong>Myrmidon</strong></p>
  32. <ul>
  33. <li> <a href="./index.html">Introduction</a>
  34. </li>
  35. <li> <a href="./getinvolved.html">Get Involved</a>
  36. </li>
  37. <li> <a href="./user.html">Building Myrmidon</a>
  38. </li>
  39. <li> <a href="./todo.html">Todo List</a>
  40. </li>
  41. </ul>
  42. <p><strong>User Guide</strong></p>
  43. <ul>
  44. <li> <a href="./buildfile.html">Build file</a>
  45. </li>
  46. <li> <a href="./vfs.html">Virtual File System</a>
  47. </li>
  48. <li> <a href="./ant1compat.html">Ant1 Compatibility Layer</a>
  49. </li>
  50. <li> <a href="./differences.html">Differences to Ant1</a>
  51. </li>
  52. <li> <a href="./task.html">My First Task</a>
  53. </li>
  54. </ul>
  55. <p><strong>Extending Ant</strong></p>
  56. <ul>
  57. <li> <a href="./configuring.html">Configuration HOWTO</a>
  58. </li>
  59. <li> <a href="./converter.html">Converter HOWTO</a>
  60. </li>
  61. <li> <a href="./type.html">Type HOWTO</a>
  62. </li>
  63. <li> <a href="./classloader.html">ClassLoader HOWTO</a>
  64. </li>
  65. <li> <a href="./librarys.html">Library HOWTO</a>
  66. </li>
  67. </ul>
  68. <p><strong>Container Design</strong></p>
  69. <ul>
  70. </ul>
  71. </td>
  72. <td align="left" valign="top">
  73. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  74. <tr><td bgcolor="#525D76">
  75. <font color="#ffffff" face="arial,helvetica,sanserif">
  76. <a name="Todo List"><strong>Todo List</strong></a>
  77. </font>
  78. </td></tr>
  79. <tr><td>
  80. <blockquote>
  81. <p>The broad goal is to grow Myrmidon from a prototype task engine into a fully
  82. fledged build system, that can serve as the basis for Ant 2. The following
  83. sections describe some of the many things which still need to be done to
  84. achieve that goal. This list is currently under construction.</p>
  85. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  86. <tr><td bgcolor="#828DA6">
  87. <font color="#ffffff" face="arial,helvetica,sanserif">
  88. <a name="XML Catalog to load XML Fragments"><strong>XML Catalog to load XML Fragments</strong></a>
  89. </font>
  90. </td></tr>
  91. <tr><td>
  92. <blockquote>
  93. <p>
  94. When including fragments of XML we are currently forced to use relative paths.
  95. However this is sometimes undesirable when a single fragment needs to be used
  96. across several projects in several different locations. Instead we could use
  97. a Catalog to name the fragment and then each developer would only need to install
  98. the fragment once and it would be accessible from all the projects.
  99. </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="Refactor Java Infrastructure into a Service"><strong>Refactor Java Infrastructure into a Service</strong></a>
  107. </font>
  108. </td></tr>
  109. <tr><td>
  110. <blockquote>
  111. <p>Much like Exec should be decoupled from Ant runtime, so should classes
  112. to implement java task for the same benefits.</p>
  113. </blockquote>
  114. </td></tr>
  115. </table>
  116. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  117. <tr><td bgcolor="#828DA6">
  118. <font color="#ffffff" face="arial,helvetica,sanserif">
  119. <a name="Structural Dependency Utils"><strong>Structural Dependency Utils</strong></a>
  120. </font>
  121. </td></tr>
  122. <tr><td>
  123. <blockquote>
  124. <p>
  125. In the present ant, it is required that each task manage dependency separately.
  126. This makes it a lot of work to implement even simple dependency checking. To this
  127. day many of the core tasks do not implement it correctly. I am specifically
  128. talking about "structural" dependency information. The main reason is that it is
  129. painful to implement.
  130. </p>
  131. <p>
  132. Some tasks do no dependency checking and will recompile/transform/etc everytime.
  133. Others may perform a simple dependency checking (ie if source file is newer than
  134. destination file then recompile). Ideally a dependency system would actually
  135. calculate the dependencies correctly. So we need to have some mechanism to determine
  136. that <code>foo.c</code> actually depends upon <code>foo.h</code>, <code>bar.h</code>
  137. and <code>baz.h</code>. As this information is particular to each different task
  138. we need to allow tasks to implement this behaviour. Possibly by supplying an interface
  139. of the form;
  140. </p>
  141. <div align="left">
  142. <table cellspacing="4" cellpadding="0" border="0">
  143. <tr>
  144. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  145. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  146. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  147. </tr>
  148. <tr>
  149. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  150. <td bgcolor="#ffffff"><pre>
  151. public interface DependencyGenerator
  152. {
  153. File[] generateDependencies( File file );
  154. }
  155. </pre></td>
  156. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  157. </tr>
  158. <tr>
  159. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  160. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  161. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  162. </tr>
  163. </table>
  164. </div>
  165. <p>
  166. Generating the dependency information is a costly operation and thus we do not want to
  167. be doing it everytime you run ant. We want to generate it on the initial build and then
  168. persist somewhere. Everytime a file is out of date, it's dependency information would
  169. be regenerated and stored in the dependency cache. Ideally this cache would also store the
  170. above mentioned coloring information. So the entry for <code>foo.c</code> may declare that
  171. it is dependent upon <code>foo.h</code>, <code>bar.h</code> and <code>baz.h</code>, aswell
  172. as being compiled with -O2 flag. If any of the dependencies have changed or are out of date
  173. then foo.c would need to be recompiled.
  174. </p>
  175. <p>
  176. A possible API would be
  177. </p>
  178. <div align="left">
  179. <table cellspacing="4" cellpadding="0" border="0">
  180. <tr>
  181. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  182. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  183. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  184. </tr>
  185. <tr>
  186. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  187. <td bgcolor="#ffffff"><pre>
  188. DependencyManager dm = ...;
  189. dm.setFileSet( myFileSet );
  190. dm.setDependencyCache( myDependencyCacheFile );
  191. File[] files = cm.getOutOfDate();
  192. </pre></td>
  193. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  194. </tr>
  195. <tr>
  196. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  197. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  198. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  199. </tr>
  200. </table>
  201. </div>
  202. </blockquote>
  203. </td></tr>
  204. </table>
  205. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  206. <tr><td bgcolor="#828DA6">
  207. <font color="#ffffff" face="arial,helvetica,sanserif">
  208. <a name="Antlibs storing templates"><strong>Antlibs storing templates</strong></a>
  209. </font>
  210. </td></tr>
  211. <tr><td>
  212. <blockquote>
  213. <p>After a templating system is formalized it would useful to define
  214. a mechanism via which you can store templates in an antlib. These
  215. templates could then be loaded and used by build files through a
  216. "standard" mechanism. This may need to be merged with the XML catalog
  217. system.</p>
  218. </blockquote>
  219. </td></tr>
  220. </table>
  221. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  222. <tr><td bgcolor="#828DA6">
  223. <font color="#ffffff" face="arial,helvetica,sanserif">
  224. <a name="Antlibs Storing General Resources"><strong>Antlibs Storing General Resources</strong></a>
  225. </font>
  226. </td></tr>
  227. <tr><td>
  228. <blockquote>
  229. <p>Add a system via which ant libs can store general resources for
  230. consumption by build users. This could be used to store the XML fragments
  231. for the XML catalog, the template fragments for templates, images for
  232. documentation system and so forth.</p>
  233. </blockquote>
  234. </td></tr>
  235. </table>
  236. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  237. <tr><td bgcolor="#828DA6">
  238. <font color="#ffffff" face="arial,helvetica,sanserif">
  239. <a name="Coloring API"><strong>Coloring API</strong></a>
  240. </font>
  241. </td></tr>
  242. <tr><td>
  243. <blockquote>
  244. <p>
  245. When you execute a task such as "javac" there is two types of dependency information
  246. that is important to analyze before we determine if we need to recompile a file. Say
  247. we are compiling <code>Foo.java</code>, it may depend on the <code>Bar.java</code>
  248. file. We call this "structural" dependency information - the structure of the source file
  249. determines what other files it depend upon. However there is also "environmental"
  250. dependency information. For instance if the <code>Foo.java</code> file was compiled with
  251. <code>debug="true"</code> last run and this time needs to be compiled with
  252. <code>debug="false"</code> then it is out of date and needs to be recompiled. We call this
  253. "environmental" dependency information "coloring".
  254. </p>
  255. <p>
  256. So we need to create an infrastructure that allows tasks to manage "coloring". So a task
  257. should be able to add coloring information for each resource processed. When the task
  258. comes to process the resource again it will detect if the coloring has changed and if it
  259. has will force a recompile.
  260. </p>
  261. <p>
  262. An API for such a bean has yet to be established but an example API would be.
  263. </p>
  264. <div align="left">
  265. <table cellspacing="4" cellpadding="0" border="0">
  266. <tr>
  267. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  268. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  269. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  270. </tr>
  271. <tr>
  272. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  273. <td bgcolor="#ffffff"><pre>
  274. ColoringManager cm = ...;
  275. cm.addColor( &quot;debug&quot;, &quot;true&quot; );
  276. cm.addColor( &quot;optimize&quot;, &quot;false&quot; );
  277. cm.setFileSet( myFileSet );
  278. File[] files = cm.getOutOfDate();
  279. </pre></td>
  280. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  281. </tr>
  282. <tr>
  283. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  284. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  285. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  286. </tr>
  287. </table>
  288. </div>
  289. </blockquote>
  290. </td></tr>
  291. </table>
  292. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  293. <tr><td bgcolor="#828DA6">
  294. <font color="#ffffff" face="arial,helvetica,sanserif">
  295. <a name="Create Task/Element/Attribute Naming guidelines"><strong>Create Task/Element/Attribute Naming guidelines</strong></a>
  296. </font>
  297. </td></tr>
  298. <tr><td>
  299. <blockquote>
  300. <p> Currently Ant has a mixture of tasks from various stages it's evolution, with different
  301. authors and each utilizing different naming patterns. Some tasks use names such as
  302. "src" and "dest" while others use "file" and "tofile". It would be preferrable if
  303. consistent naming patterns were used. It is recomended that we come up with a "best
  304. practices" document to document our recomended naming patterns.</p>
  305. <p>Before we can come up with such a document we need to identify common patterns through
  306. out the tasks. Several tasks have the notion of transforming input from a "source"
  307. to a "destination". So we should have consistent naming schemes for these attributes and
  308. elements. Analysis of existing tasks will likely bring out other similar patterns. Once
  309. we have identified and documented these similarities then we can establish conventions.</p>
  310. </blockquote>
  311. </td></tr>
  312. </table>
  313. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  314. <tr><td bgcolor="#828DA6">
  315. <font color="#ffffff" face="arial,helvetica,sanserif">
  316. <a name="Rethink Notification/Event scheme"><strong>Rethink Notification/Event scheme</strong></a>
  317. </font>
  318. </td></tr>
  319. <tr><td>
  320. <blockquote>
  321. <p>We need to rethink the whole notificaiton scheme. Should tasks be able to
  322. raise events? Probably as long as we have <em>ContainerTasks</em>. Should tasks
  323. be able to query state of run? ie Can a task request "are we paused?" or "are we
  324. stopped?" ? Probably as that way long running tasks are given the opportunity
  325. to be gracefully halted by the end users (primarily aimed at IDE vendors here).</p>
  326. </blockquote>
  327. </td></tr>
  328. </table>
  329. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  330. <tr><td bgcolor="#828DA6">
  331. <font color="#ffffff" face="arial,helvetica,sanserif">
  332. <a name="XPath-like Locators for tasks"><strong>XPath-like Locators for tasks</strong></a>
  333. </font>
  334. </td></tr>
  335. <tr><td>
  336. <blockquote>
  337. <p>Most tasks are grouped into some sort of task container. The task containers
  338. can be things like workspaces, projects, targets or other tasks. Each of these
  339. containers usually has a name. Thus we could refer to tasks via a path such as
  340. "/avalon/compile/javac" would refer to the task "javac" in the target "compile"
  341. in the project "avalon". In the past it has been requested that a task get access
  342. to this path programatically - other people have also asked for access to things
  343. like the currently running target. We need to assess this and decide whether we
  344. wish to support it.</p>
  345. <p>Another point to think about is that we could use XPath-like string to designate
  346. to other tasks to execute. ie antcall would refer to a path rather than a target name</p>
  347. </blockquote>
  348. </td></tr>
  349. </table>
  350. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  351. <tr><td bgcolor="#828DA6">
  352. <font color="#ffffff" face="arial,helvetica,sanserif">
  353. <a name="Embeddor HOWTO"><strong>Embeddor HOWTO</strong></a>
  354. </font>
  355. </td></tr>
  356. <tr><td>
  357. <blockquote>
  358. <p>Assigned To: Peter</p>
  359. <p>Write a HOWTO describing how to embed Myrmidon into other
  360. applications.</p>
  361. </blockquote>
  362. </td></tr>
  363. </table>
  364. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  365. <tr><td bgcolor="#828DA6">
  366. <font color="#ffffff" face="arial,helvetica,sanserif">
  367. <a name="Optional Dependencies"><strong>Optional Dependencies</strong></a>
  368. </font>
  369. </td></tr>
  370. <tr><td>
  371. <blockquote>
  372. <p>Assigned To: Peter</p>
  373. <p>Extend Myrmidons library management facilities so that optional
  374. dependencies may be declared for a library. ie The library will still
  375. operate in absence of such libraries but can provide further features
  376. if these libraries are present. Most likely this will be done via a
  377. new manifest entry "Optional-Extension-List:" that behaves similar
  378. to "Extension-List:" except that the extensions are optional.</p>
  379. </blockquote>
  380. </td></tr>
  381. </table>
  382. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  383. <tr><td bgcolor="#828DA6">
  384. <font color="#ffffff" face="arial,helvetica,sanserif">
  385. <a name="Facade task HOWTO"><strong>Facade task HOWTO</strong></a>
  386. </font>
  387. </td></tr>
  388. <tr><td>
  389. <blockquote>
  390. <p>Currently we have a few tasks that have multiple implementations. For instance
  391. Javac task can actually call jikes, jvc, classic javac or modern javac. Similar things
  392. will be seen with the jspc task and the cc task (if it ever gets written). We have a base
  393. class that is meant to facilitate this sort of task and make it easy to develope. See
  394. AbstractFacadeTask. However we need to write up a HOWTO so people can use it.</p>
  395. </blockquote>
  396. </td></tr>
  397. </table>
  398. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  399. <tr><td bgcolor="#828DA6">
  400. <font color="#ffffff" face="arial,helvetica,sanserif">
  401. <a name="Mail tasks"><strong>Mail tasks</strong></a>
  402. </font>
  403. </td></tr>
  404. <tr><td>
  405. <blockquote>
  406. <p>Convert the ant1.x Mail tasks to myrmidon.</p>
  407. </blockquote>
  408. </td></tr>
  409. </table>
  410. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  411. <tr><td bgcolor="#828DA6">
  412. <font color="#ffffff" face="arial,helvetica,sanserif">
  413. <a name="Security Manager"><strong>Security Manager</strong></a>
  414. </font>
  415. </td></tr>
  416. <tr><td>
  417. <blockquote>
  418. <p>Add the ability to run java programs that call System.exit() by adding a
  419. security manager. Should look something like:</p>
  420. <div align="left">
  421. <table cellspacing="4" cellpadding="0" border="0">
  422. <tr>
  423. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  424. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  425. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  426. </tr>
  427. <tr>
  428. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  429. <td bgcolor="#ffffff"><pre>
  430. public class MyrmidonSecurityManager
  431. extends SecurityManager
  432. {
  433. public void checkExit( final int status )
  434. {
  435. throw new ExitException( status );
  436. }
  437. public void checkPermission( final Permission permission )
  438. {
  439. }
  440. }
  441. </pre></td>
  442. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  443. </tr>
  444. <tr>
  445. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  446. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  447. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  448. </tr>
  449. </table>
  450. </div>
  451. </blockquote>
  452. </td></tr>
  453. </table>
  454. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  455. <tr><td bgcolor="#828DA6">
  456. <font color="#ffffff" face="arial,helvetica,sanserif">
  457. <a name="Self Hosting"><strong>Self Hosting</strong></a>
  458. </font>
  459. </td></tr>
  460. <tr><td>
  461. <blockquote>
  462. <p>Myrmidon must be able to build itself. Currently, it is built using
  463. Ant 1.x. Ultimately, Myrmidon should be able to build itself from exactly the
  464. same build file. To start with, however, there is no need for Myrmidon to be
  465. able to do this. Myrmidon should also be able to be bootstrapped (that is, be
  466. able to be built from scratch, without using Ant 1.x at all).</p>
  467. </blockquote>
  468. </td></tr>
  469. </table>
  470. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  471. <tr><td bgcolor="#828DA6">
  472. <font color="#ffffff" face="arial,helvetica,sanserif">
  473. <a name="Validation Pass"><strong>Validation Pass</strong></a>
  474. </font>
  475. </td></tr>
  476. <tr><td>
  477. <blockquote>
  478. <p>Consider calling validate() on task prior to execute(). This would allow
  479. us to have a "make -k" mode that actually did basic validation and would also
  480. encourage task writers to do validation properly.</p>
  481. </blockquote>
  482. </td></tr>
  483. </table>
  484. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  485. <tr><td bgcolor="#828DA6">
  486. <font color="#ffffff" face="arial,helvetica,sanserif">
  487. <a name="Paths"><strong>Paths</strong></a>
  488. </font>
  489. </td></tr>
  490. <tr><td>
  491. <blockquote>
  492. <p>Consider allowing the user to configure the ant system by setting the
  493. following path types.</p>
  494. <ul>
  495. <li>ant.type.path: path that is used to search for the type libraries</li>
  496. <li>ant.ext.path: path that is used to search for "Optional Packages"
  497. or extensions.</li>
  498. </ul>
  499. <p>
  500. The default search path will probably include a per-user path element,
  501. a workspace path element and a system path elemtn that are searched in
  502. that order. Some possible defaults;
  503. </p>
  504. <ul>
  505. <li>Unix Per-user: ${user.home}/.ant/lib, ${user.home}/.ant/ext</li>
  506. <li>Windows Per-user: ${user.home}/ant/lib, ${user.home}/ant/ext</li>
  507. <li>MacOSX Per-user: ${user.home}/Library/Ant/lib,
  508. ${user.home}/Library/Ant/ext</li>
  509. <li>Unix System-wide: /opt/ant/lib, /opt/ant/ext</li>
  510. <li>Unix System-wide: /usr/local/ant/lib, /usr/local/ant/ext</li>
  511. <li>Windows System-wide: %SYS_DRIVE%/Program Files/ant/lib,
  512. %SYS_DRIVE%/Program Files/ant/ext</li>
  513. <li>MacOSX System-wide: /Library/Ant/lib, /Library/Ant/ant/ext</li>
  514. </ul>
  515. </blockquote>
  516. </td></tr>
  517. </table>
  518. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  519. <tr><td bgcolor="#828DA6">
  520. <font color="#ffffff" face="arial,helvetica,sanserif">
  521. <a name="Ant 1.x Compatibility"><strong>Ant 1.x Compatibility</strong></a>
  522. </font>
  523. </td></tr>
  524. <tr><td>
  525. <blockquote>
  526. <p>The Ant1 Compatibility layer is still in early stages of development.
  527. </p>
  528. <ul>
  529. <li>Get a version of <code>&lt;antcall&gt;</code> working.</li>
  530. <li>
  531. Provide hooks between Ant1 references and Myrmidon properties.
  532. May use converters for adapting Ant2 objects (like Ant2
  533. <code>&lt;path&gt;</code> or <code>&lt;fileset&gt;</code>)
  534. as Ant1 types.
  535. </li>
  536. <li>
  537. Missing tests:
  538. <ul>
  539. <li>Make sure properties are shared between Ant1 and Myrmidon tasks.</li>
  540. </ul>
  541. </li>
  542. <li>Get GUMP runs going using Myrmidon.</li>
  543. <li>Add protected accessors for get/set/list properties in
  544. Ant1 Project, to minimise the amount of code duplication in
  545. Ant1CompatProject.</li>
  546. </ul>
  547. </blockquote>
  548. </td></tr>
  549. </table>
  550. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  551. <tr><td bgcolor="#828DA6">
  552. <font color="#ffffff" face="arial,helvetica,sanserif">
  553. <a name="Virtual File System"><strong>Virtual File System</strong></a>
  554. </font>
  555. </td></tr>
  556. <tr><td>
  557. <blockquote>
  558. <p>The VFS needs plenty of work:</p>
  559. <ul>
  560. <li>Move files/folders.</li>
  561. <li>Recursive folders copy.</li>
  562. <li>Search through a file hierarchy, using Ant-style wildcards.</li>
  563. <li>Search through a file hierarchy, using a Selector interface.</li>
  564. <li>The in-memory caching mechanism is pretty rudimentary at this stage.
  565. It needs work to make it size capped. In addition, some mechanism needs
  566. to be provided to release and refresh cached info.
  567. </li>
  568. <li>Convert files/folders into local files, for handing off
  569. to external commands, or legacy tasks.</li>
  570. <li>Refactor the replication mechanism out of ZipFileSystemProvder,
  571. and make more general pluggable.</li>
  572. <li>Capabilities discovery.</li>
  573. <li>Attributes and attribute schema.</li>
  574. <li>Handle file canonicalisation better (for cases like case-insensitive
  575. file systems, symbolic links, name encoding, etc).</li>
  576. <li>File system layering. That is, the ability for a file system to
  577. sit on top of another file system, or a file from another file system
  578. (e.g. Zip/Jar/Tar file systems, gzip/encoding file systems, virtual file
  579. systems).
  580. </li>
  581. </ul>
  582. </blockquote>
  583. </td></tr>
  584. </table>
  585. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  586. <tr><td bgcolor="#828DA6">
  587. <font color="#ffffff" face="arial,helvetica,sanserif">
  588. <a name="File Data-Types and Tasks"><strong>File Data-Types and Tasks</strong></a>
  589. </font>
  590. </td></tr>
  591. <tr><td>
  592. <blockquote>
  593. <p>The file data-types, such as
  594. <code>&lt;fileset&gt;</code> and
  595. <code>&lt;path&gt;</code>, are some of the most widely used parts of Ant 1.x.
  596. Unfortunately, they aren't particularly extensible.
  597. </p>
  598. <ul>
  599. <li>Redesign the file data-types, replacing them with an interface-based
  600. API, plus a set of implementations. The API should use the VFS file
  601. <code>FileObject</code>, rather than
  602. <code>java.io.File</code>.
  603. This process has started, in the
  604. <code>antlib.vfile</code> package.
  605. </li>
  606. <li>File Selectors:
  607. <ul>
  608. <li>Change
  609. <code>AbstractNameFileSelector</code> to use Ant 1 style patterns
  610. matches, rather than Globs patterns.
  611. </li>
  612. <li>Add 'defaultexcludes' to
  613. <code>DefaultFileSet</code>. Also add a
  614. file selector implementation that matches everything except the default
  615. excludes.
  616. </li>
  617. <li>Add a name selector that loads patterns from a file.</li>
  618. <li>Add more selector implementations: size and last-modified comparisons,
  619. checksum comparison, byte-wise content comparison.</li>
  620. </ul>
  621. </li>
  622. <li>File conditions:
  623. <ul>
  624. <li>Add more condition implementations that perform checks on files.
  625. One that searches a path for a file would be useful.</li>
  626. </ul>
  627. </li>
  628. <li>File Name Mappers:
  629. <ul>
  630. <li>Change FileNameMapper.mapFileName() to take vfs.FileName objects.</li>
  631. <li>Move the current mapper implementations across to antlib.</li>
  632. </ul>
  633. </li>
  634. <li>File Sets:
  635. <ul>
  636. <li>Add a file set implementation that provides the union of several
  637. nested file sets (that is, a file set that merges several file sets
  638. together).</li>
  639. <li>Add a file set implementation that filters files that are up-to-date
  640. WRT some other file. Alternatively, this might be better done as a
  641. file selector.</li>
  642. </ul>
  643. </li>
  644. <li>Paths:
  645. <ul>
  646. <li>Add path implementations that evaluate to the system classpath,
  647. and the ant runtime classpath. Or, more generally, combine this with
  648. <code>ClassLoaderManager</code> to evaluate to the classpath of any
  649. 'library' (e.g. system classpath, ant runtime, tools.jar,
  650. an antlib, an installed extension, or the system classes of another JVM
  651. for cross-compiling).
  652. </li>
  653. </ul>
  654. </li>
  655. <li>Port across the Ant 1 file filter proposal, once it is complete.</li>
  656. <li>Copy task:
  657. <ul>
  658. <li>Implement 'preservelastmodified', 'overwrite', and 'includeemptydirs'.</li>
  659. <li>Support a file name mapper.</li>
  660. <li>Support file filters.</li>
  661. <li>Detect and handle destination file name collisions.</li>
  662. </ul>
  663. </li>
  664. <li>Implement the
  665. <code>&lt;move&gt;</code>,
  666. <code>&lt;delete&gt;</code>,
  667. <code>&lt;touch&gt;</code> and
  668. <code>&lt;mkdir&gt;</code> tasks on top
  669. of the VFS and the new file data-types. Might be some scope for generalising
  670. 'touch' and 'mkdir' into a single task.
  671. </li>
  672. </ul>
  673. </blockquote>
  674. </td></tr>
  675. </table>
  676. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  677. <tr><td bgcolor="#828DA6">
  678. <font color="#ffffff" face="arial,helvetica,sanserif">
  679. <a name="Command-line and Configuration Files"><strong>Command-line and Configuration Files</strong></a>
  680. </font>
  681. </td></tr>
  682. <tr><td>
  683. <blockquote>
  684. <p>One of the goals of Ant 2 is to allow the user to easily customise and
  685. extend Ant. The command-line and local configuration files, are two places
  686. where this would be done. Currently, Myrmidon some customisation from the
  687. command-line, but does not support configuration files.</p>
  688. <ul>
  689. <li>Load configuration from system (from $ANT_HOME) and user (from $HOME)
  690. configuration files.</li>
  691. <li>Allow the following via config files:
  692. <ul>
  693. <li>Add (or override) the
  694. <code>lib</code> and
  695. <code>ext</code> directories.
  696. </li>
  697. <li>Enable more than one listener, and configure the listeners from
  698. the conents of the config file.</li>
  699. <li>Import libraries, and set properties.</li>
  700. <li>Execute tasks.</li>
  701. <li>Install and configure runtime services.</li>
  702. </ul>
  703. </li>
  704. </ul>
  705. </blockquote>
  706. </td></tr>
  707. </table>
  708. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  709. <tr><td bgcolor="#828DA6">
  710. <font color="#ffffff" face="arial,helvetica,sanserif">
  711. <a name="Scripting"><strong>Scripting</strong></a>
  712. </font>
  713. </td></tr>
  714. <tr><td>
  715. <blockquote>
  716. <p>Add the ability to extend Ant using languages other than
  717. Java:</p>
  718. <ul>
  719. <li>Define a task using a scripting language such as Javascript.</li>
  720. <li>Use Rhino's ability to implement Java interfaces, to
  721. implement and define types, such as FileSelector, or
  722. Condition.</li>
  723. <li>Define a task using template.</li>
  724. <li>Add some lightweight scripting tasks.</li>
  725. </ul>
  726. </blockquote>
  727. </td></tr>
  728. </table>
  729. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  730. <tr><td bgcolor="#828DA6">
  731. <font color="#ffffff" face="arial,helvetica,sanserif">
  732. <a name="Documentation"><strong>Documentation</strong></a>
  733. </font>
  734. </td></tr>
  735. <tr><td>
  736. <blockquote>
  737. <p>Everyone loves writing documentation, and so a goal for Ant 2 is to
  738. generate a lot of reference documentation for tasks and other types directly
  739. from the source. Unfortunately, there's still plenty of tutorial material
  740. to write. In particular we need these:</p>
  741. <ul>
  742. <li>User documentation - describing things like the build file format,
  743. how properties work, how to use references, how sub-builds work, how to customise
  744. Myrmidon, and so on.</li>
  745. <li>Task writer documentation - describing things like an overview the task API,
  746. how configuration works, task lifecycle, how to assemble an antlib, a catalog
  747. of the runtime services, and so on.</li>
  748. <li>Myrmidon developer documentation - a broad outline of the architecture,
  749. how to build, how to test, and so on. Also, this todo list needs plenty
  750. of filling out.</li>
  751. </ul>
  752. </blockquote>
  753. </td></tr>
  754. </table>
  755. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  756. <tr><td bgcolor="#828DA6">
  757. <font color="#ffffff" face="arial,helvetica,sanserif">
  758. <a name="Miscellaneous"><strong>Miscellaneous</strong></a>
  759. </font>
  760. </td></tr>
  761. <tr><td>
  762. <blockquote>
  763. <p>A completely unordered list of items, big and small:</p>
  764. <ul>
  765. <li>Search through the code for 'TODO' items and fix them.</li>
  766. <li>Allow service factories to be configured from the contents of the
  767. <code>ant-services.xml</code> descriptor.
  768. </li>
  769. <li>Add verbosity level to ProjectListener LogEvent</li>
  770. <li>Fire ProjectListener events taskFinished(), targetFinished() and
  771. projectFinished() events on build failure, adding indicator methods to
  772. ProjectEvent.</li>
  773. <li>Fire ProjectListener events projectStarted() and projectFinished()
  774. events on start and finish of referenced projects, adding indicator methods
  775. to ProjectEvent.</li>
  776. <li>Detect duplicate type names.</li>
  777. <li>Add fully qualified type names, based on antlib name and type shorthand name.
  778. Allow these to be used in build files in addition to the shorthand names.</li>
  779. <li>Move the
  780. <code>&lt;http&gt;</code> and
  781. <code>&lt;socket&gt;</code>
  782. conditions to an antlib. Need to resolve how these will be passed a logger.
  783. </li>
  784. <li>Make the
  785. <code>&lt;uptodate&gt;</code> task a condition, and move to
  786. an antlib.
  787. </li>
  788. <li>Split up
  789. <code>&lt;is-set&gt;</code> condition into is-set and is-true conditions.
  790. </li>
  791. <li>Allow the
  792. <code>&lt;if&gt;</code> task to take any condition implementation.
  793. </li>
  794. <li>Add an else block to the
  795. <code>&lt;if&gt;</code> task.
  796. </li>
  797. <li>Split the
  798. <code>&lt;available&gt;</code> condition into separate conditions
  799. that test for the availability of a class, or a resource.
  800. </li>
  801. <li>Move
  802. <code>crimson.jar</code> to
  803. <code>bin/lib</code> in the distribution,
  804. and make available to other jars via the extension mechanism.
  805. </li>
  806. <li>Change <code>DefaultPropertyResolver</code> to ignore '$${'.</li>
  807. <li>Add a <code>--type</code> command-line option, to allow
  808. the project builder to be manually selected.
  809. </li>
  810. <li>Unit tests.</li>
  811. </ul>
  812. </blockquote>
  813. </td></tr>
  814. </table>
  815. </blockquote>
  816. </td></tr>
  817. </table>
  818. </td>
  819. </tr>
  820. <!-- FOOTER -->
  821. <tr><td colspan="2">
  822. <hr noshade="" size="1"/>
  823. </td></tr>
  824. <tr><td colspan="2">
  825. <div align="center"><font color="#525D76" size="-1"><em>
  826. Copyright &#169; 2000-2002, Apache Software Foundation
  827. </em></font></div>
  828. </td></tr>
  829. </table>
  830. </body>
  831. </html>
  832. <!-- end the processing -->