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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987
  1. Changes from Ant 1.4.1 to current CVS version
  2. ==============================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * Important: Single $ signs are no longer silently stripped!
  6. Before you panic that we have broken all your build files, we have kept
  7. the old "$$" -> "$" behaviour. So only build files which accidentally had
  8. a $ sign in a string that was being silently stripped may break.
  9. We added this fix to stop newbie confusion; if you want to write a
  10. build file which works on ant versions 1.4.1 or earlier, stay with
  11. the double $$ sign rule.
  12. * Shipped XML parser is now Xerces 2.0.1 along with the XML Parser APIs.
  13. XML Parser APIs is a separate jar that contains the necessary
  14. JAXP/DOM/SAX classes.
  15. * <telnet> was fixed to expand properties inside nested <read> and
  16. <write> elements; before this only happened when you assigned the text
  17. to the string attribute. If you had $ signs in the string, they may
  18. need escaping.
  19. * the RegexpMatcher interface has been extended to support case
  20. insensitive matches and other options - custom implementations of
  21. this interface won't work any longer. We recommend to use the new
  22. Regexp interface that also supports substitution instead of the
  23. RegexpMatcher interface in the future.
  24. * <gzip> will throw an exception if your src attribute points to a directory.
  25. * Unjar, Unzip and Unwar will throw an exception if the Src attribute
  26. represents a directory. Support for nested filesets is provided
  27. instead.
  28. * It is no longer possible to overwrite a property using tasks like
  29. <condition>, <exec>, <pathconvert>, or <tstamp>. In some exceptional
  30. cases it will generate a warning if you attempt to overwrite an
  31. existing property.
  32. * Taskwriters please note: Whenever tasks had any overloaded set* methods,
  33. Ant's introspection mechanism would select the last overloaded method
  34. provided to it by the Java Runtime. A modification has now been made such
  35. that when the Java Runtime provides a method with a String as its argument,
  36. a check is made to see if there is another overloaded method that takes in
  37. some other type of argument. If there is one such method, then the method
  38. that takes in String as an argument is not selected by the Introspector.
  39. * The pattern definition **/._* has been included into the Default
  40. Excludes list.
  41. * <propertyfile>'s <entry> element was modified to remove "never" as a value
  42. as its behavior was undocumented and flakey.
  43. * The -projecthelp flag now only prints out targets that include the
  44. 'description' attribute, unless the -verbose or -debug flag is included
  45. on the Ant command line.
  46. * Ant's testcases now require JUnit 3.7 or above, as they now use the new
  47. assertTrue method instead of assert.
  48. * If the 'output' attribute of <ant> is set to a simple filename or a
  49. relative path, the file is created relative to ${basedir}, not ${user.dir}.
  50. * The default value for build.compiler is now javac1.x with x
  51. depending on the JDK that is running Ant instead of classic/modern.
  52. Fixed bugs:
  53. -----------
  54. * A bug existed that prevented generated log files from being deleted as
  55. part of the build process itself. This has now been fixed.
  56. * Fixed bug where <move> ignored <filterset>s.
  57. * Ant works properly with the combination of Java1.4/WindowsXP.
  58. * Fixed bug where <java> used to sometimes invoke class constructors twice.
  59. * Fixed bug with 4NT shell support.
  60. * Fixed bug where ant would not perform ftp without remotedir being
  61. specified even though this was not mandatory.
  62. * Fixed bug where ant would not copy system properties into new Project
  63. in ant/antcall tasks when inheritall="false" is set.
  64. * <propertyfile> would not close the original property file.
  65. * <ant> will no longer override a subbuild's basedir with inheritall="true".
  66. * Fixed problem with the built-in <junit> formatters which assumed
  67. that only one test could be running at the same time - this is not
  68. necessarily true, see junit.extensions.ActiveTestSuite.
  69. * <jar>'s whenEmpty attribute is useless as JARs are never empty, they
  70. contain at least a manifest file, therefore it will now print a
  71. warning and do nothing.
  72. * <typedef> hasn't been all that useful as it couldn't be used outside
  73. of targets (it can now) and nested "unknown" elements have always
  74. been considered to be tasks (changed as well).
  75. * <fixcrlf> would fail for files that contained lines longer than 8kB.
  76. * Some junit formatters incorrectly assumed that all testcases would
  77. inherit from junit.framework.TestCase.
  78. * <fixcrlf> dropped the first characters from Mac files.
  79. Other changes:
  80. --------------
  81. * New optional type, <classfileset> added.
  82. * <ejbjar> now allows control over which additional classes and interfaces
  83. are added to the generated EJB jars. A new attribute "dependency" can be
  84. defines which classes are added. The addition of classes now uses
  85. the Jakarta-BCEL library rather than reflection, meaning bean classes are
  86. no longer loaded into Ant's JVM.
  87. * <available> has a new attribute named ignoreSystemClasses.
  88. * New task <cvschangelog/> generates an XML report of changes that occur
  89. on CVS repository.
  90. * New filter readers: ClassConstants, ExpandProperties, HeadFilter,
  91. LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens,
  92. StripJavaComments, StripLineBreaks, StripLineComments, TabsToSpaces,
  93. TailFilter.
  94. * <copy>, <loadfile>, <loadproperties>, <move> support FilterChains
  95. of FilterReaders.
  96. * New task <loadproperties> to load contents of file as Ant properties,
  97. with nested <filterchain> elements.
  98. * New task <loadfile> to load a whole file into a property.
  99. * New task <echoproperties> to list your current properties to the screen
  100. or a file.
  101. * New tasks <bzip2> and <bunzip2> to pack and unpack files using the
  102. BZip2 alogrithm.
  103. * New tasks <replaceregexp>, <checksum>, <translate>, <waitfor>,
  104. <manifest>, <vsscp>, <vssadd>, <vsscreate>, <splash>, <basename>, <dirname>,
  105. <concat>.
  106. * A new combined <mail> task, which replaces the old <mail> and
  107. <mimemail> tasks, has been added. The <mimemail> task, and
  108. old SendEmail and MimeMail classes have been deprecated.
  109. * Mail task allows specification of port number.
  110. * Users can control what <zip> and <jar> must do when duplicate files
  111. are found. A new element <zipgroupfileset> allows for multiple zip
  112. files to be merged into the archive. In addition, <jar> also has
  113. another new attribute: filesetmanifest. The existing manifest
  114. attribute of <jar> now also accepts the name of a jar added through
  115. a fileset.
  116. * gzip now checks that the zipfile is older than the source file
  117. before rebuilding the zipfile.
  118. * TarFileset takes in three new attributes - fullpath, prefix
  119. and preserveLeadingSlashes.
  120. * <move> attempts to rename the directory, if everything inside it is
  121. included, before performing file-by-file moves. This attempt will
  122. be done only if filtering is off and if mappers are not used. This
  123. is a performance improvement and there is no change otherwise in
  124. the funtionality of this task.
  125. * Exec task has extra attribute "resultproperty" to get the return code
  126. into a property.
  127. * Exec task prints a message when a timed-out process is killed.
  128. * Added optional attributes - name, arch and version to the <os> task.
  129. * Unjar, Untar, Unwar and Unzip now support patternsets to
  130. select files from an archive for extraction. Filesets may be
  131. used to select archived files for unarchival.
  132. * Javac task allows debug levels to be specified. Debug levels
  133. will have an effect only when the modern compiler or the
  134. classic compiler (version 1.2 and higher) is used and debugging
  135. is enabled.
  136. * Added support for specifying CVS_RSH in the <cvs/> task
  137. * The attributes zipfile, jarfile, warfile and earfile (from the Zip,
  138. Jar, War and Ear tasks) have been deprecated and superseded by a
  139. new attribute "destfile".
  140. * Added new conditions <isset>, <checksum>, <http>, <socket>, <contains>,
  141. <filesmatch>.
  142. * <taskdef> and <typedef> will now emit a warning if a task/type of
  143. the given name already exists.
  144. * A new revision of VAJ tasks: The most important new feature
  145. is the ability to execute VAJ tasks from the command line by
  146. exploiting the Remote Tool Access feature of VAJ.
  147. * Improved support for Novell NetWare.
  148. * Added an optional encoding attribute to <fixcrlf>.
  149. * <apply> has a new attribute relative that allows users to pass the
  150. filenames as relative instead of absolute paths on the command line.
  151. * References can now be copied into the child build by <ant> and
  152. <antcall> using nested <reference> elements or the new inheritRefs
  153. attribute.
  154. * <fail> now supports builds to fail based on conditions via if and
  155. unless attributes.
  156. * Ant now comes with two new BuildLogger implementations - one that
  157. can send emails containing a log of the build process (MailLogger),
  158. and one that colorizes the output based on message levels, using
  159. ANSI color code escape sequences (AnsiColorLogger).
  160. * A "package" mapper type has been added to allow package directory
  161. names replaced with the dotted form.
  162. * You can now specify environment variables in the <java> and <junit> tasks
  163. if the fork attribute has been set to true.
  164. * -propertyfile command-line option has been added to load an entire
  165. property file just as -D properties are declared (as user properties).
  166. -D properties take precedence over -propertyfile specified ones.
  167. * You can now set an ANT_ARGS environment variable to hold arguments you
  168. always want passed to the 'ant' command -- for example, if you always
  169. want to use a different logger or the -find flag.
  170. * <tstamp> now supports a new "prefix" attribute to prefix properties set.
  171. * You can now specify the -sourcepath for <javac> explicitly.
  172. * <javac> now supports a new "listfiles" attribute to list the source
  173. files it's handing off to the compiler.
  174. * The compiler implementation for <javac> can now be chosen on a task by
  175. task basis. The new "compiler" attribute of <javac> can be used to override
  176. the value of the build.compiler property, if set.
  177. * <javac> has a new nested element, <compilerarg>, which allows you
  178. to specify additional args for the specific compiler you're using.
  179. * <javac>'s "source" attribute is now enabled for jikes as well.
  180. * <propertyfile>'s <entry> now has a 'unit' attribute to specify the
  181. increment/decrement unit on date operations.
  182. * <property> now supports a 'prefix' attribute when loading from a file
  183. or resource.
  184. * In Ant 1.4, a feature has been added to the <junit> task that would
  185. add ant.jar, optional.jar and junit.jar implicitly to the classpath -
  186. this feature can now be disabled by setting the new includeantruntime
  187. attribute to false.
  188. * <style> behaves differently from any other directory-based task, as it
  189. processes all files that it finds in included directories in
  190. addition to the files matched by your patterns. There is now a new
  191. attribute, 'scanincludeddirectories', to suppress this behavior.
  192. * <javadoc> now supports a <tag> nested element to provide the -tag option
  193. to the standard Java 1.4 doclet. The element is ignored when not running
  194. on Java 1.4.
  195. * <ftp> can now chmod files on a remote server that supports
  196. "site chmod", as well as set the umask before transferring files, if
  197. the server supports "site umask".
  198. * New <serverdeploy> "optional" task.
  199. * <patternset> now supports nested patternsets.
  200. * Perforce tasks now support a "failonerror" attribute (defaults to "true").
  201. * Open Source application server JOnAS support:
  202. EJB hot deploy and deploy with <serverdeploy> and <ejbjar>
  203. * Added new DirSet (<dirset>) datatype.
  204. * <path> now supports nested <dirset> and <filelist> elements.
  205. * <pathconvert> now supports nested <dirset> and <filelist> elements.
  206. * <pathconvert>'s "dirsep" and "pathsep" attributes now accept
  207. multi-character values.
  208. * <copy> task now has a 'failonerror' attribute to allow keep-going
  209. behaviour when the file to be copied is not found (defaults to "true").
  210. * <uptodate> now has a 'srcfile' attribute to allow specifying a
  211. full-path filename.
  212. * <exec>, <sql> and <java> now support append attributes to allow
  213. appending the output to an existing file.
  214. * <java> now supports a timeout attribute analog to <exec> - it is
  215. highly recommended to only use it together with fork="true".
  216. * <javadoc> now supports a source attribute to enable javadoc to
  217. handle assertions present in JDK 1.4 source code.
  218. * <replace> supports a new replacefilterfile attribute that
  219. automatically turns all properties of a given file into
  220. replacefilters.
  221. * An alias of <xslt> has been added to refer to the <style> task.
  222. * The compiler implementation for <rmic> can now be chosen on a task by
  223. task basis. The new "compiler" attribute of <rmic> can be used to override
  224. the value of the build.rmic property, if set.
  225. * <rmic> has a new nested element, <compilerarg>, which allows you
  226. to specify additional args for the specific compiler you're using.
  227. * org.apache.tools.ant.XmlLogger now is a BuildLogger, rather than just
  228. a BuildListener. It can operate in either mode successfully.
  229. * <junit> has a new attribute "showoutput". If set to true, output
  230. generated by tests will be sent to Ant's logging system as well as
  231. to the formatters (instead of sending it to the formatters
  232. exclusively).
  233. * Ant has now a pluggable way to prompt users for input, which is used
  234. by the new <input> task. IDE integrators can provide an
  235. implementation of the InputHandler interface to decouple Ant's input
  236. from the console. An implementation that gets its input from a file
  237. for unattended builds is part of Ant's distribution.
  238. For more details see docs/manual/inputhandler.html.
  239. Changes from Ant 1.4 to Ant 1.4.1
  240. ===========================================
  241. Fixed bugs:
  242. -----------
  243. * <ant>'s antfile attribute will now also be considered an absolute path on
  244. Windows systems, if it starts with a \ and no drive specifier.
  245. * The fullpath attribute of <zipfileset> has been ignored if you used
  246. the src attribute at the same time.
  247. * The manifest file is now always placed as the second entry (after /META-INF)
  248. in generated jars. This allows the manifest to be read by JarInputStreams
  249. * Fixed bug in depend task which would fail with a NullPointerException if no
  250. dependency cache was specified.
  251. * sql task now handles REM statements correctly so that lines starying with rem
  252. but which are not comments are actually processed.
  253. * XMLLogger now uses the task's name rather than the classname
  254. * <mapper>s will now work as expected if the to pattern expands to an
  255. absolute pathname.
  256. * <javac> didn't ignore memory settings in non-fork mode
  257. * <cab> didn't split the options attribute into several command line
  258. arguments correctly.
  259. Other changes:
  260. --------------
  261. * New source attribute for <javac> to enable assertion in JDK 1.4
  262. * XmlLogger and <antstructure> now add an encoding declaration to the
  263. XML files they generate.
  264. * <fileset> has a new attribute "casesensitive" to make it match
  265. filenames in a case insensitive way (if you set it to false) - by
  266. default filesets remain case sensitive.
  267. Changes from Ant 1.3 to Ant 1.4
  268. ===========================================
  269. Changes that could break older environments:
  270. --------------------------------------------
  271. * JUnitReport now uses the xalan redirect extension for multi-output.
  272. With Xalan 1.2.2 it forces the use of bsf.jar in the classpath.
  273. (Available in the xalan distribution). It is recommended to switch
  274. to Xalan 2.x that do not need it.
  275. * Zip.setWhenempty() has changed its signature.
  276. * <rmic> is now implemented using a factory. This makes extending
  277. rmic to use a new compiler a lot easier but may break custom
  278. versions of this task that rely on the old implementation.
  279. * several Zip methods have changed their signature as we now use a Zip
  280. package of our own that handles Unix permissions for directories.
  281. Furthermore <zip> will now use the platform's default character
  282. encoding for filenames - this is consistent with the command line
  283. ZIP tools, but causes problems if you try to open them from within
  284. Java and your filenames contain non US-ASCII characters. Use the new
  285. encoding attribute of the task and set it to UTF8 to get the old
  286. behavior.
  287. * The <pvcs> task has been moved to a package of its own.
  288. * JUnitResultFormater has two additional methods that must be
  289. implemented by custom formatters.
  290. * Ant will no longer use the canonical version of a path internally -
  291. this may yield different results on filesystems that support
  292. symbolic links.
  293. * The output generated by the xml formatter for <junit> has changed
  294. again, it doesn't format the numeric value in the time attribute anymore.
  295. * Pattern matching rules have changes slightly, the pattern foo*
  296. doesn't match files contained in a directory named foo - use foo/*
  297. instead.
  298. * <fixcrlf> will not remove trailing whitespace at the end of lines anymore.
  299. * The Classloader usage has been changed for the taskdef, property, available
  300. and sql tasks so that it delegates to the parent classloader. This may cause
  301. ClassNotFoundExceptions to be thrown if a system class attempts to load a
  302. class in the taskdef's classpath (typically factory objects).
  303. * Ant now allows multithreading of tasks and the containment of tasks within
  304. other tasks. This can break customer listeners which do not expect messages
  305. from a task before the previous task has finished.
  306. * Ant now installs its own ouput stream into System.out to route output to the
  307. task currently executing on the current thread. This also means that all
  308. output is now routed as Ant message events. Customer listeners and loggers
  309. should not call System.out at any time. This has always been true but such
  310. usage now will cause problems due to possible recursion.
  311. * Invalid manifest files will now cause build failures in the <jar> task.
  312. * Ant Introspection now looks for methods with method names starting with
  313. addConfigured. When called these methods are passed an argument after it has
  314. been configured from the build file. Custom tasks supporting nested elements
  315. starting with the name configured will no longer function.
  316. * The environment variable JAVACMD that can be used to specify the
  317. java executable to Ant's wrapper scripts must not contain additional
  318. command line parameters any longer - please use the environment
  319. variable ANT_OPTS for such parameters now.
  320. * Ant's wrapper scripts now quote the CLASSPATH environment variable, thus
  321. supporting classpaths which refer to directories containing spaces. This means
  322. that the CLASSPATH environment variable cannot have quotes. Any quotes should
  323. be removed. This will not affect the operation of the CLASSPATH environment
  324. variable in other contexts.
  325. * A delete task like
  326. <delete includeEmptyFilesets="true">
  327. <fileset dir="somedir" />
  328. </delete>
  329. will now remove "somedir" as well, unless there are still files left
  330. in it (matched by the default excludes).
  331. * The copy task will now fail if the file to be copied is not found.
  332. * Ant properties defined in properties files now behave the same way as
  333. properties defined in the build file. In particular the $ character needs
  334. to be escaped in property values by doubling it to $$. So, to define a
  335. property with the value $hello, you need to define it in a properties file
  336. as
  337. test.prop=$$hello
  338. This was not the case in Ant 1.3
  339. Other changes:
  340. --------------
  341. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  342. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset,
  343. condition, maudit, mmetrics, jpcoverage, jpcovreport, jpcovmerge
  344. * Ant now uses JAXP 1.1
  345. * rmic now supports Kaffe's and Weblogic's version of rmic.
  346. * new magic property build.rmic to chose the rmic implementation
  347. * <tar> will now add empty directories as well
  348. * you can now specify a description for <p4change>
  349. * <touch> can now work on <fileset>s
  350. * <uptodate> now supports a value attribute
  351. * <fail> supports nested text
  352. * <fixcrlf> won't override files that are already in the correct
  353. format.
  354. * <sql> now supports REM comments as well as // and --
  355. * <jar> now has a nested <metainf> element following the same idea as
  356. <war>'s <webinf>.
  357. * <pvcs> can now handle multiple projects.
  358. * <available> now has a "type" attribute you can use in conjunction
  359. with the "file" attribute to specify whether the "file" you're
  360. looking for is a file or a directory.
  361. * New <junit> formatter named "brief"
  362. * <ejbjar> changes
  363. * Add support for Borland Application Server to the <ejbjar> task using
  364. a <borland> nested element.
  365. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  366. includes some iPlanet utility tasks
  367. * Add support for JBoss Application Server to the <ejbjar> task.
  368. * Add a naming attribute to control the naming scheme that
  369. ejbjar uses to name the generated EJB jars.
  370. * Weblogic element now sets the compiler class for EJB 2.0 beans
  371. * <dtd> elements can be specified at the <ejbjar> level for building generic
  372. beans
  373. * <dtd> elements can now be URLs
  374. * Allow the manifest to be specified for the generated jars
  375. * The weblogic element now supprts an attribte noEJBC to skip the processing
  376. of the jar by ejbc. The ejbc step will then occur at deployment
  377. * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to
  378. jikes. It can be restored to the default, javac, operation if desired.
  379. * Allow the <sql> Delimiter to be set in the so that Oracle stored procs may be
  380. entered
  381. * <execon> and <apply> can now optionally skip empty filesets.
  382. * <javadoc> has a new useexternalfile attribute that makes it use a
  383. temporary file for sourcefile and package names - helps to defeat
  384. command line length limitations.
  385. * Data types like <path> can now be defined inside of <target>s
  386. * you can now specify a classpath for <style> - the XSLZ processor
  387. will be loaded from this path
  388. * added a force attribute to <style> to support dependencies that the
  389. task cannot determine itself (dependency on parameters, not file
  390. modification times for example)
  391. * added vmlauncher attribute to exec tasks. This defaults to true. If
  392. it is set to false, the VM's ability to launch commands in bypassed
  393. and the OS shell, either directly or through the auxillary antRun
  394. scripts is used.
  395. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  396. * New filesonly attribute for <zip> and friends to suppress directory
  397. entries.
  398. * New update attribute for <zip> and friends - update an existing
  399. archive instead of creating a new one.
  400. * <apply> and <execon> have been merged into a single task.
  401. * added vssver.scc to the default excludes
  402. * <available> has a new filepath attribute/nested element that allows
  403. you top search for a file in a given path.
  404. * <junit> can now optionally set a property on test failure.
  405. * <taskdef> can now define several tasks at once, reading the
  406. name/classname pairs from a property file or resource.
  407. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  408. defaults to true. If set to false, files that are newer than the
  409. files in the archive will not be replaced.
  410. * <patternset> and <fileset> now support nested <in/excludesfile>
  411. elements - using these you can have more than one in/excludes file
  412. per <patternset>.
  413. * Three new supported compilers for javac: kjc for kopi, gcj for the
  414. gcc frontend and sj for Symantec's compiler.
  415. In addition extJavac or the new fork attribute can be
  416. used to run the JDK's javac in a JVM separate from Ant.
  417. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  418. between 2 and 80.
  419. * The .NET tasks have been adapted to the beta2 release of the framework.
  420. * <move> will now try to rename() files before copying them byte by
  421. byte - only if filtering is of, of course.
  422. * <ant> and <antcall> tasks now support a new attribute inheritAll. When set to
  423. false, only user properties are passed through to the target Ant instance.
  424. This includes properties set on the command line and properties explicitly
  425. passed
  426. * <javadoc> now skips off line links if the package list cannot be found.
  427. * <wlrun> now allows the security policy file to exist outside the weblogic
  428. directory.
  429. * <java> task will set the Thread contextClassLoader under JDKs 1.2+ to the
  430. classloader for the class being executed.
  431. * Introduce the concept of a TaskContainer - a task or element which can contain
  432. Ant Tasks.
  433. * Add new tasks implementing the TaskContainer interface <parallel> and
  434. <sequential> which allow parallel execution of tasks to be specified.
  435. * <depend> task will now take into account dependencies on jar files and class
  436. files from a given classpath.
  437. * <jar> manifest entries may now be specified in the build file either
  438. completely or to be merged with a manifest file.
  439. * <tstamp> task custom formats now support locales.
  440. * Added a listner which will forward events to Log4J. The log4j configuration
  441. file should be in the directory from which Ant is run or passed as a system
  442. property using a JVM argument.
  443. * Introduced the concept of <filtersets> to allow for more control in which
  444. filters get applied in a <copy> or <move> operation.
  445. * Added nowarn attribute to javac and deprecated the Jikes-magic property
  446. build.compiler.warnings.
  447. * The <depend> task cache format has changed and all dependency information is
  448. now stored in a single file.
  449. Fixed bugs:
  450. -----------
  451. * Testcases have been made independent of current working directory.
  452. * Input ZIP-Files will be closed when using a <zipfileset>.
  453. * p4 tasks now don't fail if user, port or client have been omitted
  454. (and this is acceptable for the context of the command).
  455. * <javah>'s outputfile attribute will be resolved as relative to the
  456. projects basedir.
  457. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  458. and omit tasks it fails to load.
  459. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  460. * <style>'s style attribute no handles absolute paths correctly.
  461. * <delete includeemptydirs="true"> now deletes more than just the leaf
  462. directories.
  463. * You can now specify a <fileset> for a directory that doesn't exist at
  464. declaration time but will created before the fileset gets used for the
  465. first time.
  466. * If the quiet attribute has been set, <delete> will handle <fileset>s
  467. with non-existing directories gracefully.
  468. * Output written by testcases will now be captured by the <junit> task
  469. and passed to the formatters.
  470. * Quote the -group parameter to Javadoc as per the specification
  471. * Initialise classes when loaded through the AntClassLoader - that is, run
  472. static initializers
  473. * Implement getResource() and getResources() in AntClassLoader
  474. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  475. as a single line. Avoids problems with paths which contain spaces.
  476. * <ejbjar> now fails when the weblogic ejbc compiler reports an error.
  477. * Make the AntClassLoader load resources in the same order as it currently
  478. loads classes.
  479. * Handle classpaths with spaces
  480. * Make sure XSLT processors close their output files in <style>.
  481. * perform proper uptodate check in <rmic> when compiling for IIOP.
  482. * <jjtree>'s uptodate test works even if outputdirectory is not the
  483. parent dir of target
  484. * <copy> will remove target file (if it exists) before writing to it -
  485. this avoids problems with links on filesystems that support them.
  486. * <ftp> now properly recurses remote directories.
  487. * <ftp> closes remote connection when it's done.
  488. * <junit> tries to include all necessary classes for the task itself
  489. to the classpath when running in fork mode - doesn't work for JDK 1.1
  490. * <apply> and <execon> do now execute the command only once, if you
  491. specify the parallel attribute - instead of once per fileset.
  492. * directory based tasks and fileset could miss some included files in
  493. directories that have been excluded
  494. * <fixcrlf> failed for large files.
  495. * <move> removed files you tried to move to themselves.
  496. * <sql> task will not trty to print the result set unless the query succeeded.
  497. * Ant classloader will now ignore paths which are invalid relative to the
  498. project base
  499. * <ejbjar> weblogic elements check for jar file changes has been fixed.
  500. Previously some changes would not be included.
  501. * properties loaded from properties files are now resolved internally. This
  502. removes the spurious warnings about usage of properties which have not been
  503. set.
  504. * <jar> task and friends now process the JAR manifest to ensure it is valid.
  505. * The task finished event now includes any exception thrown by the task.
  506. * <java> task now supports a jvmVersion attribute so that if another JVM is
  507. being used, Ant can determine which options to use for features such as the
  508. VM memory limits
  509. Changes from Ant 1.2 to Ant 1.3
  510. ===========================================
  511. Changes that could break older environments:
  512. --------------------------------------------
  513. * Ant doesn't search for the buildfile anymore, unless you use the new
  514. -find argument.
  515. * <perforce> has been replaced by a number of new tasks.
  516. * <javac> is now implemented using a factory. This makes extending
  517. javac to use a new compiler a lot easier but may break custom
  518. versions of this task that rely on the old implementation.
  519. * The output generated by the xml formatter for <junit> has changed a
  520. little, it doesn't append " sec" in the time attribute anymore.
  521. Other changes:
  522. --------------
  523. * A GUI Frontend: Antidote. This is currently in development. At this
  524. time, this is not part of the Ant release, although the source is
  525. included if you are interested.
  526. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  527. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  528. * Added output attribute to <java>.
  529. * Added nested zipfileset element to <zip>
  530. * Changed <sql> so that printing is at the task level rather than
  531. the statement level.
  532. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  533. given. If the doclet does not accept the -d flag then omit the destdir
  534. attribute.
  535. * <cab> can work on non-Windows platforms with the help of libcabinet.
  536. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  537. * <ftp> now supports passive mode.
  538. * New <mapper> data type that can be used to get influence on the
  539. target files for some tasks like <copy> or enable new types of tasks
  540. like <apply>.
  541. * <execon> provides more control over the command line now, the names
  542. of the source files are no longer required to be at the end of the
  543. command.
  544. * Style tasks will now support TraX compliant XSL processors if one is present
  545. in your classpath.
  546. * Added a failonerror to the javac task. If set to false, the build will
  547. continue even if there are compilation errors.
  548. * Added nested format elements to the tstamp task allowing additional time
  549. formats to be defined for arbitrary properties.
  550. * Added classpath attribute and nested classpath element to <property>
  551. to make the resource attribute more powerful.
  552. * ${} property expansion will now be performed on the patterns read
  553. from files specified as includesfile or excludesfile attributes.
  554. * The <tar> and <untar> tasks now support GNU format for handling paths
  555. which are greater than 100 characters in length. In addition the <tar>
  556. task now supports nested filesets through which the file permissions
  557. may be controlled.
  558. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  559. * The MPasre task has been updated to work with MParse 2.0
  560. * The documentation has been significantly updated.
  561. Fixed bugs:
  562. -----------
  563. * <signjar> doesn't use deprectated methods anymore.
  564. * javadoc's failonerror attribute works again
  565. * javadoc's additionalparam attribute will now be split into separate
  566. parameters (on spaces) to allow for more than one parameter.
  567. * Changed <sql> task so that printing result sets works on Oracle
  568. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  569. keppgenerated in ejbc can now be turned off
  570. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  571. CMP files are included by parsing the weblogic deployment descriptor rather
  572. than relying on the naming convention used in ant 1.2
  573. * ejbjar includes super classes and super interfaces into the generated ejb
  574. jar files. The <support> nested element allows support classes to be
  575. included in the EJB jar. The toplink element should now correctly locate
  576. the toplink descriptor.
  577. * <vssget> now correctly deals with spaces in arguments
  578. * <jar> fails early if a given manifest file doesn't exist
  579. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  580. set to 1.2.
  581. * <rmic> uses the the same classpath to verify a class can be rmic'd
  582. as it passes to the compiler.
  583. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  584. handle SMTP servers sending multi line responses.
  585. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  586. nested into <target> as well.
  587. * <property> and <available> will search for the resource "foo" instead
  588. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  589. name foo.
  590. * Handle build files in directories whose name contained a "#" character
  591. * <junit> can now log to files whose name contains a comma as well.
  592. * The AntClassLoader now refers to the loader which loaded it, any
  593. requests it does not handle itself. Previously these went to the
  594. primordial loader.
  595. Changes from Ant 1.1 to Ant 1.2
  596. ===============================
  597. Changes that could break older environments:
  598. --------------------------------------------
  599. * Semantics of <property> has changed again in the hope to be more
  600. intuitive. ${} expansion now happens at runtime and <property> tags
  601. living inside of targets only take effect if they are visited at
  602. runtime.
  603. As a side effect of this change, task's attributes get set at runtime
  604. not at parser time as well, which might change the results of
  605. <script>s or other custom tasks that reference other tasks by their id
  606. attribute.
  607. * copying of support files in <javac> has been removed - as well as
  608. the filtering attribute.
  609. * the <expand> and <keysubst> tasks have been removed.
  610. * the ignore and items attributes of directory based tasks have been removed.
  611. * the command line switches _not_ starting with - have been removed.
  612. * Path and EnumeratedAttribute have been moved from
  613. org.apache.tools.ant to org.apache.tools.ant.types.
  614. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  615. have been removed.
  616. * the src attribute of <chmod> has been removed.
  617. * <patch> and <javadoc> have lost some of their attributes.
  618. * <java> and <cvs> have lost some undocumented attributes.
  619. * the Unix antRun script would search for command.sh in the directory
  620. it changed to and invoke this instead of command if present. This
  621. behavior has been dropped.
  622. * <ejbjar> task syntax has been changed significantly
  623. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  624. Custom tasks that rely on Project.createTask("exec") to return an
  625. instance of this class are going to fail.
  626. * nested <include> and <exclude> elements expect the value of their
  627. name attribute to be a single pattern, they don't accept multiple
  628. patterns anymore. Split them into multiple elements of the same type.
  629. * <delete dir="somedir" /> will now delete the directory itself as
  630. well as all included files. If you just want to clean out the
  631. directory and keep the empty one, use a nested fileset.
  632. Other changes:
  633. --------------
  634. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  635. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  636. native2ascii, copy, move, mparse.
  637. * copydir, copyfile, deltree and rename are now deprecated. They
  638. should be replaced with the new copy, delete and move tasks.
  639. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  640. specified.
  641. * <style> will create the necessary target directories and reprocess
  642. all files if the stylesheet changes.
  643. * New data types fileset and patternset - expected to get a broader use.
  644. They, as well as PATH like structures, can now be defined on a global
  645. level and later be referenced by their id attribute.
  646. * You can specify environment variables to <exec>.
  647. * <get> can check whether a remote file is actually newer than a local
  648. copy before it starts a download (HTTP only).
  649. * Added a -logger option to allow the class which performs logging to be
  650. specified on the command line.
  651. * Added a -emacs option to tell the logger to leave out taskname adornments
  652. on log output.
  653. * <chmod> works on all files in parallel and supports multiple filesets.
  654. * <replace> can now use tokens and/or values that cross line boundaries.
  655. * build.compiler supports now jvc as well.
  656. * project specific help can now be obtained with the -projecthelp option.
  657. * Added a -debug option to make -verbose less verbose (and more useful)
  658. * Ant will now search for a file named build.xml in the parent directory
  659. and above (towards the root of the filesystem) if you didn't specify
  660. -buildfile and there is no build.xml in the current directory.
  661. * <echo> can now write to a file and accepts nested text.
  662. Fixed bugs:
  663. -----------
  664. * <chmod> didn't work when used as a directory based task.
  665. * Path, Available, Property didn't resolve relative filenames with
  666. respect to the Project's basedir.
  667. * Project didn't interpret the basedir attribute correctly in all
  668. cases.
  669. * Nested <src> in <javac> caused NullPointerException.
  670. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  671. * many more fixes we've forgotten to document here ...
  672. * The packagelistloc attribute of <javadoc>'s <link> child will be
  673. resolved as a file (i.e. it is either absolute or relative to
  674. basedir).