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

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