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.

requested-features.txt 20 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. Status:
  2. =======
  3. The committers have cast votes on all items (except those that came in
  4. too late) and the results are listed below - the next step will be a
  5. design phase.
  6. This list of items will be summarized into an Ant2 specification soon.
  7. I. Things that don't affect the core but are requests for new tasks or
  8. enhancements of existing tasks.
  9. ======================================================================
  10. [ACCEPTED] for a task doesn't mean that task will be core tasks (or
  11. even be supplied by a voter), just that having them (as optional
  12. tasks) would be acceptable.
  13. * Add a new datatype filterset to group token-filters
  14. [ACCEPTED]
  15. * make usage of particular filters/filtersets explicit in copy tasks
  16. [ACCEPTED]
  17. * make facade tasks for things like javac (JikesImpl, ModernImpl etc)
  18. One candidate is jar with implementations for fastjar
  19. for example.
  20. [ACCEPTED]
  21. * unify multiple similar tasks to use similar forms (ie all the javacc
  22. type tools)
  23. [ACCEPTED]
  24. * Obfuscating task
  25. [ACCEPTED]
  26. * Add an <ant> task that will find build files according to a fileset
  27. and invokes a common target in them.
  28. <anton>?
  29. [will need more discussion because of votes by Peter Donald and
  30. Stefan Bodewig]
  31. [finally ACCEPTED]
  32. * Add a JavaApply task that executes a given class with files from a
  33. fileset as arguments - similar to <apply>.
  34. [will need more discussion because of votes by Peter Donald and
  35. Stefan Bodewig]
  36. [finally ACCEPTED]
  37. * Include some more sophisticated loggers with the Ant distribution -
  38. especially for sending emails. Make the existing one more flexible
  39. (stylesheet used by XmlLogger).
  40. Could be part of the same module tasks would be developed in?
  41. [will need more discussion because of vote by Conor MacNeill]
  42. [finally ACCEPTED]
  43. * make the default logger's output clear, informative, and terse.
  44. Actually, this is a little bit abstract, but doesn't apply to the
  45. core either.
  46. [will need more discussion because of vote by Conor MacNeill]
  47. [REJECTED - vetoes by Conot MacNeill and Stefan Bodewig]
  48. * Better docs.
  49. More examples. Tutorials, beginner documents, reference sheets for
  50. tasks, printable version.
  51. [ACCEPTED]
  52. * RPM task.
  53. [ACCEPTED]
  54. * add an attribute to <property> to read in an entire file as the
  55. value of a property.
  56. [will need more discussion because of vote by Peter Donald]
  57. [REJECTED - veto by Peter Donald]
  58. * Task for splitting files (head/tail/split like functionality).
  59. [ACCEPTED]
  60. * Task to create XMI from Java.
  61. [ACCEPTED]
  62. * socksified networking tasks, SSH tasks.
  63. [Peter Donald expressed some legal concerns that might be overcome,
  64. depending on the implementation]
  65. * a reachable task that works much like available for network URLs.
  66. [ACCEPTED]
  67. * make PATH handling consistent. Every task that has a PATH attribute
  68. must also accept references to PATHs.
  69. [will need more discussion because of vote by Stefan Bodewig]
  70. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister and Stefan Bodewig]
  71. * Task to extract classes from a JAR file that a given class depends
  72. on.
  73. Based on <depend> or IBM's JAX for example.
  74. [ACCEPTED]
  75. * Unify <available> and <uptodate> into a more general <condition>
  76. task, support AND/OR of several tests here.
  77. [will need more discussion because of vote by Peter Donald]
  78. * jsp-compilation task
  79. Sounds like a candidate for a facade task.
  80. [ACCEPTED]
  81. * URL-spider task that checks links for missing content or server errors
  82. [ACCEPTED]
  83. II. Abstract goals that need to be abstract until we get into design
  84. decisions.
  85. ======================================================================
  86. During discussion it became obvious, that some things from this list
  87. are goals for Ant and some should be guidelines for developers,
  88. therefore there are two flavors, [ACCEPTED] and [ACCEPTED AS GUIDELINE].
  89. * Provide a clear mission statement for Ant.
  90. [ACCEPTED]
  91. * Main goals: Simplicity, Understandability, Extensibility
  92. [ACCEPTED]
  93. * remove magic properties if at all humanly possible
  94. [ACCEPTED]
  95. * remove as much dependency on native scripts as possible.
  96. [ACCEPTED]
  97. * clean object model (ie Project/Target/Task)
  98. [ACCEPTED]
  99. * good event model to integrate well with IDE/GUI/whatever
  100. [ACCEPTED]
  101. * use a consistent naming scheme for attributes across all tasks
  102. [ACCEPTED]
  103. * keep build file syntax as compatible to Ant1 as possible -
  104. i.e. don't break something just because we can.
  105. [ACCEPTED]
  106. * keep the interface for Tasks as similar to the one of Ant1 as
  107. possible - i.e. don't break something just because we can.
  108. [ACCEPTED]
  109. * Ant should be cancelable
  110. [ACCEPTED]
  111. * no commit of new features without documentation
  112. [ACCEPTED AS GUIDELINE]
  113. * no commit of new features without testcases
  114. [ACCEPTED AS GUIDELINE]
  115. III. Things that are simple, easy to implement, where we expect the
  116. committers to agree
  117. ======================================================================
  118. * namespace support so different concerns can occupy different namespaces
  119. from ant (thus SAX2/JAXP1.1)
  120. [ACCEPTED]
  121. * Java2
  122. [ACCEPTED]
  123. * remove all deprecated methods, attributes, tasks
  124. [ACCEPTED]
  125. * allow all datatypes to be defined anywhere - i.e. as children of
  126. project as well as of target.
  127. [ACCEPTED]
  128. * make properties fully dynamic, i.e. allow their value to be reassigned
  129. [will need more discussion because of vote by Glenn McAllister and
  130. Conor MacNeill]
  131. [finally ACCEPTED]
  132. * unify the namespace of all data types (ie properties + filesets +
  133. patternset + filtersets).
  134. [ACCEPTED]
  135. * add a user defined message if a target will be skipped because the
  136. if/unless attribute says so.
  137. [ACCEPTED]
  138. * allow user-datatypes to be defined via a <typedef> similar to <taskdef>.
  139. [ACCEPTED]
  140. IV. Things we probably agree upon but need to discuss the details or
  141. decide between several possible options.
  142. ======================================================================
  143. [ACCEPTED] means, the goal/idea is fine, not that a decission on a
  144. particular implementation has been made.
  145. * The ability for GUI/IDE tools to integrate easily with object model
  146. without reinventing the wheel and writing their own parser (which
  147. antidote was forced to do).
  148. Two suggested solutions were allowing GUI developers to extend
  149. object model (ie GUITask extends Task) or to have Task as interface
  150. (ie GUITask implements Task). This way the GUI tasks could be W3C
  151. DOM Elements, have property vetoers/listeners etc.
  152. [ACCEPTED]
  153. * support for numerous frontends - from command line over GUI to servlets
  154. corollary of the above?
  155. [ACCEPTED]
  156. * Fully interpreted at runtime. This almost requires some form of
  157. abstraction/proxy that stands in place of tasks till it is
  158. interpreted. This can be hashtables/simple dom-like model/whatever
  159. [ACCEPTED]
  160. * provide utility classes to aid in building tasks. ie like up-to-date
  161. functionality abstracted
  162. Need to become more specific here.
  163. [ACCEPTED]
  164. * make ant-call a low cost operations so it can certain
  165. optional/template-like operations
  166. corollary of "fully interpreted at runtime"?
  167. [ACCEPTED]
  168. * allow facilities to build projects from multiple sources. ie CSS+xml
  169. or XSLT+ XML or Velocity+text or database or from inside jars or normal
  170. build.xmls etc.
  171. allow the project tree to be built dynamically.
  172. [ACCEPTED]
  173. * move to a system that allows docs to be generated - doc snippets
  174. should be included with the tasks they document.
  175. Which DTD? Which tools for generation?
  176. [ACCEPTED]
  177. * allow tasks to be loaded from jars. tasks should be indicated by
  178. either xml file in TSK-INF/taskdefs.xml or manifest file.
  179. [ACCEPTED]
  180. * allow documentation to be stored in .tsk jars
  181. corollary of the two points above?
  182. [ACCEPTED]
  183. * better scripting/notification support so the hooks are available to
  184. send notifications at certain times.
  185. Which hooks and where?
  186. [will need more discussion because of vote by Peter Donald and
  187. Simeon Fitch]
  188. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Simeon Fitch]
  189. * separate tasks into .tsk jars somehow. (Probably via function - ie
  190. java tasks, file tasks, ejb tasks).
  191. Decide on categories.
  192. [will need more discussion because of vote by Conor MacNeill]
  193. [finally ACCEPTED]
  194. * make separate build files easy (ala AntFarm) and importing different
  195. projects a breeze
  196. [ACCEPTED]
  197. * provide support for user defined task configurations - i.e. give
  198. users the ability to specify a default value for attributes (always
  199. use debug="true" in <javac> unless something else has been
  200. specified).
  201. Three ideas so far: a CSS like language, a <taskconfig> element,
  202. properties following a specific naming scheme.
  203. [ACCEPTED]
  204. * support more control over the properties that are going to be passed
  205. to subprojects (modules)
  206. [ACCEPTED]
  207. * Ask for a new CVS module for Ant tasks.
  208. We need to define rules for this to work - maybe the rules proposed
  209. for the commons project could give us a start.
  210. [will need more discussion because of vote by Conor MacNeill]
  211. [REJECTED - vetoes by Conor MacNeill and Glenn McAllister]
  212. * It should be possible to modify details of the actual build (e.g. classpath,
  213. used compiler) without the need to change the build specification.
  214. Do build.compiler and build.sysclasspath cover everything or do we
  215. need to add more stuff like this?
  216. [will need more discussion because of vote by Conor MacNeill]
  217. [REJECTED - veto by Conor MacNeill]
  218. * Task to prompt for user input.
  219. Does affect core as we need a means to request input from the Frontend.
  220. [ACCEPTED]
  221. * Add cvs login feature.
  222. Requires handling of user input.
  223. [ACCEPTED]
  224. * Easier installation process. GUI - maybe webstart from the homepage.
  225. This includes asking the user whether he wants to use optional tasks
  226. and downloads the required libs. Automatic upgrades and so on.
  227. Self-extracting jar installer: java -jar jakarta-ant-1.3-bin.jar.
  228. Prompts for destination directory, extracts archive, fixes all
  229. text files with fixCRLF task; on UNIX, makes scripts executable.
  230. Could also modify ant scripts with the location of ANT_HOME.
  231. [ACCEPTED]
  232. * Logo for Ant.
  233. [ACCEPTED]
  234. * detach Ant from System.err/.in/.out.
  235. Beware of problems with spawned processes.
  236. [ACCEPTED]
  237. * better subproject handling
  238. Whatever that means in detail.
  239. [will need more discussion because of vote by Conor MacNeill]
  240. [REJECTED - vetoes by Conor MacNeill and Stefan Bodewig]
  241. * build files should be declarative in nature
  242. [ACCEPTED]
  243. V. Things we probably don't agree on.
  244. ======================================================================
  245. [DISC] Datatypes
  246. ----------------
  247. * Allow mappers to be genericised so that particular features can be modified
  248. during mapping. Something similar to
  249. <fileset ...>
  250. <include name="*.sh"/>
  251. <mapper type="unix-permissions">
  252. <param name="user" value="ant"/>
  253. <param name="group" value="ant"/>
  254. <param name="mod" value="755"/>
  255. </mapper>
  256. </fileset>
  257. [REJECTED - vetoes by Stefan Bodewig and Conor MacNeill, not enough
  258. positive votes anyway.]
  259. * Allow include/exclude tow work with multiple characteristerics of a file.
  260. ie include into fileset if file is readable, modified after 29th of Feb,
  261. has a name that matches patter "**/*.java" and the property "foo.present"
  262. is set. Something similar to
  263. <include>
  264. <item-filter type="name" value="**/*.java"/>
  265. <item-filter type="permission" value="r"/>
  266. <!-- could optionally be directory/or some other system specific features -->
  267. <item-filter type="type" value="file"/>
  268. <item-filter type="modify-time"
  269. operation="greater-than"
  270. value="29th Feb 2003"/>
  271. </include>
  272. [ACCEPTED]
  273. * provide datatypes through property tag and remove need for separate free
  274. standing entities. ie
  275. <property name="foo">
  276. <fileset dir="blah">
  277. <include name="*/**.java" />
  278. </fileset>
  279. </property>
  280. [REJECTED - only one +1 vote]
  281. * provide support for non-hardwired (ie loadable) low-level
  282. components (mappers/itemset-filters/converters). Allow them to be
  283. loaded in either global or a new classloader.
  284. [ACCEPTED]
  285. * provide support for non-hardwired (ie loadable) converters.
  286. Q: What is a converter? Is this an implementation detail?
  287. A: Not an implementation detail but a way to extend the engine
  288. to convert more data types. Currently we have fixed set that is
  289. expanded on occasion (ie includes primitive types + File). Instead
  290. of spreading converting code through out tasks it can be centralized
  291. into one component and used by engine. This becomes particularly
  292. relevent if you build ant based testing systems and use ant in certain
  293. web-related areas.
  294. [ACCEPTED]
  295. * Make all datatypes interfaces to allow them to be customized in many
  296. ways.
  297. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Stefan Bodewig]
  298. * Set arithmetic for fileset/patternset/*set
  299. [ACCEPTED]
  300. * inheritance of ant properties/datatypes/context etc in project hierarchy
  301. [ACCEPTED]
  302. * inheritance of between ant datatypes. ie fileset A inherits from fileset B (includes
  303. all entries in A).
  304. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Stefan Bodewig]
  305. * Homogenize notion of PATHs and filesets.
  306. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Stefan Bodewig]
  307. [DISC] Ant's goals
  308. ------------------
  309. * make it possible to reuse taskengine for other things. ie
  310. Installshield type app, Peter's cron-server and other task based
  311. operations.
  312. [REJECTED as a primary goal - only two +1 votes]
  313. * provide support for CJAN
  314. Q: In what way?
  315. A: Probably by supplying a set of tasks that download versioned
  316. binaries and their associated dependencies, caching the downloads
  317. in a known place and updating binaries when required. ("When required"
  318. being indicated by a change in property values).
  319. [REJECTED as part of Ant's core - veto by Conor MacNeill, no single +1]
  320. [DISC] class loading
  321. --------------------
  322. * force resolution of classes on loading to identify classloader
  323. issues early. (At least in global classloader).
  324. [REJECTED - only one +1 vote]
  325. * Ignore any classes contained in the damned ext dirs of a JVM - possibly by launching
  326. with something like jar -Djava.ext.dir=foo -jar ant.jar
  327. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister and Stefan
  328. Bodewig, ACCEPTED if optional]
  329. [DISC] workspace/subbuild issues
  330. --------------------------------
  331. * create the concept of workspace so that projects can be built in a
  332. DAG and thus enable projects like catalina/tomcat to have an easy
  333. build process. It also helps CJAN to a lesser degree and would
  334. partially solve the JARs in CVS thing.
  335. [ACCEPTED]
  336. * Project inheritance
  337. What's this?
  338. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Stefan Bodewig]
  339. * Target inheritance. ie The ability to include targets from other
  340. project files overidining them as necessary (so cascading project
  341. files).
  342. [REJECTED - vetoes by Conor MacNeill, Peter Donald and Stefan Bodewig]
  343. * Add an attribute to <ant> to feed back the environment (properties and
  344. taskdefs) from the child build to the parent.
  345. [REJECTED - vetoes by Conor MacNeill, Peter Donald, Simeon Fitch and
  346. Stefan Bodewig]
  347. * Allow a target to depend on a target which is in another buildfile.
  348. [ACCEPTED]
  349. * Allow a target to reference properties defined in another buildfile.
  350. [REJECTED - only one +1 vote]
  351. [DISC] documentation system
  352. ---------------------------
  353. * generate docs by anakia/XSLT
  354. Corollary of "move to a system that allows docs to be generated"?
  355. [ACCEPTED - with no decision on which system to use]
  356. [DISC] Task API
  357. ---------------
  358. * tasks provide some way to identify their attributes from the
  359. outside.
  360. Possible solutions include a special method like getProperties(), an
  361. external describing file shipping with the task class or special
  362. javadoc comments parsed by a custom doclet. Whatever the method it
  363. should not impose any cost on runtime as it is only used a small
  364. proportion of the time (design-time).
  365. [ACCEPTED]
  366. * tasks should have access to its own XML representation.
  367. [REJECTED - vetoes by Christoph Wilhelms, Conor MacNeill and Simeon Fitch]
  368. * Task level if and unless attributes.
  369. [REJECTED - no single +1 vote]
  370. * Allow tasks to find out, whether another task has completed successfully.
  371. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister, Peter Donald
  372. and Stefan Bodewig]
  373. * provide failonerror like functionality to all tasks. (Provide this as an aspect??
  374. much like logging aspect or classloader aspect).
  375. [ACCEPTED]
  376. [DISC] logging
  377. --------------
  378. * allow build file writers to modify logging (verbosity for example)
  379. on a target by target or task by task basis.
  380. [ACCEPTED]
  381. * Make loggers configurable via build.xml.
  382. [ACCEPTED]
  383. [DISC] multithrading
  384. --------------------
  385. * Multithreaded execution of tasks within the same target.
  386. [ACCEPTED]
  387. * Multithreaded execution of targets.
  388. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister and Stefan Bodewig]
  389. [DISC] procedural versus purely declarative
  390. -------------------------------------------
  391. * Simple flow control (if-then-else, for)
  392. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister, Peter Donald
  393. and Stefan Bodewig]
  394. * targets should be like methods including a return value
  395. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister, Peter Donald,
  396. Simeon Fitch and Stefan Bodewig]
  397. * build files should be purely declarative
  398. [REJECTED - veto by Stefan Bodewig]
  399. [DISC] Properties
  400. -----------------
  401. * Ability to manage scopping of properties in general (ie target/project/workspace).
  402. [ACCEPTED]
  403. [DISC] Templates
  404. ----------------
  405. * it should be possible to provide general /(template?)/ build
  406. specifications, and to declare for a concrete item that it should be
  407. built according to such a general specification.
  408. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister, Peter Donald
  409. and Stefan Bodewig]
  410. [DISC] XML issues
  411. -----------------
  412. * a built-in mechanism to include build-file fragments - something
  413. that doesn't use SYSTEM entities at all and therefore is XSchema
  414. friendly, allows for property expansions ...
  415. [ACCEPTED]
  416. * Let Ant ignore - but warn - if unknown XML elements or attributes
  417. occur in a build file.
  418. [REJECTED - vetoes by Conor MacNeill, Glenn McAllister, Peter Donald
  419. and Stefan Bodewig]
  420. * Allow ant to farm out attributes and elements that are NOT in the ant
  421. namespace to other components. ie hand doc: elements to the Documentation
  422. component or log: attributes to Log policy component etc
  423. [ACCEPTED]
  424. [DISC] core extensions
  425. ----------------------
  426. * Allow named tasks to be defined by <script> elements.
  427. [REJECTED - only one +1 vote]
  428. * specify an onfail task or target that runs in case of a build
  429. failure.
  430. [REJECTED - vetoes by Glenn McAllister, Peter Donald and Stefan Bodewig]
  431. * allow sequence to be specified in depends attribute or enhance
  432. antcall to work with current list of executed targets
  433. [ACCEPTED]
  434. * Support nesting tasks into other elements - not just as children of
  435. target - as proposed by Thomas Christen in
  436. <http://marc.theaimsgroup.com/?l=ant-dev&m=98130655812010&w=2>.
  437. [ACCEPTED]
  438. * Make if/unless attributes to check for the value of a property, not
  439. only its existance.
  440. [REJECTED - vetoes by Glenn McAllister and Stefan Bodewig]
  441. * check for more than one condition in if/unless attributes.
  442. [REJECTED - vetoes by Glenn McAllister, Peter Donald and Stefan Bodewig]
  443. * provide a way to define the order in which targets a given target
  444. depends upon get executed.
  445. [ACCEPTED]
  446. * define task contexts that define various common aspects (logging,
  447. failure handling ...) and assign them to tasks.
  448. [ACCEPTED]
  449. [DISC] organization
  450. -------------------
  451. * separate CVSes and code hierarchies for
  452. - task engine [ org.apache.task.* ]
  453. - project engine (ie model of targets/projects/workspaces) + support/utility classes
  454. [ org.apache.ant.* ]
  455. - core tasks (ie tasks supported by ant contributors) [ org.apache.??? ]
  456. [REJECTED - vetoes by Conor MacNeill and Glenn McAllister]
  457. [DISC] misc
  458. -----------
  459. * internationalization
  460. [ACCEPTED]
  461. VI. entries that have been submitted too late
  462. =============================================
  463. * Integration of the depends task and javac tasks
  464. [REJECTED - only two +1 votes]
  465. * recursive property resolution( ie resolving ${dist.${name}.dir} )
  466. [REJECTED - veto by Peter Donald]