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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. One candidate is rmic with implementations for Kaffee and Weblogic
  11. for example.
  12. * unify multiple similar tasks to use similar forms (ie all the javacc
  13. type tools)
  14. * Obfuscating task
  15. * Add an <ant> task that will find build files according to a fileset
  16. and invokes a common target in them.
  17. <anton>?
  18. * Add a JavaApply task that executes a given class with files from a
  19. fileset as arguments - similar to <apply>.
  20. * Include some more sophisticated loggers with the Ant distribution -
  21. especially for sending emails. Make the existing one more flexible
  22. (stylesheet used by XmlLogger).
  23. Could be part of the same module task would be developed in?
  24. * make the default logger's output clear, informative, and terse.
  25. Actually, this is a little bit abstract, but doesn't apply to the
  26. core either.
  27. * Better docs.
  28. More examples. Tutorials, beginner documents, reference sheets for
  29. tasks, printable version.
  30. * RPM task.
  31. * add an attribute to <property> to read in an entire file as the
  32. value of a property.
  33. * Task for splitting files (head/tail/split like functionality).
  34. * Task to create XMI from Java.
  35. * socksified networking tasks, SSH tasks.
  36. * a reachable task that works much like available for network URLs.
  37. * make PATH handling consistent. Every task that has a PATH attribute
  38. must also accept references to PATHs.
  39. * Task to extract classes from a JAR file that a given class depends
  40. on.
  41. Based on <depend> of IBM's JAX for example.
  42. * Unify <available> and <uptodate> into a more general <condition>
  43. task, support AND/OR of several tests here.
  44. II. Abstract goals that need to be abstract until we get into design
  45. decisions.
  46. ======================================================================
  47. * remove magic properties if at all humanly possible
  48. * remove as much dependency on native scripts as possible.
  49. * clean object model (ie Project/Target/Task)
  50. * good event model to integrate well with IDE/GUI/whatever
  51. * use a consistent naming scheme for attributes across all tasks
  52. * keep build file syntax as compatible to Ant1 as possible -
  53. i.e. don't break something just because we can.
  54. * keep the interface for Tasks as similar to the one of Ant1 as
  55. possible - i.e. don't break something just because we can.
  56. * Ant should be cancelable
  57. * no commit without documentation (ouch 8-)
  58. III. Things that are simple, easy to implement, where we expect the
  59. committers to agree
  60. ======================================================================
  61. * namespace support so different concerns can occupy different namespaces
  62. from ant (thus SAX2/JAXP1.1)
  63. * Java2
  64. * remove all deprecated methods, attributes, tasks
  65. * allow all datatypes to be defined anywhere - i.e. as children of
  66. project as well as of target.
  67. * make properties fully dynamic, i.e. allow their value to be reassigned
  68. * unify the namespace of all data types (ie properties + filesets +
  69. patternset + filtersets).
  70. * add a user defined message if a target will be skipped because the
  71. if/unless attribute says so.
  72. * allow user-datatypes to be defined via a <typedef> similar to <taskdef>.
  73. IV. Things we probably agree upon but need to discuss the details or
  74. decide between several possible options.
  75. ======================================================================
  76. * The ability for GUI/IDE tools to integrate easily with object model
  77. without reinventing the wheel and writing their own parser (which
  78. antidote was forced to do).
  79. Two suggested solutions were allowing GUI developers to extend
  80. object model (ie GUITask extends Task) or to have Task as interface
  81. (ie GUITask implements Task). This way the GUI tasks could be W3C
  82. DOM Elements, have property vetoers/listeners etc.
  83. * support for numerous frontends - from command line over GUI to servlets
  84. corollary of the above?
  85. * Fully interpreted at runtime. This almost requires some form of
  86. abstraction/proxy that stands in place of tasks till it is
  87. interpreted. This can be hashtables/simple dom-like model/whatever
  88. * provide utility classes to aid in building tasks. ie like up-to-date
  89. functionality abstracted
  90. Need to become more specific here.
  91. * make ant-call a low cost operations so it can certain
  92. optional/template-like operations
  93. corollary of "fully interpreted at runtime"?
  94. * allow facilities to build projects from multiple sources. ie CSS+xml
  95. or XSLT+ XML or Velocity+text or database or from inside jars or normal
  96. build.xmls etc.
  97. allow the project tree to be built dynamically.
  98. * move to a system that allows docs to be generated - doc snippets
  99. should be included with the tasks they document.
  100. Which DTD? Which tools for generation?
  101. * allow tasks to be loaded from jars. tasks should be indicated by
  102. either xml file in TSK-INF/taskdefs.xml or manifest file.
  103. * allow documentation to be stored in .tsk jars
  104. corollary of the two points above?
  105. * better scripting/notification support so the hooks are available to
  106. send notifications at certain times.
  107. Which hooks and where?
  108. * separate tasks into .tsk jars somehow. (Probably via function - ie
  109. java tasks, file tasks, ejb tasks).
  110. Decide on categories.
  111. * make separate build files easy (ala AntFarm) and importing different
  112. projects a breeze
  113. * provide support for user defined task configurations - i.e. give
  114. users the ability to specify a default value for attributes (always
  115. use debug="true" in <javac> unless something else has been
  116. specified).
  117. Three ideas so far: a CSS like language, a <taskconfig> element,
  118. properties following a specific naming scheme.
  119. * support more control over the properties that are going to be passed
  120. to subprojects (modules)
  121. * Ask for a new CVS module for Ant tasks.
  122. We need to define rules for this to work - maybe the rules proposed
  123. for the commons project could give us a start.
  124. * It should be possible to modify details of the actual build (e.g. classpath,
  125. used compiler) without the need to change the build specification.
  126. Do build.compiler and build.sysclasspath cover everything or do we
  127. need to add more stuff like this?
  128. * Task to prompt for user input.
  129. Does affect core as we need a means to request input from the Frontend.
  130. * Add cvs login feature.
  131. Requires handling of user input.
  132. * Easier installation process. GUI - maybe webstart from the homepage.
  133. This includes asking the user whether he wants to use optional tasks
  134. and downloads the required libs. Automatic upgrades and so on.
  135. * Logo for Ant.
  136. * detach Ant from System.err/.in/.out.
  137. Beware of problems with spawned processes.
  138. * better subproject handling
  139. Whatever that means in detail.
  140. V. Things we probably don't agree on.
  141. ======================================================================
  142. * Allow mappers to be genericised so that particular features can be modified
  143. during mapping. Something similar to
  144. <fileset ...>
  145. <include name="*.sh"/>
  146. <mapper type="unix-permissions">
  147. <param name="user" value="ant"/>
  148. <param name="group" value="ant"/>
  149. <param name="mod" value="755"/>
  150. </mapper>
  151. </fileset>
  152. * Allow include/exclude tow work with multiple characteristerics of a file.
  153. ie include into fileset if file is readable, modified after 29th of Feb,
  154. has a name that matches patter "**/*.java" and the property "foo.present"
  155. is set. Something similar to
  156. <include>
  157. <item-filter type="name" value="**/*.java"/>
  158. <item-filter type="permission" value="r"/>
  159. <item-filter type="modify-time"
  160. operation="greater-than"
  161. value="29th Feb 2003"/>
  162. </include>
  163. 2003 is no leap year 8-)
  164. * provide datatypes through property tag and remove need for separate free
  165. standing entities. ie
  166. <property name="foo">
  167. <fileset dir="blah">
  168. <include name="*/**.java" />
  169. </fileset>
  170. </property>
  171. * make it possible to reuse taskengine for other things. ie
  172. Installshield type app, Peter's cron-server and other task based
  173. operations.
  174. * provide support for non-hardwired (ie loadable) low-level
  175. components (mappers/itemset-filters/converters). Allow them to be
  176. loaded in either global or a new classloader.
  177. * force resolution of classes on loading to identify classloader
  178. issues early. (At least in global classloader).
  179. * create the concept of workspace so that projects can be built in a
  180. DAG and thus enable projects like catalina/tomcat to have an easy
  181. build process. It also helps CJAN to a lesser degree and would
  182. partially solve the JARs in CVS thing.
  183. * provide support for CJAN
  184. Q: In what way?
  185. A: Probably by supplying a set of tasks that download versioned
  186. binaries and their associated dependencies, caching the downloads
  187. in a known place and updating binaries when required. ("When required"
  188. being indicated by a change in property values).
  189. * provide support for non-hardwired (ie loadable) converters.
  190. Q: What is a converter? Is this an implementation detail?
  191. A: Not an implementation detail but a way to extend the engine
  192. to convert more data types. Currently we have fixed set that is
  193. expanded on occasion (ie includes primitive types + File). Instead
  194. of spreading converting code through out tasks it can be centralized
  195. into one component and used by engine. This becomes particularly
  196. relevent if you build ant based testing systems and use ant in certain
  197. web-related areas.
  198. * generate docs by anakia/XSLT
  199. Corollary of "move to a system that allows docs to be generated"?
  200. * tasks provide some way to identify their attributes from the
  201. outside.
  202. Possible solutions include a special method like getProperties(), an
  203. external describing file shipping with the task class or special
  204. javadoc comments parsed by a custom doclet. Whatever the method it
  205. should not impose any cost on runtime as it is only used a small
  206. proportion of the time (design-time).
  207. * allow build file writers to modify logging (verbosity for example)
  208. on a target by target or task by task basis.
  209. * Simple flow control (if-then-else, for)
  210. * Multithreaded execution of tasks within the same target.
  211. * Multithreaded execution of targets.
  212. * Project inheritance
  213. What's this?
  214. * Target inheritance. ie The ability to include targets from other
  215. project files overidining them as necessary (so cascading project
  216. files).
  217. * Add an attribute to <ant> to feed back the environment (properties and
  218. taskdefs) from the child build to the parent.
  219. * Ability to manage scopping of properties in general (ie target/project/workspace).
  220. * it should be possible to provide general /(template?)/ build
  221. specifications, and to declare for a concrete item that it should be
  222. built according to such a general specification.
  223. * a built-in mechanism to include build-file fragments - something
  224. that doesn't use SYSTEM entities at all and therefore is XSchema
  225. friendly, allows for property expansions ...
  226. * Make loggers configurable via build.xml.
  227. * tasks should have access to its own XML representation.
  228. * Allow named tasks to be defined by <script> elements.
  229. * Let Ant ignore - but warn - if unknown XML elements or attributes
  230. occur in a build file.
  231. * Allow ant to farm out attributes and elements that are NOT in the ant
  232. namespace to other components. ie hand doc: elements to the Documentation
  233. component or log: attributes to Log policy component etc
  234. * specify an onfail task or target that runs in case of a build
  235. failure.
  236. * allow sequence to be specified in depends attribute or enhance
  237. antcall to work with current list of executed targets
  238. * Support nesting tasks into other elements - not just as children of
  239. target - as proposed by Thomas Christen in
  240. <http://marc.theaimsgroup.com/?l=ant-dev&m=98130655812010&w=2>.
  241. * Task level if and unless attributes.
  242. * Make all datatypes interfaces to allow them to be customized in many
  243. ways.
  244. * Allow tasks to find out, whether another task has completed successfully.
  245. * Make if/unless attributes to check for the value of a property, not
  246. only its existance.