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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. Changes from Ant 1.2 to Ant 1.3 Beta 2
  2. ===========================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * Ant doesn't search for the buildfile anymore, unless you use the new
  6. -find argument.
  7. * <perforce> has been replaced by a number of new tasks.
  8. * <javac> is now implemented using a factory. This makes extending
  9. javac to use a new compiler a lot easier but may break custom
  10. versions of this task that rely on the old implementation.
  11. * The output generated by the xml formatter for <junit> has changed a
  12. little, it doesn't append " sec" in the time attribute anymore.
  13. Other changes:
  14. --------------
  15. * A GUI Frontend: Antidote. This is currently in development. At this
  16. time, this is not part of the Ant release, although the source is
  17. included if you are interested.
  18. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  19. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  20. * Added output attribute to <java>.
  21. * Added nested zipfileset element to <zip>
  22. * Changed <sql> so that printing is at the task level rather than
  23. the statement level.
  24. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  25. given. If the doclet does not accept the -d flag then omit the destdir
  26. attribute.
  27. * <cab> can work on non-Windows platforms with the help of libcabinet.
  28. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  29. * <ftp> now supports passive mode.
  30. * New <mapper> data type that can be used to get influence on the
  31. target files for some tasks like <copy> or enable new types of tasks
  32. like <apply>.
  33. * <execon> provides more control over the command line now, the names
  34. of the source files are no longer required to be at the end of the
  35. command.
  36. * Style tasks will now support TraX compliant XSL processors if one is present
  37. in your classpath.
  38. * Added a failonerror to the javac task. If set to false, the build will
  39. continue even if there are compilation errors.
  40. * Added nested format elements to the tstamp task allowing additional time
  41. formats to be defined for arbitrary properties.
  42. * Added classpath attribute and nested classpath element to <property>
  43. to make the resource attribute more powerful.
  44. * ${} property expansion will now be performed on the patterns read
  45. from files specified as includesfile or excludesfile attributes.
  46. * The <tar> and <untar> tasks now support GNU format for handling paths
  47. which are greater than 100 characters in length. In addition the <tar>
  48. task now supports nested filesets through which the file permissions
  49. may be controlled.
  50. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  51. * The MPasre task has been updated to work with MParse 2.0
  52. * The documentation has been significantly updated.
  53. Fixed bugs:
  54. -----------
  55. * <signjar> doesn't use deprectated methods anymore.
  56. * javadoc's failonerror attribute works again
  57. * Changed <sql> task so that printing result sets works on Oracle
  58. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  59. keppgenerated in ejbc can now be turned off
  60. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  61. CMP files are included by parsing the weblogic deployment descriptor rather
  62. than relying on the naming convention used in ant 1.2
  63. * ejbjar includes super classes and super interfaces into the generated ejb
  64. jar files. The <support> nested element allows support classes to be
  65. included in the EJB jar. The toplink element should now correctly locate
  66. the toplink descriptor.
  67. * <vssget> now correctly deals with spaces in arguments
  68. * <jar> fails early if a given manifest file doesn't exist
  69. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  70. set to 1.2.
  71. * <rmic> uses the the same classpath to verify a class can be rmic'd
  72. as it passes to the compiler.
  73. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  74. handle SMTP servers sending multi line responses.
  75. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  76. nested into <target> as well.
  77. * <property> and <available> will search for the resource "foo" instead
  78. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  79. name foo.
  80. * Handle build files in directories whose name contained a "#" character
  81. * <junit> can now log to files whose name contains a comma as well.
  82. * The AntClassLoader now refers to the loader which loaded it, any
  83. requests it does not handle itself. Previously these went to the
  84. primordial loader.
  85. Changes from Ant 1.1 to Ant 1.2
  86. ===============================
  87. Changes that could break older environments:
  88. --------------------------------------------
  89. * Semantics of <property> has changed again in the hope to be more
  90. intuitive. ${} expansion now happens at runtime and <property> tags
  91. living inside of targets only take effect if they are visited at
  92. runtime.
  93. As a side effect of this change, task's attributes get set at runtime
  94. not at parser time as well, which might change the results of
  95. <script>s or other custom tasks that reference other tasks by their id
  96. attribute.
  97. * copying of support files in <javac> has been removed - as well as
  98. the filtering attribute.
  99. * the <expand> and <keysubst> tasks have been removed.
  100. * the ignore and items attributes of directory based tasks have been removed.
  101. * the command line switches _not_ starting with - have been removed.
  102. * Path and EnumeratedAttribute have been moved from
  103. org.apache.tools.ant to org.apache.tools.ant.types.
  104. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  105. have been removed.
  106. * the src attribute of <chmod> has been removed.
  107. * <patch> and <javadoc> have lost some of their attributes.
  108. * <java> and <cvs> have lost some undocumented attributes.
  109. * the Unix antRun script would search for command.sh in the directory
  110. it changed to and invoke this instead of command if present. This
  111. behavior has been dropped.
  112. * <ejbjar> task syntax has been changed significantly
  113. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  114. Custom tasks that rely on Project.createTask("exec") to return an
  115. instance of this class are going to fail.
  116. * nested <include> and <exclude> elements expect the value of their
  117. name attribute to be a single pattern, they don't accept multiple
  118. patterns anymore. Split them into multiple elements of the same type.
  119. * <delete dir="somedir" /> will now delete the directory itself as
  120. well as all included files. If you just want to clean out the
  121. directory and keep the empty one, use a nested fileset.
  122. Other changes:
  123. --------------
  124. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  125. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  126. native2ascii, copy, move, mparse.
  127. * copydir, copyfile, deltree and rename are now deprecated. They
  128. should be replaced with the new copy, delete and move tasks.
  129. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  130. specified.
  131. * <style> will create the necessary target directories and reprocess
  132. all files if the stylesheet changes.
  133. * New data types fileset and patternset - expected to get a broader use.
  134. They, as well as PATH like structures, can now be defined on a global
  135. level and later be referenced by their id attribute.
  136. * You can specify environment variables to <exec>.
  137. * <get> can check whether a remote file is actually newer than a local
  138. copy before it starts a download (HTTP only).
  139. * Added a -logger option to allow the class which performs logging to be
  140. specified on the command line.
  141. * Added a -emacs option to tell the logger to leave out taskname adornments
  142. on log output.
  143. * <chmod> works on all files in parallel and supports multiple filesets.
  144. * <replace> can now use tokens and/or values that cross line boundaries.
  145. * build.compiler supports now jvc as well.
  146. * project specific help can now be obtained with the -projecthelp option.
  147. * Added a -debug option to make -verbose less verbose (and more useful)
  148. * Ant will now search for a file named build.xml in the parent directory
  149. and above (towards the root of the filesystem) if you didn't specify
  150. -buildfile and there is no build.xml in the current directory.
  151. * <echo> can now write to a file and accepts nested text.
  152. Fixed bugs:
  153. -----------
  154. * <chmod> didn't work when used as a directory based task.
  155. * Path, Available, Property didn't resolve relative filenames with
  156. respect to the Project's basedir.
  157. * Project didn't interpret the basedir attribute correctly in all
  158. cases.
  159. * Nested <src> in <javac> caused NullPointerException.
  160. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  161. * many more fixes we've forgotten to document here ...