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

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