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.xml 20 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <document>
  2. <properties>
  3. <author email="adammurdoch@apache.org">Adam Murdoch</author>
  4. <title>Get Involved</title>
  5. </properties>
  6. <body>
  7. <section name="Todo List">
  8. <p>The broad goal is to grow Myrmidon from a prototype task engine into a fully
  9. fledged build system, that can serve as the basis for Ant 2. The following
  10. sections describe some of the many things which still need to be done to
  11. achieve that goal. This list is currently under construction.</p>
  12. <subsection name="XPath-like Locators for tasks">
  13. <p>Most tasks are grouped into some sort of task container. The task containers
  14. can be things like workspaces, projects, targets or other tasks. Each of these
  15. containers usually has a name. Thus we could refer to tasks via a path such as
  16. "/avalon/compile/javac" would refer to the task "javac" in the target "compile"
  17. in the project "avalon". In the past it has been requested that a task get access
  18. to this path programatically - other people have also asked for access to things
  19. like the currently running target. We need to assess this and decide whether we
  20. wish to support it.</p>
  21. <p>Another point to think about is that we could use XPath-like string to designate
  22. to other tasks to execute. ie antcall would refer to a path rather than a target name</p>
  23. </subsection>
  24. <subsection name="Embeddor HOWTO">
  25. <p>Assigned To: Peter</p>
  26. <p>Write a HOWTO describing how to embed Myrmidon into other
  27. applications.</p>
  28. </subsection>
  29. <subsection name="Optional Dependencies">
  30. <p>Assigned To: Peter</p>
  31. <p>Extend Myrmidons library management facilities so that optional
  32. dependencies may be declared for a library. ie The library will still
  33. operate in absence of such libraries but can provide further features
  34. if these libraries are present. Most likely this will be done via a
  35. new manifest entry "Optional-Extension-List:" that behaves similar
  36. to "Extension-List:" except that the extensions are optional.</p>
  37. </subsection>
  38. <subsection name="Facade task HOWTO">
  39. <p>Currently we have a few tasks that have multiple implementations. For instance
  40. Javac task can actually call jikes, jvc, classic javac or modern javac. Similar things
  41. will be seen with the jspc task and the cc task (if it ever gets written). We have a base
  42. class that is meant to facilitate this sort of task and make it easy to develope. See
  43. AbstractFacadeTask. However we need to write up a HOWTO so people can use it.</p>
  44. </subsection>
  45. <subsection name="Mail tasks">
  46. <p>Convert the ant1.x Mail tasks to myrmidon.</p>
  47. </subsection>
  48. <subsection name="Security Manager">
  49. <p>Add the ability to run java programs that call System.exit() by adding a
  50. security manager. Should look something like:</p>
  51. <source>
  52. public class MyrmidonSecurityManager
  53. extends SecurityManager
  54. {
  55. public void checkExit( final int status )
  56. {
  57. throw new ExitException( status );
  58. }
  59. public void checkPermission( final Permission permission )
  60. {
  61. }
  62. }
  63. </source>
  64. </subsection>
  65. <subsection name="Self Hosting">
  66. <p>Myrmidon must be able to build itself. Currently, it is built using
  67. Ant 1.x. Ultimately, Myrmidon should be able to build itself from exactly the
  68. same build file. To start with, however, there is no need for Myrmidon to be
  69. able to do this. Myrmidon should also be able to be bootstrapped (that is, be
  70. able to be built from scratch, without using Ant 1.x at all).</p>
  71. </subsection>
  72. <subsection name="Validation Pass">
  73. <p>Consider calling validate() on task prior to execute(). This would allow
  74. us to have a "make -k" mode that actually did basic validation and would also
  75. encourage task writers to do validation properly.</p>
  76. </subsection>
  77. <subsection name="Paths">
  78. <p>Consider allowing the user to configure the ant system by setting the
  79. following path types.</p>
  80. <ul>
  81. <li>ant.type.path: path that is used to search for the type libraries</li>
  82. <li>ant.ext.path: path that is used to search for "Optional Packages"
  83. or extensions.</li>
  84. </ul>
  85. <p>
  86. The default search path will probably include a per-user path element,
  87. a workspace path element and a system path elemtn that are searched in
  88. that order. Some possible defaults;
  89. </p>
  90. <ul>
  91. <li>Unix Per-user: ${user.home}/.ant/lib, ${user.home}/.ant/ext</li>
  92. <li>Windows Per-user: ${user.home}/ant/lib, ${user.home}/ant/ext</li>
  93. <li>MacOSX Per-user: ${user.home}/Library/Ant/lib,
  94. ${user.home}/Library/Ant/ext</li>
  95. <li>Unix System-wide: /opt/ant/lib, /opt/ant/ext</li>
  96. <li>Unix System-wide: /usr/local/ant/lib, /usr/local/ant/ext</li>
  97. <li>Windows System-wide: %SYS_DRIVE%/Program Files/ant/lib,
  98. %SYS_DRIVE%/Program Files/ant/ext</li>
  99. <li>MacOSX System-wide: /Library/Ant/lib, /Library/Ant/ant/ext</li>
  100. </ul>
  101. </subsection>
  102. <subsection name="Ant 1.x Compatibility">
  103. <p>The Ant1 Compatibility layer is still in early stages of development.
  104. </p>
  105. <ul>
  106. <li>Get a version of <code>&lt;antcall&gt;</code> working.</li>
  107. <li>
  108. Provide hooks between Ant1 references and Myrmidon properties.
  109. May use converters for adapting Ant2 objects (like Ant2
  110. <code>&lt;path&gt;</code> or <code>&lt;fileset&gt;</code>)
  111. as Ant1 types.
  112. </li>
  113. <li>
  114. Missing tests:
  115. <ul>
  116. <li>Make sure properties are shared between Ant1 and Myrmidon tasks.</li>
  117. </ul>
  118. </li>
  119. <li>Get GUMP runs going using Myrmidon.</li>
  120. <li>Add protected accessors for get/set/list properties in
  121. Ant1 Project, to minimise the amount of code duplication in
  122. Ant1CompatProject.</li>
  123. </ul>
  124. </subsection>
  125. <subsection name="Virtual File System">
  126. <p>The VFS needs plenty of work:</p>
  127. <ul>
  128. <li>Move files/folders.</li>
  129. <li>Recursive folders copy.</li>
  130. <li>Search through a file hierarchy, using Ant-style wildcards.</li>
  131. <li>Search through a file hierarchy, using a Selector interface.</li>
  132. <li>The in-memory caching mechanism is pretty rudimentary at this stage.
  133. It needs work to make it size capped. In addition, some mechanism needs
  134. to be provided to release and refresh cached info.
  135. </li>
  136. <li>Convert files/folders into local files, for handing off
  137. to external commands, or legacy tasks.</li>
  138. <li>Refactor the replication mechanism out of ZipFileSystemProvder,
  139. and make more general pluggable.</li>
  140. <li>Capabilities discovery.</li>
  141. <li>Attributes and attribute schema.</li>
  142. <li>Handle file canonicalisation better (for cases like case-insensitive
  143. file systems, symbolic links, name encoding, etc).</li>
  144. <li>File system layering. That is, the ability for a file system to
  145. sit on top of another file system, or a file from another file system
  146. (e.g. Zip/Jar/Tar file systems, gzip/encoding file systems, virtual file
  147. systems).
  148. </li>
  149. </ul>
  150. </subsection>
  151. <subsection name="File Data-Types and Tasks">
  152. <p>The file data-types, such as
  153. <code>&lt;fileset&gt;</code> and
  154. <code>&lt;path&gt;</code>, are some of the most widely used parts of Ant 1.x.
  155. Unfortunately, they aren't particularly extensible.
  156. </p>
  157. <ul>
  158. <li>Redesign the file data-types, replacing them with an interface-based
  159. API, plus a set of implementations. The API should use the VFS file
  160. <code>FileObject</code>, rather than
  161. <code>java.io.File</code>.
  162. This process has started, in the
  163. <code>antlib.vfile</code> package.
  164. </li>
  165. <li>File Selectors:
  166. <ul>
  167. <li>Change
  168. <code>AbstractNameFileSelector</code> to use Ant 1 style patterns
  169. matches, rather than Globs patterns.
  170. </li>
  171. <li>Add 'defaultexcludes' to
  172. <code>DefaultFileSet</code>. Also add a
  173. file selector implementation that matches everything except the default
  174. excludes.
  175. </li>
  176. <li>Add a name selector that loads patterns from a file.</li>
  177. <li>Add more selector implementations: size and last-modified comparisons,
  178. checksum comparison, byte-wise content comparison.</li>
  179. </ul>
  180. </li>
  181. <li>File conditions:
  182. <ul>
  183. <li>Add more condition implementations that perform checks on files.
  184. One that searches a path for a file would be useful.</li>
  185. </ul>
  186. </li>
  187. <li>File Name Mappers:
  188. <ul>
  189. <li>Change FileNameMapper.mapFileName() to take vfs.FileName objects.</li>
  190. <li>Move the current mapper implementations across to antlib.</li>
  191. </ul>
  192. </li>
  193. <li>File Sets:
  194. <ul>
  195. <li>Add a file set implementation that provides the union of several
  196. nested file sets (that is, a file set that merges several file sets
  197. together).</li>
  198. <li>Add a file set implementation that filters files that are up-to-date
  199. WRT some other file. Alternatively, this might be better done as a
  200. file selector.</li>
  201. </ul>
  202. </li>
  203. <li>Paths:
  204. <ul>
  205. <li>Add path implementations that evaluate to the system classpath,
  206. and the ant runtime classpath. Or, more generally, combine this with
  207. <code>ClassLoaderManager</code> to evaluate to the classpath of any
  208. 'library' (e.g. system classpath, ant runtime, tools.jar,
  209. an antlib, an installed extension, or the system classes of another JVM
  210. for cross-compiling).
  211. </li>
  212. </ul>
  213. </li>
  214. <li>Port across the Ant 1 file filter proposal, once it is complete.</li>
  215. <li>Copy task:
  216. <ul>
  217. <li>Implement 'preservelastmodified', 'overwrite', and 'includeemptydirs'.</li>
  218. <li>Support a file name mapper.</li>
  219. <li>Support file filters.</li>
  220. <li>Detect and handle destination file name collisions.</li>
  221. </ul>
  222. </li>
  223. <li>Implement the
  224. <code>&lt;move&gt;</code>,
  225. <code>&lt;delete&gt;</code>,
  226. <code>&lt;touch&gt;</code> and
  227. <code>&lt;mkdir&gt;</code> tasks on top
  228. of the VFS and the new file data-types. Might be some scope for generalising
  229. 'touch' and 'mkdir' into a single task.
  230. </li>
  231. </ul>
  232. </subsection>
  233. <subsection name="Command-line and Configuration Files">
  234. <p>One of the goals of Ant 2 is to allow the user to easily customise and
  235. extend Ant. The command-line and local configuration files, are two places
  236. where this would be done. Currently, Myrmidon some customisation from the
  237. command-line, but does not support configuration files.</p>
  238. <ul>
  239. <li>Load configuration from system (from $ANT_HOME) and user (from $HOME)
  240. configuration files.</li>
  241. <li>Allow the following via config files:
  242. <ul>
  243. <li>Add (or override) the
  244. <code>lib</code> and
  245. <code>ext</code> directories.
  246. </li>
  247. <li>Enable more than one listener, and configure the listeners from
  248. the conents of the config file.</li>
  249. <li>Import libraries, and set properties.</li>
  250. <li>Execute tasks.</li>
  251. <li>Install and configure runtime services.</li>
  252. </ul>
  253. </li>
  254. </ul>
  255. </subsection>
  256. <subsection name="Scripting">
  257. <p>Add the ability to extend Ant using languages other than
  258. Java:</p>
  259. <ul>
  260. <li>Define a task using a scripting language such as Javascript.</li>
  261. <li>Use Rhino's ability to implement Java interfaces, to
  262. implement and define types, such as FileSelector, or
  263. Condition.</li>
  264. <li>Define a task using template.</li>
  265. <li>Add some lightweight scripting tasks.</li>
  266. </ul>
  267. </subsection>
  268. <subsection name="Documentation">
  269. <p>Everyone loves writing documentation, and so a goal for Ant 2 is to
  270. generate a lot of reference documentation for tasks and other types directly
  271. from the source. Unfortunately, there's still plenty of tutorial material
  272. to write. In particular we need these:</p>
  273. <ul>
  274. <li>User documentation - describing things like the build file format,
  275. how properties work, how to use references, how sub-builds work, how to customise
  276. Myrmidon, and so on.</li>
  277. <li>Task writer documentation - describing things like an overview the task API,
  278. how configuration works, task lifecycle, how to assemble an antlib, a catalog
  279. of the runtime services, and so on.</li>
  280. <li>Myrmidon developer documentation - a broad outline of the architecture,
  281. how to build, how to test, and so on. Also, this todo list needs plenty
  282. of filling out.</li>
  283. </ul>
  284. </subsection>
  285. <subsection name="Miscellaneous">
  286. <p>A completely unordered list of items, big and small:</p>
  287. <ul>
  288. <li>Search through the code for 'TODO' items and fix them.</li>
  289. <li>Allow service factories to be configured from the contents of the
  290. <code>ant-services.xml</code> descriptor.
  291. </li>
  292. <li>Add verbosity level to ProjectListener LogEvent</li>
  293. <li>Fire ProjectListener events taskFinished(), targetFinished() and
  294. projectFinished() events on build failure, adding indicator methods to
  295. ProjectEvent.</li>
  296. <li>Fire ProjectListener events projectStarted() and projectFinished()
  297. events on start and finish of referenced projects, adding indicator methods
  298. to ProjectEvent.</li>
  299. <li>Detect duplicate type names.</li>
  300. <li>Add fully qualified type names, based on antlib name and type shorthand name.
  301. Allow these to be used in build files in addition to the shorthand names.</li>
  302. <li>Move the
  303. <code>&lt;http&gt;</code> and
  304. <code>&lt;socket&gt;</code>
  305. conditions to an antlib. Need to resolve how these will be passed a logger.
  306. </li>
  307. <li>Make the
  308. <code>&lt;uptodate&gt;</code> task a condition, and move to
  309. an antlib.
  310. </li>
  311. <li>Split up
  312. <code>&lt;is-set&gt;</code> condition into is-set and is-true conditions.
  313. </li>
  314. <li>Allow the
  315. <code>&lt;if&gt;</code> task to take any condition implementation.
  316. </li>
  317. <li>Add an else block to the
  318. <code>&lt;if&gt;</code> task.
  319. </li>
  320. <li>Split the
  321. <code>&lt;available&gt;</code> condition into separate conditions
  322. that test for the availability of a class, or a resource.
  323. </li>
  324. <li>Move
  325. <code>crimson.jar</code> to
  326. <code>bin/lib</code> in the distribution,
  327. and make available to other jars via the extension mechanism.
  328. </li>
  329. <li>Change <code>DefaultPropertyResolver</code> to ignore '$${'.</li>
  330. <li>Add a <code>--type</code> command-line option, to allow
  331. the project builder to be manually selected.
  332. </li>
  333. <li>Unit tests.</li>
  334. </ul>
  335. </subsection>
  336. </section>
  337. </body>
  338. </document>