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

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