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

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