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

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