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

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