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.

WHATSNEW 17 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. Changes from Ant 1.3 to CVS Version
  2. ===========================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * Zip.setWhenempty() has changed its signature.
  6. * <rmic> is now implemented using a factory. This makes extending
  7. rmic to use a new compiler a lot easier but may break custom
  8. versions of this task that rely on the old implementation.
  9. * several Zip methods have changed their signature as we now use a Zip
  10. package of our own that handles Unix permissions for directories.
  11. Furthermore <zip> will now use the platform's default character
  12. encoding for filenames - this is consistent with the command line
  13. ZIP tools, but causes problems if you try to open them from within
  14. Java and your filenames contain non US-ASCII characters. Use the new
  15. encoding attribute of the task and set it to UTF8 to get the old
  16. behavior.
  17. * The <pvcs> task has been move to a package of its own.
  18. * JUnitResultFormater has two additional methods that must be
  19. implemented by custom formatters.
  20. * Ant will no longer use the canonical version of a path internally -
  21. this may yield different results on filesystems that support
  22. symbolic links.
  23. * The output generated by the xml formatter for <junit> has changed
  24. again, it doesn't format the numeric value in the time attribute anymore.
  25. * Pattern matching rules have changes slightly, the pattern foo*
  26. doesn't match files contained in a directory named foo - use foo/*
  27. instead.
  28. Other changes:
  29. --------------
  30. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  31. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset
  32. * Ant now uses JAXP 1.1
  33. * rmic now supports Kaffe's and Weblogic's version of rmic.
  34. * new magic property build.rmic to chose the rmic implementation
  35. * <tar> will now add empty directories as well
  36. * you can now specify a description for <p4change>
  37. * <touch> can now work on <fileset>s
  38. * <uptodate> now supports a value attribute
  39. * <fail> supports nested text
  40. * <fixcrlf> won't override files that are already in the correct
  41. format.
  42. * <sql> now supports REM comments as well as // and --
  43. * <jar> now has a nested <metainf> element following the same idea as
  44. <war>'s <webinf>.
  45. * <pvcs> can now handle multiple projects.
  46. * <available> now has a "type" attribute you can use in conjunction
  47. with the "file" attribute to specify whether the "file" you're
  48. looking for is a file or a directory.
  49. * New <junit> formatter named "brief"
  50. * Add support for Borland Application Server to the <ejbjar> task using
  51. a <borland> nested element.
  52. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  53. includes some iPlanet utility tasks
  54. * Add support for JBoss Application Server to the <ejbjar> task.
  55. * Add a naming attribute to <ejbjar> to control the naming scheme that
  56. ejbjar uses to name the generated EJB jars.
  57. * Allow the SQL Delimiter to be set in the so that Oracle stored procs may be
  58. entered
  59. * <execon> and <apply> can now optionally skip empty filesets.
  60. * <javadoc> has a new useexternalfile attribute that makes it use a
  61. temporary file for sourcefile and package names - helps to defeat
  62. command line length limitations.
  63. * Data types like <path> can now be defined inside of <target>s
  64. * you can now specify a classpath for <style> - the XSLZ processor
  65. will be loaded from this path
  66. * added a force attribute to <style> to support dependencies that the
  67. task cannot determine itself (dependency on parameters, not file
  68. modification times for example)
  69. * added vmlauncher attribute to exec tasks. This defaults to true. If
  70. it is set to false, the VM's ability to launch commands in bypassed
  71. and the OS shell, either directly or through the auxillary antRun
  72. scripts is used.
  73. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  74. * New filesonly attribute for <zip> and friends to suppress directory
  75. entries.
  76. * New update attribute for <zip> and friends - update an existing
  77. archive instead of creating a new one.
  78. * <apply> and <execon> have been merged into a single task.
  79. * added vssver.scc to the default excludes
  80. * <available> has a new filepath attribute/nested element that allows
  81. you top search for a file in a given path.
  82. * <junit> can now optionally set a property on test failure.
  83. * <taskdef> can now define several tasks at once, reading the
  84. name/classname pairs from a property file or resource.
  85. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  86. defaults to true. If set to false, files that are newer than the
  87. files in the archive will not be replaced.
  88. * <patternset> and <fileset> now support nested <in/excludesfile>
  89. elements - using these you can have more than one in/excludes file
  90. per <patternset>.
  91. * Three new supported compilers for javac: kjc for kopi, gcj for the
  92. gcc frontend and sj for Symantec's compiler.
  93. In addition extJavac or the new fork attribute can be
  94. used to run the JDK's javac in a JVM separate from Ant.
  95. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  96. between 2 and 80.
  97. Fixed bugs:
  98. -----------
  99. * Testcases have been made independent of current working directory.
  100. * Input ZIP-Files will be closed when using a <zipfileset>.
  101. * p4 tasks now don't fail if user, port or client have been omitted
  102. (and this is acceptable for the context of the command).
  103. * <javah>'s outputfile attribute will be resolved as relative to the
  104. projects basedir.
  105. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  106. and omit tasks it fails to load.
  107. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  108. * <style>'s style attribute no handles absolute paths correctly.
  109. * <delete includeemptydirs="true"> now deletes more than just the leaf
  110. directories.
  111. * You can now specify a <fileset> for a directory that doesn't exist at
  112. declaration time but will created before the fileset gets used for the
  113. first time.
  114. * If the quiet attribute has been set, <delete> will handle <fileset>s
  115. with non-existing directories gracefully.
  116. * Output written by testcases will now be captured by the <junit> task
  117. and passed to the formatters.
  118. * Quote the -group parameter to Javadoc as per the specification
  119. * Initialise classes when loaded through the AntClassLoader - that is, run
  120. static initializers
  121. * Implement getResource() and getResources() in AntClassLoader
  122. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  123. as a single line. Avoids problems with paths which contain spaces.
  124. * Make the AntClassLoader load resources in the same order as it currently
  125. loads classes.
  126. * Allow DTD locations to be specified when building generic ejb-jars
  127. * Handle classpaths with spaces
  128. * Make sure XSLT processors close their output files in <style>.
  129. * perform proper uptodate check in <rmic> when compiling for IIOP.
  130. * <jjtree>'s uptodate test works even if outputdirectory is not the
  131. parent dir of target
  132. * <copy> will remove target file (if it exists) before writing to it -
  133. this avoids problems with links on filesystems that support them.
  134. * <ftp> now properly recurses remote directories.
  135. * <ftp> closes remote connection when it's done.
  136. * <junit> tries to include all necessary classes for the task itself
  137. to the classpath when running in fork mode - doesn't work for JDK 1.1
  138. * <apply> and <execon> do now execute the command only once, if you
  139. specify the parallel attribute - instead of once per fileset.
  140. * directory based tasks and fileset could miss some included files in
  141. directories that have been excluded
  142. * <fixcrl> failed for large files.
  143. Changes from Ant 1.2 to Ant 1.3
  144. ===========================================
  145. Changes that could break older environments:
  146. --------------------------------------------
  147. * Ant doesn't search for the buildfile anymore, unless you use the new
  148. -find argument.
  149. * <perforce> has been replaced by a number of new tasks.
  150. * <javac> is now implemented using a factory. This makes extending
  151. javac to use a new compiler a lot easier but may break custom
  152. versions of this task that rely on the old implementation.
  153. * The output generated by the xml formatter for <junit> has changed a
  154. little, it doesn't append " sec" in the time attribute anymore.
  155. Other changes:
  156. --------------
  157. * A GUI Frontend: Antidote. This is currently in development. At this
  158. time, this is not part of the Ant release, although the source is
  159. included if you are interested.
  160. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  161. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  162. * Added output attribute to <java>.
  163. * Added nested zipfileset element to <zip>
  164. * Changed <sql> so that printing is at the task level rather than
  165. the statement level.
  166. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  167. given. If the doclet does not accept the -d flag then omit the destdir
  168. attribute.
  169. * <cab> can work on non-Windows platforms with the help of libcabinet.
  170. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  171. * <ftp> now supports passive mode.
  172. * New <mapper> data type that can be used to get influence on the
  173. target files for some tasks like <copy> or enable new types of tasks
  174. like <apply>.
  175. * <execon> provides more control over the command line now, the names
  176. of the source files are no longer required to be at the end of the
  177. command.
  178. * Style tasks will now support TraX compliant XSL processors if one is present
  179. in your classpath.
  180. * Added a failonerror to the javac task. If set to false, the build will
  181. continue even if there are compilation errors.
  182. * Added nested format elements to the tstamp task allowing additional time
  183. formats to be defined for arbitrary properties.
  184. * Added classpath attribute and nested classpath element to <property>
  185. to make the resource attribute more powerful.
  186. * ${} property expansion will now be performed on the patterns read
  187. from files specified as includesfile or excludesfile attributes.
  188. * The <tar> and <untar> tasks now support GNU format for handling paths
  189. which are greater than 100 characters in length. In addition the <tar>
  190. task now supports nested filesets through which the file permissions
  191. may be controlled.
  192. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  193. * The MPasre task has been updated to work with MParse 2.0
  194. * The documentation has been significantly updated.
  195. Fixed bugs:
  196. -----------
  197. * <signjar> doesn't use deprectated methods anymore.
  198. * javadoc's failonerror attribute works again
  199. * javadoc's additionalparam attribute will now be split into separate
  200. parameters (on spaces) to allow for more than one parameter.
  201. * Changed <sql> task so that printing result sets works on Oracle
  202. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  203. keppgenerated in ejbc can now be turned off
  204. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  205. CMP files are included by parsing the weblogic deployment descriptor rather
  206. than relying on the naming convention used in ant 1.2
  207. * ejbjar includes super classes and super interfaces into the generated ejb
  208. jar files. The <support> nested element allows support classes to be
  209. included in the EJB jar. The toplink element should now correctly locate
  210. the toplink descriptor.
  211. * <vssget> now correctly deals with spaces in arguments
  212. * <jar> fails early if a given manifest file doesn't exist
  213. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  214. set to 1.2.
  215. * <rmic> uses the the same classpath to verify a class can be rmic'd
  216. as it passes to the compiler.
  217. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  218. handle SMTP servers sending multi line responses.
  219. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  220. nested into <target> as well.
  221. * <property> and <available> will search for the resource "foo" instead
  222. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  223. name foo.
  224. * Handle build files in directories whose name contained a "#" character
  225. * <junit> can now log to files whose name contains a comma as well.
  226. * The AntClassLoader now refers to the loader which loaded it, any
  227. requests it does not handle itself. Previously these went to the
  228. primordial loader.
  229. Changes from Ant 1.1 to Ant 1.2
  230. ===============================
  231. Changes that could break older environments:
  232. --------------------------------------------
  233. * Semantics of <property> has changed again in the hope to be more
  234. intuitive. ${} expansion now happens at runtime and <property> tags
  235. living inside of targets only take effect if they are visited at
  236. runtime.
  237. As a side effect of this change, task's attributes get set at runtime
  238. not at parser time as well, which might change the results of
  239. <script>s or other custom tasks that reference other tasks by their id
  240. attribute.
  241. * copying of support files in <javac> has been removed - as well as
  242. the filtering attribute.
  243. * the <expand> and <keysubst> tasks have been removed.
  244. * the ignore and items attributes of directory based tasks have been removed.
  245. * the command line switches _not_ starting with - have been removed.
  246. * Path and EnumeratedAttribute have been moved from
  247. org.apache.tools.ant to org.apache.tools.ant.types.
  248. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  249. have been removed.
  250. * the src attribute of <chmod> has been removed.
  251. * <patch> and <javadoc> have lost some of their attributes.
  252. * <java> and <cvs> have lost some undocumented attributes.
  253. * the Unix antRun script would search for command.sh in the directory
  254. it changed to and invoke this instead of command if present. This
  255. behavior has been dropped.
  256. * <ejbjar> task syntax has been changed significantly
  257. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  258. Custom tasks that rely on Project.createTask("exec") to return an
  259. instance of this class are going to fail.
  260. * nested <include> and <exclude> elements expect the value of their
  261. name attribute to be a single pattern, they don't accept multiple
  262. patterns anymore. Split them into multiple elements of the same type.
  263. * <delete dir="somedir" /> will now delete the directory itself as
  264. well as all included files. If you just want to clean out the
  265. directory and keep the empty one, use a nested fileset.
  266. Other changes:
  267. --------------
  268. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  269. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  270. native2ascii, copy, move, mparse.
  271. * copydir, copyfile, deltree and rename are now deprecated. They
  272. should be replaced with the new copy, delete and move tasks.
  273. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  274. specified.
  275. * <style> will create the necessary target directories and reprocess
  276. all files if the stylesheet changes.
  277. * New data types fileset and patternset - expected to get a broader use.
  278. They, as well as PATH like structures, can now be defined on a global
  279. level and later be referenced by their id attribute.
  280. * You can specify environment variables to <exec>.
  281. * <get> can check whether a remote file is actually newer than a local
  282. copy before it starts a download (HTTP only).
  283. * Added a -logger option to allow the class which performs logging to be
  284. specified on the command line.
  285. * Added a -emacs option to tell the logger to leave out taskname adornments
  286. on log output.
  287. * <chmod> works on all files in parallel and supports multiple filesets.
  288. * <replace> can now use tokens and/or values that cross line boundaries.
  289. * build.compiler supports now jvc as well.
  290. * project specific help can now be obtained with the -projecthelp option.
  291. * Added a -debug option to make -verbose less verbose (and more useful)
  292. * Ant will now search for a file named build.xml in the parent directory
  293. and above (towards the root of the filesystem) if you didn't specify
  294. -buildfile and there is no build.xml in the current directory.
  295. * <echo> can now write to a file and accepts nested text.
  296. Fixed bugs:
  297. -----------
  298. * <chmod> didn't work when used as a directory based task.
  299. * Path, Available, Property didn't resolve relative filenames with
  300. respect to the Project's basedir.
  301. * Project didn't interpret the basedir attribute correctly in all
  302. cases.
  303. * Nested <src> in <javac> caused NullPointerException.
  304. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  305. * many more fixes we've forgotten to document here ...
  306. * The packagelistloc attribute of <javadoc>'s <link> child will be
  307. resolved as a file (i.e. it is either absolute or relative to
  308. basedir).