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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. List of requirements for Ant2 split into categories.
  2. If you disagree with the category something has been put into, speak
  3. up.
  4. I. Things that don't affect the core but are requests for new tasks or
  5. enhancements of existing tasks.
  6. ======================================================================
  7. * Add a new datatype filterset to group token-filters
  8. * make usage of particular filters/filtersets explicit in copy tasks
  9. * make facade tasks for things like javac (JikesImpl, ModernImpl etc)
  10. * unify multiple similar tasks to use similar forms (ie all the javacc
  11. type tools)
  12. * Obfuscating task
  13. * Add an <ant> task that will find build files according to a fileset
  14. and invokes a common target in them.
  15. <anton>?
  16. * Add a JavaApply task that executes a given class with files from a
  17. fileset as arguments - similar to <apply>.
  18. II. Abstract goals that need to be abstract until we get into design
  19. decisions.
  20. ======================================================================
  21. * remove magic properties if at all humanly possible
  22. * remove as much dependency on native scripts as possible.
  23. * clean object model (ie Project/Target/Task)
  24. * good event model to integrate well with IDE/GUI/whatever
  25. * use a consistent naming scheme for attributes across all tasks
  26. * keep build file syntax as compatible to Ant1 as possible -
  27. i.e. don't break something just because we can.
  28. * keep the interface for Tasks as similar to the one of Ant1 as
  29. possible - i.e. don't break something just because we can.
  30. III. Things that are simple, easy to implement, where we expect the
  31. committers to agree
  32. ======================================================================
  33. * namespace support so different concerns can occupy different namespaces
  34. from ant (thus SAX2/JAXP1.1)
  35. * Java2
  36. * remove all deprecated methods, attributes, tasks
  37. * allow all datatypes to be defined anywhere - i.e. as children of
  38. project as well as of target.
  39. * make properties fully dynamic, i.e. allow their value to be reassigned
  40. * unify the namespace of all data types (ie properties + filesets +
  41. patternset + filtersets).
  42. IV. Things we probably agree upon but need to discuss the details or
  43. decide between several possible options.
  44. ======================================================================
  45. * The ability for GUI/IDE tools to integrate easily with object model
  46. without reinventing the wheel and writing their own parser (which
  47. antidote was forced to do).
  48. Two suggested solutions were allowing GUI developers to extend
  49. object model (ie GUITask extends Task) or to have Task as interface
  50. (ie GUITask implements Task). This way the GUI tasks could be W3C
  51. DOM Elements, have property vetoers/listeners etc.
  52. * support for numerous frontends - from command line over GUI to servlets
  53. corollary of the above?
  54. * Fully interpreted at runtime. This almost requires some form of
  55. abstraction/proxy that stands in place of tasks till it is
  56. interpreted. This can be hashtables/simple dom-like model/whatever
  57. * provide utility classes to aid in building tasks. ie like up-to-date
  58. functionality abstracted
  59. Need to become more specific here.
  60. * make ant-call a low cost operations so it can certain
  61. optional/template-like operations
  62. corollary of "fully interpreted at runtime"?
  63. * allow facilities to build projects from multiple sources. ie CSS+xml
  64. or XSLT+ XML or database or from inside jars or normal build.xmls
  65. etc.
  66. * move to a system that allows docs to be generated - doc snippets
  67. should be included with the tasks they document.
  68. Which DTD? Which tools for generation?
  69. * allow tasks to be loaded from jars. tasks should be indicated by
  70. either xml file in TSK-INF/taskdefs.xml or manifest file.
  71. * allow documentation to be stored in .tsk jars
  72. corollary of the two points above?
  73. * better scripting/notification support so the hooks are available to
  74. send notifications at certain times.
  75. Which hooks and where?
  76. * separate tasks into .tsk jars somehow. (Probably via function - ie
  77. java tasks, file tasks, ejb tasks).
  78. Decide on categories.
  79. * make separate build files easy (ala AntFarm) and importing different
  80. projects a breeze
  81. * provide support for user defined task configurations - i.e. give
  82. users the ability to specify a default value for attributes (always
  83. use debug="true" in <javac> unless something else has been
  84. specified).
  85. Three ideas so far: a CSS like language, a <taskconfig> element,
  86. properties following a specific naming scheme.
  87. * support more control over the properties that are going to be passed
  88. to subprojects (modules)
  89. * Ask for a new CVS module for Ant tasks.
  90. We need to define rules for this to work - maybe the rules proposed
  91. for the commons project could give us a start.
  92. * It should be possible to modify details of the actual build (e.g. classpath,
  93. used compiler) without the need to change the build specification.
  94. Do build.compiler and build.sysclasspath cover everything or do we
  95. need to add more stuff like this?
  96. V. Things we probably don't agree on.
  97. ======================================================================
  98. * provide datatypes through property tag and remove need for separate free
  99. standing entities. ie
  100. <property name="foo">
  101. <fileset dir="blah">
  102. <include name="*/**.java" />
  103. </fileset>
  104. </property>
  105. * make it possible to reuse taskengine for other things. ie
  106. Installshield type app, Peter's cron-server and other task based
  107. operations.
  108. * create the concept of workspace so that projects can be built in a
  109. DAG and thus enable projects like catalina/tomcat to have an easy
  110. build process. It also helps CJAN to a lesser degree and would
  111. partially solve the JARs in CVS thing.
  112. * provide support for CJAN
  113. In what way?
  114. * provide support for non-hardwired (ie loadable) converters.
  115. What is a converter? Is this an implementation detail?
  116. * generate docs by anakia/XSLT
  117. Corollary of "move to a system that allows docs to be generated"?
  118. * tasks provide some way to identify their attributes from the
  119. outside.
  120. Possible solutions include a special method like getProperties(), an
  121. external describing file shipping with the task class or special
  122. javadoc comments parsed by a custom doclet.
  123. * allow build file writers to modify logging (verbosity for example)
  124. on a target by target or task by task basis.
  125. * Simple flow control (if-then-else, for)
  126. Either in core or - with the help of something like Thomas
  127. Christen's proposal
  128. <http://marc.theaimsgroup.com/?l=ant-dev&m=98130655812010&w=2>
  129. as tasks.
  130. * Multithreaded execution of tasks within the same target.
  131. * Multithreaded execution of targets.
  132. * Project inheritance
  133. What's this?
  134. * Target inheritance
  135. What's this?
  136. * Add an attribute to <ant> to feed back the environment (properties and
  137. taskdefs) from the child build to the parent.
  138. * it should be possible to provide general /(template?)/ build
  139. specifications, and to declare for a concrete item that it should be
  140. built according to such a general specification.
  141. * a built-in mechanism to include build-file fragments - something
  142. that doesn't use SYSTEM entities at all and therefore is XSchema
  143. friendly, allows for property expansions ...