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

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