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

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