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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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. * The <pvcs> task has been move to a package of its own.
  12. * JUnitResultFormater has two additional methods that must be
  13. implemented by custom formatters.
  14. Other changes:
  15. --------------
  16. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout
  17. * Ant now uses JAXP 1.1
  18. * rmic now supports Kaffe's and Weblogic's version of rmic.
  19. * new magic property build.rmic to chose the rmic implementation
  20. * <tar> will now add empty directories as well
  21. * you can now specify a description for <p4change>
  22. * <touch> can now work on <fileset>s
  23. * <uptodate> now supports a value attribute
  24. * <fail> supports nested text
  25. * <fixcrlf> won't override files that are already in the correct
  26. format.
  27. * <sql> now supports REM comments as well as // and --
  28. * <jar> now has a nested <metainf> element following the same idea as
  29. <war>'s <webinf>.
  30. * <pvcs> can now handle multiple projects.
  31. * <available> now has a "type" attribute you can use in conjunction
  32. with the "file" attribute to specify whether the "file" you're
  33. looking for is a file or a directory.
  34. * New <junit> formatter named "brief"
  35. * Add support for Borland Application Server to the <ejbjar> task using
  36. a <borland> nested element.
  37. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  38. includes some iPlanet utility tasks
  39. * Add support for JBoss Application Server to the <ejbjar> task.
  40. * Allow the SQL Delimiter to be set in the so that Oracle stored procs may be
  41. entered
  42. Fixed bugs:
  43. -----------
  44. * Testcases have been made independent of current working directory.
  45. * Input ZIP-Files will be closed when using a <zipfileset>.
  46. * p4 tasks now don't fail if user, port or client have been omitted
  47. (and this is acceptable for the context of the command).
  48. * <javah>'s outputfile attribute will be resolved as relative to the
  49. projects basedir.
  50. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  51. and omit tasks it fails to load.
  52. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  53. * <style>'s style attribute no handles absolute paths correctly.
  54. * <delete includeemptydirs="true"> now deletes more than just the leaf
  55. directories.
  56. * You can now specify a <fileset> for a directory that doesn't exist at
  57. declaration time but will created before the fileset gets used for the
  58. first time.
  59. * If the quiet attribute has been set, <delete> will handle <fileset>s
  60. with non-existing directories gracefully.
  61. * Output written by testcases will now be captured by the <junit> task
  62. and passed to the formatters.
  63. * Quote the -group parameter to Javadoc as per the specification
  64. * Initialise classes when loaded through the AntClassLoader - that is, run
  65. static initializers
  66. * Implement getResource() in AntClassLoader
  67. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  68. as a single line. Avoids problems with paths which contain spaces.
  69. * Make the AntClassLoader load resources in the same order as it currently
  70. loads classes
  71. * Allow DTD locations to be specified when building generic ejb-jars
  72. * Handle classpaths with spaces
  73. Changes from Ant 1.2 to Ant 1.3
  74. ===========================================
  75. Changes that could break older environments:
  76. --------------------------------------------
  77. * Ant doesn't search for the buildfile anymore, unless you use the new
  78. -find argument.
  79. * <perforce> has been replaced by a number of new tasks.
  80. * <javac> is now implemented using a factory. This makes extending
  81. javac to use a new compiler a lot easier but may break custom
  82. versions of this task that rely on the old implementation.
  83. * The output generated by the xml formatter for <junit> has changed a
  84. little, it doesn't append " sec" in the time attribute anymore.
  85. Other changes:
  86. --------------
  87. * A GUI Frontend: Antidote. This is currently in development. At this
  88. time, this is not part of the Ant release, although the source is
  89. included if you are interested.
  90. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  91. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  92. * Added output attribute to <java>.
  93. * Added nested zipfileset element to <zip>
  94. * Changed <sql> so that printing is at the task level rather than
  95. the statement level.
  96. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  97. given. If the doclet does not accept the -d flag then omit the destdir
  98. attribute.
  99. * <cab> can work on non-Windows platforms with the help of libcabinet.
  100. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  101. * <ftp> now supports passive mode.
  102. * New <mapper> data type that can be used to get influence on the
  103. target files for some tasks like <copy> or enable new types of tasks
  104. like <apply>.
  105. * <execon> provides more control over the command line now, the names
  106. of the source files are no longer required to be at the end of the
  107. command.
  108. * Style tasks will now support TraX compliant XSL processors if one is present
  109. in your classpath.
  110. * Added a failonerror to the javac task. If set to false, the build will
  111. continue even if there are compilation errors.
  112. * Added nested format elements to the tstamp task allowing additional time
  113. formats to be defined for arbitrary properties.
  114. * Added classpath attribute and nested classpath element to <property>
  115. to make the resource attribute more powerful.
  116. * ${} property expansion will now be performed on the patterns read
  117. from files specified as includesfile or excludesfile attributes.
  118. * The <tar> and <untar> tasks now support GNU format for handling paths
  119. which are greater than 100 characters in length. In addition the <tar>
  120. task now supports nested filesets through which the file permissions
  121. may be controlled.
  122. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  123. * The MPasre task has been updated to work with MParse 2.0
  124. * The documentation has been significantly updated.
  125. Fixed bugs:
  126. -----------
  127. * <signjar> doesn't use deprectated methods anymore.
  128. * javadoc's failonerror attribute works again
  129. * javadoc's additionalparam attribute will now be split into separate
  130. parameters (on spaces) to allow for more than one parameter.
  131. * Changed <sql> task so that printing result sets works on Oracle
  132. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  133. keppgenerated in ejbc can now be turned off
  134. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  135. CMP files are included by parsing the weblogic deployment descriptor rather
  136. than relying on the naming convention used in ant 1.2
  137. * ejbjar includes super classes and super interfaces into the generated ejb
  138. jar files. The <support> nested element allows support classes to be
  139. included in the EJB jar. The toplink element should now correctly locate
  140. the toplink descriptor.
  141. * <vssget> now correctly deals with spaces in arguments
  142. * <jar> fails early if a given manifest file doesn't exist
  143. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  144. set to 1.2.
  145. * <rmic> uses the the same classpath to verify a class can be rmic'd
  146. as it passes to the compiler.
  147. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  148. handle SMTP servers sending multi line responses.
  149. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  150. nested into <target> as well.
  151. * <property> and <available> will search for the resource "foo" instead
  152. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  153. name foo.
  154. * Handle build files in directories whose name contained a "#" character
  155. * <junit> can now log to files whose name contains a comma as well.
  156. * The AntClassLoader now refers to the loader which loaded it, any
  157. requests it does not handle itself. Previously these went to the
  158. primordial loader.
  159. Changes from Ant 1.1 to Ant 1.2
  160. ===============================
  161. Changes that could break older environments:
  162. --------------------------------------------
  163. * Semantics of <property> has changed again in the hope to be more
  164. intuitive. ${} expansion now happens at runtime and <property> tags
  165. living inside of targets only take effect if they are visited at
  166. runtime.
  167. As a side effect of this change, task's attributes get set at runtime
  168. not at parser time as well, which might change the results of
  169. <script>s or other custom tasks that reference other tasks by their id
  170. attribute.
  171. * copying of support files in <javac> has been removed - as well as
  172. the filtering attribute.
  173. * the <expand> and <keysubst> tasks have been removed.
  174. * the ignore and items attributes of directory based tasks have been removed.
  175. * the command line switches _not_ starting with - have been removed.
  176. * Path and EnumeratedAttribute have been moved from
  177. org.apache.tools.ant to org.apache.tools.ant.types.
  178. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  179. have been removed.
  180. * the src attribute of <chmod> has been removed.
  181. * <patch> and <javadoc> have lost some of their attributes.
  182. * <java> and <cvs> have lost some undocumented attributes.
  183. * the Unix antRun script would search for command.sh in the directory
  184. it changed to and invoke this instead of command if present. This
  185. behavior has been dropped.
  186. * <ejbjar> task syntax has been changed significantly
  187. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  188. Custom tasks that rely on Project.createTask("exec") to return an
  189. instance of this class are going to fail.
  190. * nested <include> and <exclude> elements expect the value of their
  191. name attribute to be a single pattern, they don't accept multiple
  192. patterns anymore. Split them into multiple elements of the same type.
  193. * <delete dir="somedir" /> will now delete the directory itself as
  194. well as all included files. If you just want to clean out the
  195. directory and keep the empty one, use a nested fileset.
  196. Other changes:
  197. --------------
  198. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  199. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  200. native2ascii, copy, move, mparse.
  201. * copydir, copyfile, deltree and rename are now deprecated. They
  202. should be replaced with the new copy, delete and move tasks.
  203. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  204. specified.
  205. * <style> will create the necessary target directories and reprocess
  206. all files if the stylesheet changes.
  207. * New data types fileset and patternset - expected to get a broader use.
  208. They, as well as PATH like structures, can now be defined on a global
  209. level and later be referenced by their id attribute.
  210. * You can specify environment variables to <exec>.
  211. * <get> can check whether a remote file is actually newer than a local
  212. copy before it starts a download (HTTP only).
  213. * Added a -logger option to allow the class which performs logging to be
  214. specified on the command line.
  215. * Added a -emacs option to tell the logger to leave out taskname adornments
  216. on log output.
  217. * <chmod> works on all files in parallel and supports multiple filesets.
  218. * <replace> can now use tokens and/or values that cross line boundaries.
  219. * build.compiler supports now jvc as well.
  220. * project specific help can now be obtained with the -projecthelp option.
  221. * Added a -debug option to make -verbose less verbose (and more useful)
  222. * Ant will now search for a file named build.xml in the parent directory
  223. and above (towards the root of the filesystem) if you didn't specify
  224. -buildfile and there is no build.xml in the current directory.
  225. * <echo> can now write to a file and accepts nested text.
  226. Fixed bugs:
  227. -----------
  228. * <chmod> didn't work when used as a directory based task.
  229. * Path, Available, Property didn't resolve relative filenames with
  230. respect to the Project's basedir.
  231. * Project didn't interpret the basedir attribute correctly in all
  232. cases.
  233. * Nested <src> in <javac> caused NullPointerException.
  234. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  235. * many more fixes we've forgotten to document here ...