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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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="Coloring API"><strong>Coloring API</strong></a>
  209. </font>
  210. </td></tr>
  211. <tr><td>
  212. <blockquote>
  213. <p>
  214. When you execute a task such as "javac" there is two types of dependency information
  215. that is important to analyze before we determine if we need to recompile a file. Say
  216. we are compiling <code>Foo.java</code>, it may depend on the <code>Bar.java</code>
  217. file. We call this "structural" dependency information - the structure of the source file
  218. determines what other files it depend upon. However there is also "environmental"
  219. dependency information. For instance if the <code>Foo.java</code> file was compiled with
  220. <code>debug="true"</code> last run and this time needs to be compiled with
  221. <code>debug="false"</code> then it is out of date and needs to be recompiled. We call this
  222. "environmental" dependency information "coloring".
  223. </p>
  224. <p>
  225. So we need to create an infrastructure that allows tasks to manage "coloring". So a task
  226. should be able to add coloring information for each resource processed. When the task
  227. comes to process the resource again it will detect if the coloring has changed and if it
  228. has will force a recompile.
  229. </p>
  230. <p>
  231. An API for such a bean has yet to be established but an example API would be.
  232. </p>
  233. <div align="left">
  234. <table cellspacing="4" cellpadding="0" border="0">
  235. <tr>
  236. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  237. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  238. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  239. </tr>
  240. <tr>
  241. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  242. <td bgcolor="#ffffff"><pre>
  243. ColoringManager cm = ...;
  244. cm.addColor( &quot;debug&quot;, &quot;true&quot; );
  245. cm.addColor( &quot;optimize&quot;, &quot;false&quot; );
  246. cm.setFileSet( myFileSet );
  247. File[] files = cm.getOutOfDate();
  248. </pre></td>
  249. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  250. </tr>
  251. <tr>
  252. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  253. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  254. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  255. </tr>
  256. </table>
  257. </div>
  258. </blockquote>
  259. </td></tr>
  260. </table>
  261. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  262. <tr><td bgcolor="#828DA6">
  263. <font color="#ffffff" face="arial,helvetica,sanserif">
  264. <a name="Create Task/Element/Attribute Naming guidelines"><strong>Create Task/Element/Attribute Naming guidelines</strong></a>
  265. </font>
  266. </td></tr>
  267. <tr><td>
  268. <blockquote>
  269. <p> Currently Ant has a mixture of tasks from various stages it's evolution, with different
  270. authors and each utilizing different naming patterns. Some tasks use names such as
  271. "src" and "dest" while others use "file" and "tofile". It would be preferrable if
  272. consistent naming patterns were used. It is recomended that we come up with a "best
  273. practices" document to document our recomended naming patterns.</p>
  274. <p>Before we can come up with such a document we need to identify common patterns through
  275. out the tasks. Several tasks have the notion of transforming input from a "source"
  276. to a "destination". So we should have consistent naming schemes for these attributes and
  277. elements. Analysis of existing tasks will likely bring out other similar patterns. Once
  278. we have identified and documented these similarities then we can establish conventions.</p>
  279. </blockquote>
  280. </td></tr>
  281. </table>
  282. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  283. <tr><td bgcolor="#828DA6">
  284. <font color="#ffffff" face="arial,helvetica,sanserif">
  285. <a name="Rethink Notification/Event scheme"><strong>Rethink Notification/Event scheme</strong></a>
  286. </font>
  287. </td></tr>
  288. <tr><td>
  289. <blockquote>
  290. <p>We need to rethink the whole notificaiton scheme. Should tasks be able to
  291. raise events? Probably as long as we have <em>ContainerTasks</em>. Should tasks
  292. be able to query state of run? ie Can a task request "are we paused?" or "are we
  293. stopped?" ? Probably as that way long running tasks are given the opportunity
  294. to be gracefully halted by the end users (primarily aimed at IDE vendors here).</p>
  295. </blockquote>
  296. </td></tr>
  297. </table>
  298. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  299. <tr><td bgcolor="#828DA6">
  300. <font color="#ffffff" face="arial,helvetica,sanserif">
  301. <a name="XPath-like Locators for tasks"><strong>XPath-like Locators for tasks</strong></a>
  302. </font>
  303. </td></tr>
  304. <tr><td>
  305. <blockquote>
  306. <p>Most tasks are grouped into some sort of task container. The task containers
  307. can be things like workspaces, projects, targets or other tasks. Each of these
  308. containers usually has a name. Thus we could refer to tasks via a path such as
  309. "/avalon/compile/javac" would refer to the task "javac" in the target "compile"
  310. in the project "avalon". In the past it has been requested that a task get access
  311. to this path programatically - other people have also asked for access to things
  312. like the currently running target. We need to assess this and decide whether we
  313. wish to support it.</p>
  314. <p>Another point to think about is that we could use XPath-like string to designate
  315. to other tasks to execute. ie antcall would refer to a path rather than a target name</p>
  316. </blockquote>
  317. </td></tr>
  318. </table>
  319. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  320. <tr><td bgcolor="#828DA6">
  321. <font color="#ffffff" face="arial,helvetica,sanserif">
  322. <a name="Embeddor HOWTO"><strong>Embeddor HOWTO</strong></a>
  323. </font>
  324. </td></tr>
  325. <tr><td>
  326. <blockquote>
  327. <p>Assigned To: Peter</p>
  328. <p>Write a HOWTO describing how to embed Myrmidon into other
  329. applications.</p>
  330. </blockquote>
  331. </td></tr>
  332. </table>
  333. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  334. <tr><td bgcolor="#828DA6">
  335. <font color="#ffffff" face="arial,helvetica,sanserif">
  336. <a name="Optional Dependencies"><strong>Optional Dependencies</strong></a>
  337. </font>
  338. </td></tr>
  339. <tr><td>
  340. <blockquote>
  341. <p>Assigned To: Peter</p>
  342. <p>Extend Myrmidons library management facilities so that optional
  343. dependencies may be declared for a library. ie The library will still
  344. operate in absence of such libraries but can provide further features
  345. if these libraries are present. Most likely this will be done via a
  346. new manifest entry "Optional-Extension-List:" that behaves similar
  347. to "Extension-List:" except that the extensions are optional.</p>
  348. </blockquote>
  349. </td></tr>
  350. </table>
  351. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  352. <tr><td bgcolor="#828DA6">
  353. <font color="#ffffff" face="arial,helvetica,sanserif">
  354. <a name="Facade task HOWTO"><strong>Facade task HOWTO</strong></a>
  355. </font>
  356. </td></tr>
  357. <tr><td>
  358. <blockquote>
  359. <p>Currently we have a few tasks that have multiple implementations. For instance
  360. Javac task can actually call jikes, jvc, classic javac or modern javac. Similar things
  361. will be seen with the jspc task and the cc task (if it ever gets written). We have a base
  362. class that is meant to facilitate this sort of task and make it easy to develope. See
  363. AbstractFacadeTask. However we need to write up a HOWTO so people can use it.</p>
  364. </blockquote>
  365. </td></tr>
  366. </table>
  367. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  368. <tr><td bgcolor="#828DA6">
  369. <font color="#ffffff" face="arial,helvetica,sanserif">
  370. <a name="Mail tasks"><strong>Mail tasks</strong></a>
  371. </font>
  372. </td></tr>
  373. <tr><td>
  374. <blockquote>
  375. <p>Convert the ant1.x Mail tasks to myrmidon.</p>
  376. </blockquote>
  377. </td></tr>
  378. </table>
  379. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  380. <tr><td bgcolor="#828DA6">
  381. <font color="#ffffff" face="arial,helvetica,sanserif">
  382. <a name="Security Manager"><strong>Security Manager</strong></a>
  383. </font>
  384. </td></tr>
  385. <tr><td>
  386. <blockquote>
  387. <p>Add the ability to run java programs that call System.exit() by adding a
  388. security manager. Should look something like:</p>
  389. <div align="left">
  390. <table cellspacing="4" cellpadding="0" border="0">
  391. <tr>
  392. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  393. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  394. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  395. </tr>
  396. <tr>
  397. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  398. <td bgcolor="#ffffff"><pre>
  399. public class MyrmidonSecurityManager
  400. extends SecurityManager
  401. {
  402. public void checkExit( final int status )
  403. {
  404. throw new ExitException( status );
  405. }
  406. public void checkPermission( final Permission permission )
  407. {
  408. }
  409. }
  410. </pre></td>
  411. <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  412. </tr>
  413. <tr>
  414. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  415. <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  416. <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  417. </tr>
  418. </table>
  419. </div>
  420. </blockquote>
  421. </td></tr>
  422. </table>
  423. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  424. <tr><td bgcolor="#828DA6">
  425. <font color="#ffffff" face="arial,helvetica,sanserif">
  426. <a name="Self Hosting"><strong>Self Hosting</strong></a>
  427. </font>
  428. </td></tr>
  429. <tr><td>
  430. <blockquote>
  431. <p>Myrmidon must be able to build itself. Currently, it is built using
  432. Ant 1.x. Ultimately, Myrmidon should be able to build itself from exactly the
  433. same build file. To start with, however, there is no need for Myrmidon to be
  434. able to do this. Myrmidon should also be able to be bootstrapped (that is, be
  435. able to be built from scratch, without using Ant 1.x at all).</p>
  436. </blockquote>
  437. </td></tr>
  438. </table>
  439. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  440. <tr><td bgcolor="#828DA6">
  441. <font color="#ffffff" face="arial,helvetica,sanserif">
  442. <a name="Validation Pass"><strong>Validation Pass</strong></a>
  443. </font>
  444. </td></tr>
  445. <tr><td>
  446. <blockquote>
  447. <p>Consider calling validate() on task prior to execute(). This would allow
  448. us to have a "make -k" mode that actually did basic validation and would also
  449. encourage task writers to do validation properly.</p>
  450. </blockquote>
  451. </td></tr>
  452. </table>
  453. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  454. <tr><td bgcolor="#828DA6">
  455. <font color="#ffffff" face="arial,helvetica,sanserif">
  456. <a name="Paths"><strong>Paths</strong></a>
  457. </font>
  458. </td></tr>
  459. <tr><td>
  460. <blockquote>
  461. <p>Consider allowing the user to configure the ant system by setting the
  462. following path types.</p>
  463. <ul>
  464. <li>ant.type.path: path that is used to search for the type libraries</li>
  465. <li>ant.ext.path: path that is used to search for "Optional Packages"
  466. or extensions.</li>
  467. </ul>
  468. <p>
  469. The default search path will probably include a per-user path element,
  470. a workspace path element and a system path elemtn that are searched in
  471. that order. Some possible defaults;
  472. </p>
  473. <ul>
  474. <li>Unix Per-user: ${user.home}/.ant/lib, ${user.home}/.ant/ext</li>
  475. <li>Windows Per-user: ${user.home}/ant/lib, ${user.home}/ant/ext</li>
  476. <li>MacOSX Per-user: ${user.home}/Library/Ant/lib,
  477. ${user.home}/Library/Ant/ext</li>
  478. <li>Unix System-wide: /opt/ant/lib, /opt/ant/ext</li>
  479. <li>Unix System-wide: /usr/local/ant/lib, /usr/local/ant/ext</li>
  480. <li>Windows System-wide: %SYS_DRIVE%/Program Files/ant/lib,
  481. %SYS_DRIVE%/Program Files/ant/ext</li>
  482. <li>MacOSX System-wide: /Library/Ant/lib, /Library/Ant/ant/ext</li>
  483. </ul>
  484. </blockquote>
  485. </td></tr>
  486. </table>
  487. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  488. <tr><td bgcolor="#828DA6">
  489. <font color="#ffffff" face="arial,helvetica,sanserif">
  490. <a name="Ant 1.x Compatibility"><strong>Ant 1.x Compatibility</strong></a>
  491. </font>
  492. </td></tr>
  493. <tr><td>
  494. <blockquote>
  495. <p>The Ant1 Compatibility layer is still in early stages of development.
  496. </p>
  497. <ul>
  498. <li>Get a version of <code>&lt;antcall&gt;</code> working.</li>
  499. <li>
  500. Provide hooks between Ant1 references and Myrmidon properties.
  501. May use converters for adapting Ant2 objects (like Ant2
  502. <code>&lt;path&gt;</code> or <code>&lt;fileset&gt;</code>)
  503. as Ant1 types.
  504. </li>
  505. <li>
  506. Missing tests:
  507. <ul>
  508. <li>Make sure properties are shared between Ant1 and Myrmidon tasks.</li>
  509. </ul>
  510. </li>
  511. <li>Get GUMP runs going using Myrmidon.</li>
  512. <li>Add protected accessors for get/set/list properties in
  513. Ant1 Project, to minimise the amount of code duplication in
  514. Ant1CompatProject.</li>
  515. </ul>
  516. </blockquote>
  517. </td></tr>
  518. </table>
  519. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  520. <tr><td bgcolor="#828DA6">
  521. <font color="#ffffff" face="arial,helvetica,sanserif">
  522. <a name="Virtual File System"><strong>Virtual File System</strong></a>
  523. </font>
  524. </td></tr>
  525. <tr><td>
  526. <blockquote>
  527. <p>The VFS needs plenty of work:</p>
  528. <ul>
  529. <li>Move files/folders.</li>
  530. <li>Recursive folders copy.</li>
  531. <li>Search through a file hierarchy, using Ant-style wildcards.</li>
  532. <li>Search through a file hierarchy, using a Selector interface.</li>
  533. <li>The in-memory caching mechanism is pretty rudimentary at this stage.
  534. It needs work to make it size capped. In addition, some mechanism needs
  535. to be provided to release and refresh cached info.
  536. </li>
  537. <li>Convert files/folders into local files, for handing off
  538. to external commands, or legacy tasks.</li>
  539. <li>Refactor the replication mechanism out of ZipFileSystemProvder,
  540. and make more general pluggable.</li>
  541. <li>Capabilities discovery.</li>
  542. <li>Attributes and attribute schema.</li>
  543. <li>Handle file canonicalisation better (for cases like case-insensitive
  544. file systems, symbolic links, name encoding, etc).</li>
  545. <li>File system layering. That is, the ability for a file system to
  546. sit on top of another file system, or a file from another file system
  547. (e.g. Zip/Jar/Tar file systems, gzip/encoding file systems, virtual file
  548. systems).
  549. </li>
  550. </ul>
  551. </blockquote>
  552. </td></tr>
  553. </table>
  554. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  555. <tr><td bgcolor="#828DA6">
  556. <font color="#ffffff" face="arial,helvetica,sanserif">
  557. <a name="File Data-Types and Tasks"><strong>File Data-Types and Tasks</strong></a>
  558. </font>
  559. </td></tr>
  560. <tr><td>
  561. <blockquote>
  562. <p>The file data-types, such as
  563. <code>&lt;fileset&gt;</code> and
  564. <code>&lt;path&gt;</code>, are some of the most widely used parts of Ant 1.x.
  565. Unfortunately, they aren't particularly extensible.
  566. </p>
  567. <ul>
  568. <li>Redesign the file data-types, replacing them with an interface-based
  569. API, plus a set of implementations. The API should use the VFS file
  570. <code>FileObject</code>, rather than
  571. <code>java.io.File</code>.
  572. This process has started, in the
  573. <code>antlib.vfile</code> package.
  574. </li>
  575. <li>File Selectors:
  576. <ul>
  577. <li>Change
  578. <code>AbstractNameFileSelector</code> to use Ant 1 style patterns
  579. matches, rather than Globs patterns.
  580. </li>
  581. <li>Add 'defaultexcludes' to
  582. <code>DefaultFileSet</code>. Also add a
  583. file selector implementation that matches everything except the default
  584. excludes.
  585. </li>
  586. <li>Add a name selector that loads patterns from a file.</li>
  587. <li>Add more selector implementations: size and last-modified comparisons,
  588. checksum comparison, byte-wise content comparison.</li>
  589. </ul>
  590. </li>
  591. <li>File conditions:
  592. <ul>
  593. <li>Add more condition implementations that perform checks on files.
  594. One that searches a path for a file would be useful.</li>
  595. </ul>
  596. </li>
  597. <li>File Name Mappers:
  598. <ul>
  599. <li>Change FileNameMapper.mapFileName() to take vfs.FileName objects.</li>
  600. <li>Move the current mapper implementations across to antlib.</li>
  601. </ul>
  602. </li>
  603. <li>File Sets:
  604. <ul>
  605. <li>Add a file set implementation that provides the union of several
  606. nested file sets (that is, a file set that merges several file sets
  607. together).</li>
  608. <li>Add a file set implementation that filters files that are up-to-date
  609. WRT some other file. Alternatively, this might be better done as a
  610. file selector.</li>
  611. </ul>
  612. </li>
  613. <li>Paths:
  614. <ul>
  615. <li>Add path implementations that evaluate to the system classpath,
  616. and the ant runtime classpath. Or, more generally, combine this with
  617. <code>ClassLoaderManager</code> to evaluate to the classpath of any
  618. 'library' (e.g. system classpath, ant runtime, tools.jar,
  619. an antlib, an installed extension, or the system classes of another JVM
  620. for cross-compiling).
  621. </li>
  622. </ul>
  623. </li>
  624. <li>Port across the Ant 1 file filter proposal, once it is complete.</li>
  625. <li>Copy task:
  626. <ul>
  627. <li>Implement 'preservelastmodified', 'overwrite', and 'includeemptydirs'.</li>
  628. <li>Support a file name mapper.</li>
  629. <li>Support file filters.</li>
  630. <li>Detect and handle destination file name collisions.</li>
  631. </ul>
  632. </li>
  633. <li>Implement the
  634. <code>&lt;move&gt;</code>,
  635. <code>&lt;delete&gt;</code>,
  636. <code>&lt;touch&gt;</code> and
  637. <code>&lt;mkdir&gt;</code> tasks on top
  638. of the VFS and the new file data-types. Might be some scope for generalising
  639. 'touch' and 'mkdir' into a single task.
  640. </li>
  641. </ul>
  642. </blockquote>
  643. </td></tr>
  644. </table>
  645. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  646. <tr><td bgcolor="#828DA6">
  647. <font color="#ffffff" face="arial,helvetica,sanserif">
  648. <a name="Command-line and Configuration Files"><strong>Command-line and Configuration Files</strong></a>
  649. </font>
  650. </td></tr>
  651. <tr><td>
  652. <blockquote>
  653. <p>One of the goals of Ant 2 is to allow the user to easily customise and
  654. extend Ant. The command-line and local configuration files, are two places
  655. where this would be done. Currently, Myrmidon some customisation from the
  656. command-line, but does not support configuration files.</p>
  657. <ul>
  658. <li>Load configuration from system (from $ANT_HOME) and user (from $HOME)
  659. configuration files.</li>
  660. <li>Allow the following via config files:
  661. <ul>
  662. <li>Add (or override) the
  663. <code>lib</code> and
  664. <code>ext</code> directories.
  665. </li>
  666. <li>Enable more than one listener, and configure the listeners from
  667. the conents of the config file.</li>
  668. <li>Import libraries, and set properties.</li>
  669. <li>Execute tasks.</li>
  670. <li>Install and configure runtime services.</li>
  671. </ul>
  672. </li>
  673. </ul>
  674. </blockquote>
  675. </td></tr>
  676. </table>
  677. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  678. <tr><td bgcolor="#828DA6">
  679. <font color="#ffffff" face="arial,helvetica,sanserif">
  680. <a name="Scripting"><strong>Scripting</strong></a>
  681. </font>
  682. </td></tr>
  683. <tr><td>
  684. <blockquote>
  685. <p>Add the ability to extend Ant using languages other than
  686. Java:</p>
  687. <ul>
  688. <li>Define a task using a scripting language such as Javascript.</li>
  689. <li>Use Rhino's ability to implement Java interfaces, to
  690. implement and define types, such as FileSelector, or
  691. Condition.</li>
  692. <li>Define a task using template.</li>
  693. <li>Add some lightweight scripting tasks.</li>
  694. </ul>
  695. </blockquote>
  696. </td></tr>
  697. </table>
  698. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  699. <tr><td bgcolor="#828DA6">
  700. <font color="#ffffff" face="arial,helvetica,sanserif">
  701. <a name="Documentation"><strong>Documentation</strong></a>
  702. </font>
  703. </td></tr>
  704. <tr><td>
  705. <blockquote>
  706. <p>Everyone loves writing documentation, and so a goal for Ant 2 is to
  707. generate a lot of reference documentation for tasks and other types directly
  708. from the source. Unfortunately, there's still plenty of tutorial material
  709. to write. In particular we need these:</p>
  710. <ul>
  711. <li>User documentation - describing things like the build file format,
  712. how properties work, how to use references, how sub-builds work, how to customise
  713. Myrmidon, and so on.</li>
  714. <li>Task writer documentation - describing things like an overview the task API,
  715. how configuration works, task lifecycle, how to assemble an antlib, a catalog
  716. of the runtime services, and so on.</li>
  717. <li>Myrmidon developer documentation - a broad outline of the architecture,
  718. how to build, how to test, and so on. Also, this todo list needs plenty
  719. of filling out.</li>
  720. </ul>
  721. </blockquote>
  722. </td></tr>
  723. </table>
  724. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  725. <tr><td bgcolor="#828DA6">
  726. <font color="#ffffff" face="arial,helvetica,sanserif">
  727. <a name="Miscellaneous"><strong>Miscellaneous</strong></a>
  728. </font>
  729. </td></tr>
  730. <tr><td>
  731. <blockquote>
  732. <p>A completely unordered list of items, big and small:</p>
  733. <ul>
  734. <li>Search through the code for 'TODO' items and fix them.</li>
  735. <li>Allow service factories to be configured from the contents of the
  736. <code>ant-services.xml</code> descriptor.
  737. </li>
  738. <li>Add verbosity level to ProjectListener LogEvent</li>
  739. <li>Fire ProjectListener events taskFinished(), targetFinished() and
  740. projectFinished() events on build failure, adding indicator methods to
  741. ProjectEvent.</li>
  742. <li>Fire ProjectListener events projectStarted() and projectFinished()
  743. events on start and finish of referenced projects, adding indicator methods
  744. to ProjectEvent.</li>
  745. <li>Detect duplicate type names.</li>
  746. <li>Add fully qualified type names, based on antlib name and type shorthand name.
  747. Allow these to be used in build files in addition to the shorthand names.</li>
  748. <li>Move the
  749. <code>&lt;http&gt;</code> and
  750. <code>&lt;socket&gt;</code>
  751. conditions to an antlib. Need to resolve how these will be passed a logger.
  752. </li>
  753. <li>Make the
  754. <code>&lt;uptodate&gt;</code> task a condition, and move to
  755. an antlib.
  756. </li>
  757. <li>Split up
  758. <code>&lt;is-set&gt;</code> condition into is-set and is-true conditions.
  759. </li>
  760. <li>Allow the
  761. <code>&lt;if&gt;</code> task to take any condition implementation.
  762. </li>
  763. <li>Add an else block to the
  764. <code>&lt;if&gt;</code> task.
  765. </li>
  766. <li>Split the
  767. <code>&lt;available&gt;</code> condition into separate conditions
  768. that test for the availability of a class, or a resource.
  769. </li>
  770. <li>Move
  771. <code>crimson.jar</code> to
  772. <code>bin/lib</code> in the distribution,
  773. and make available to other jars via the extension mechanism.
  774. </li>
  775. <li>Change <code>DefaultPropertyResolver</code> to ignore '$${'.</li>
  776. <li>Add a <code>--type</code> command-line option, to allow
  777. the project builder to be manually selected.
  778. </li>
  779. <li>Unit tests.</li>
  780. </ul>
  781. </blockquote>
  782. </td></tr>
  783. </table>
  784. </blockquote>
  785. </td></tr>
  786. </table>
  787. </td>
  788. </tr>
  789. <!-- FOOTER -->
  790. <tr><td colspan="2">
  791. <hr noshade="" size="1"/>
  792. </td></tr>
  793. <tr><td colspan="2">
  794. <div align="center"><font color="#525D76" size="-1"><em>
  795. Copyright &#169; 2000-2002, Apache Software Foundation
  796. </em></font></div>
  797. </td></tr>
  798. </table>
  799. </body>
  800. </html>
  801. <!-- end the processing -->