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

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