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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900
  1. Changes from Ant 1.5.2 to current CVS version
  2. =============================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * Targets cannot have the empty string as their name any longer.
  6. * ant.jar's manifest does no longer include a Class-Path entry, so it
  7. is no longer possible to run Ant via "java -jar ant.jar" without
  8. manually altering the CLASSPATH. Instead of that a file
  9. ant-bootstrap.jar is included in the etc directory of the binary
  10. distribution, copy this to the lib directory and use
  11. "java -jar ant-bootstrap.jar" instead if you want to run Ant without
  12. the wrapper script (not recommended).
  13. * The <script> task now requires Apache BSF instead of the older IBM
  14. version. See <http://jakarta.apache.org/bsf/>
  15. * <xmlproperty> will no longer fail if the file to be loaded doesn't exist.
  16. * ZipScanner#getIncludedFiles will now return the names of the ZipEntries
  17. that have been matched instead of the name of the archive.
  18. * XML namespaces are now enabled in the XML parser, meaning XML namespace
  19. declarations no longer cause errors.
  20. Fixed bugs:
  21. -----------
  22. * <translate> was not ignoring comment lines.
  23. * Expand tasks did not behave as expected with PatternSets.
  24. * <property environment=... /> now works on OS/400.
  25. * <manifest> wouldn't update an existing manifest if only an attribute
  26. of an existing section changed.
  27. * ant.bat now supports the ANT_ARGS and JAVACMD environment variables
  28. again (like Ant 1.5 did).
  29. * The "plain" <junit> <formatter> could throw a NullPointerException
  30. if an error occured in setUp.
  31. * <cab> could hang listcab on large <fileset>s.
  32. * <junit> will now produce output when a test times out as well.
  33. * The starteam stcheckout, stcheckin tasks now correctly compute status of files
  34. against whatever local tree they are run against and, optionally, will not
  35. process a file if it is current. Previously you had to process everything
  36. unless you ran against the default folder which wasn't the normal use-case for
  37. ant-starteam. The stlist task now similarly displays that status correctly
  38. making it a more generally useful tool.
  39. * <replace> would count some internal character replacements when
  40. reporting the number of replaced tokens.
  41. * <concat> would cause an exception if a <filelist> pointed to files
  42. that do not exist.
  43. * <javadoc> will now pass -source to custom doclets as well.
  44. * <cvstagdiff> would throw a NullPointException if there had been no
  45. differences.
  46. * <cvschangelog> could miss today's changes.
  47. * entity includes would cause exceptions if path names included spaces.
  48. * <concat> could append newline characters between concatenated files.
  49. * <xmlvalidate> ignored the specified encoding of the files to
  50. validate.
  51. * the errorsbeginat attribute of the <http> condition didn't work.
  52. * Ant will try to force loading of certain packages like com.sun.*
  53. from the system classloader. The packages are determined by the
  54. version of the JVM running Ant.
  55. * Ant didn't find the runtime libraries on IBM's JDK 1.4 for Linux.
  56. * addConfiguredXXX would not work for TaskAdapter wrapped tasks
  57. * random component of temporary files is now always a positive integer.
  58. * Fix <ilasm> outputfile testing so that the output file does not need
  59. to exist beforehand.
  60. * Ant could incorrectly try to use the 1.4 regexp implementation even
  61. if it isn't available if you run the JVM with -Xverify:none.
  62. * Ant would die with an exception if you used nested <reference>
  63. elements in Ant and the refid attribute didn't point to an existing
  64. project reference.
  65. * The <get> task can now be compiled (and Ant thus bootstrapped) using
  66. Kaffee.
  67. * build.sysclasspath will now be honored by more tasks.
  68. * <jar update="true"> would remove the original manifest.
  69. * Ant will now exit with a return code of 1 if it encounters problems
  70. with the command line arguments.
  71. * ClassLoader creation changes to use a factory method in Project. A new
  72. class AntClassLoader2 implemented for 1.2+ specific features including
  73. Package information and addition of classes specified in the Class-Path
  74. element of a Jar's manifest.
  75. * It is now possible in <exec> to resolve the executable to a project basedir or
  76. execution dir relative executable. The resolveExecutable must be used to
  77. pick up such executables.
  78. Other changes:
  79. --------------
  80. * The filesetmanifest attribute of <jar> has been reenabled.
  81. * The start and end tokens for <translate> may now be longer than a
  82. single character.
  83. * <setproxy> lets you set the username and password for proxies that want authentication
  84. * <loadproperties> has a new encoding attribute.
  85. * <echoproperties> can now create XML output.
  86. * <echoproperties> has a new srcfile attribute that can make it read
  87. properties files and output them instead of Ant's properties.
  88. * <filterset> will now resolve filters recursively.
  89. * <input> has a new attribute that allows you to specify a default value.
  90. * All tasks can be used outside of <target>s
  91. * Added <image> task (requires JAI).
  92. * New condition <isreference>
  93. * <ftp> now has a preservelastmodified attribute to preserve the
  94. timestamp of a downloaded file.
  95. * new rmdir action for <ftp> that removes directories from a fileset.
  96. * The SOS and VSS tasks will no longer unconditionally prepend a $ to
  97. vsspath or projectpath.
  98. * OS/400 now gets detected by the os condition.
  99. * <arg> has a new attribute pathref that can be used to reference
  100. previously defined paths.
  101. * <xmlproperty> has been improved, you can now expand ${properties},
  102. define ids or paths and use Ant's location magic for filename resolutions
  103. in the XML file.
  104. * <xmlcatalog> will now support external catalogs according to the
  105. OASIS "Open Catalog" standard - if resolver.jar (newer than version
  106. 1.0) from Apache's xml-commons is in your CLASSPATH.
  107. * Starteam tasks now have support for revision labels and build labels.
  108. Checkouts now have the option of using repository timestamps, instead
  109. of current.
  110. * new task <symlink> that creates and maintains symbolic links.
  111. * new tasks <chown> and <chgrp> which are wrappers of the Unix commands.
  112. * new task <attrib> to change file attributes on Windows systems.
  113. * MailLogger now sets the Date header correctly.
  114. * Shipped XML parser is now Xerces 2.3.0
  115. * <style> has a new attribute reuseloadedstylesheet to work around a
  116. bug in widespread Xalan versions.
  117. * <tarfileset> has a new dirmode attribute to specify the permissions
  118. for directories.
  119. * <zip> can now store Unix permissions in a way that can be
  120. reconstructed by Info-Zip's unzip command.
  121. * <fixcrlf>'s eol attribute now also understand "mac", "unix" and "dos".
  122. * <classfileset> now picks up dependencies of the form MyClass.class. This
  123. works for the code generated by the Sun java compiler. It may not work for
  124. all compilers.
  125. * <tar>'s up-to-date check didn't work for nested <(tar)fileset>s.
  126. * a new attribute "globalopts" can be added to all Perforce tasks.
  127. You can put in it all the strings described by p4 help usage. Refer to
  128. the docs for more information.
  129. Changes from Ant 1.5.1Beta1 to 1.5.1
  130. ====================================
  131. Fixed bugs:
  132. -----------
  133. * <tstamp>'s prefix attribute failed to apply to nested <format> elements.
  134. * <junitreport> created an empty junit-noframes.html if no format had
  135. been specified.
  136. * <basename> would remove more than it should if the file name
  137. contained more than one dot.
  138. * <filterset>s nested into <filterset>s didn't work.
  139. Other changes:
  140. --------------
  141. * Shipped XML parser is now Xerces 2.2.0
  142. * Filesets now support a 'file' attribute, allowing a single-file
  143. fileset to be constructed without having to specify its parent
  144. directory separately.
  145. * <junit> will now return the result of a call to getName instead of
  146. "unknown" for Test implementations that don't extend TestCase but have
  147. a public String getName() method.
  148. Changes from Ant 1.5 to 1.5.1Beta1
  149. ==================================
  150. Fixed bugs:
  151. -----------
  152. * Date/time in CvsChangeLog was in local timezone and 12 hour format leading
  153. to a problem when sorting by time. It is now UTC (GMT) and in 24-hour
  154. format as per cvs 'specifications'.
  155. * CvsTagDiff now supports ampersand modules or modules that have a different
  156. root directory than their name.
  157. * EjbJar threw NPEs for the Websphere element. The property 'websphere.home'
  158. was not documented.
  159. * Mail example in the documentation was not correct.
  160. * Checksum was broken in the following scenario:
  161. (using verifyproperty OR in a condition) AND using filesets
  162. with multiple files.
  163. * The ExpandProperties filter threw NPEs when defined using
  164. the <filterreader> format.
  165. * The sh wrapper script didn't work under Cygwin if ANT_HOME wasn't
  166. set with a Unix style filename.
  167. * The sh wrapper script could fail if you started Ant from a directory
  168. with whitespace in its name.
  169. * ant -diagnostics was not working properly when the task dependency
  170. was missing and was just printing the missing dependency.
  171. * If a task got redefined via <taskdef>, it lost its child elements.
  172. * <property>'s classpathref attribute was broken.
  173. * <arg line="''" /> would result in no command line argument, will now
  174. be a single empty argument. Use <arg value="''"/> if you need the
  175. quotes literally.
  176. * <replaceregexp> could append a newline character at the end of the
  177. file.
  178. Other changes:
  179. --------------
  180. * Appendix E of Java Development with Ant (Loughran/Hatcher) was
  181. contributed to the docs.
  182. * <available> will only print deprecration warnings if it is actually
  183. used to change the value of a property.
  184. Changes from Ant 1.5beta3 to Ant 1.5
  185. ====================================
  186. Changes that could break older environments:
  187. --------------------------------------------
  188. * The filesetmanifest attribute added to <jar> after the 1.4.1
  189. release has been removed for now. This change may affect only
  190. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  191. feature back into Ant 1.6.
  192. Fixed bugs:
  193. -----------
  194. * <zip> and friends would always update existing archive if you set
  195. the update attribute to true.
  196. * To support backward compatibility with older versions, <pathconvert>
  197. will once again set the property, even if the result is the empty
  198. string, unless the new 'setonempty' attribute is set to false|no|off
  199. (default is "true").
  200. * The manifest task would crash XmlLogger
  201. Other changes:
  202. --------------
  203. * added **/.svn and **/.svn/** to the default excludes
  204. Changes from Ant 1.5beta2 to Ant 1.5beta3
  205. =========================================
  206. Changes that could break older environments:
  207. --------------------------------------------
  208. * Project.getBuildListeners now returns a clone of the listener
  209. list. Changes to the returned list will not affect the listeners
  210. currently attached to the Project. It also means that it is safe to
  211. iterate over the returned list if listeners are added or removed
  212. during the traversal.
  213. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  214. Now it is different from 1.5beta1 and 1.5beta2.
  215. * Some messages that are printed during startup will not be
  216. written to the logfile specified via -logfile as they might destroy
  217. the format of the file for special BuildLoggers (like XmlLogger).
  218. * <pathconvert> won't set the property if the result is the empty string.
  219. Fixed bugs:
  220. -----------
  221. * <available> could fail to find files or directories that happen to
  222. start with the name of the project's basedir but are not children of
  223. the basedir.
  224. * Nested <property>'s inside <ant> can now be overriden by subsequent
  225. <ant> and <antcall> tasks.
  226. * <xslt>'s outputtype attribute wouldn't do anything.
  227. * <linecontains> filterreader could swallow lines.
  228. * <sequential> used to configure the tasks (set their attributes)
  229. before the first task has been executed. This means that properties
  230. that have been set by nested task seemed to be unset for the other
  231. tasks in the same <sequential> element.
  232. * <javac>'s sourcepath setting has been ignored by some compiler
  233. implementations.
  234. * <javadoc>'s packagelist attribute didn't work.
  235. * the plain mailer would always use port 25 in <mail>.
  236. * Ant's default logger could swallow empty lines.
  237. * ejbjar's iPlanet nested element now can process multiple descriptors.
  238. * IPlanetEjbc was looking in the wrong place for four iiop files.
  239. * <javac> would pass the -source switch to JDK 1.3's javac, even
  240. though it doesn't support it.
  241. Other changes:
  242. --------------
  243. * <checksum> now uses a buffer (of configurable size).
  244. * The "Trying to override task definition" warning has been degraded
  245. to verbose level if the two task definitions only differ in the class
  246. loader instance that has loaded the definition.
  247. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  248. arguments to be provided to the VM runnign ejbc. Document the
  249. jvmdebuglevel attribute which can be used to avoid warnings about
  250. interface classess being found on the classpath. Document the new
  251. <sysproperty> element which allows JVM properties to be defined.
  252. Added an outputdir attribute to allow the destination to be a
  253. directory into which the exploded jar is written.
  254. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  255. Changes from Ant 1.5beta1 to Ant 1.5beta2
  256. =========================================
  257. Changes that could break older environments:
  258. --------------------------------------------
  259. * Properties will now be expanded in mail message bodies. This means
  260. that one $ sign will be stripped if your mail message contains the text
  261. $$.
  262. * org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.
  263. * Available#setFile now again uses a File argument as it did in 1.4,
  264. this may break environments that have been adapted to the String
  265. argument version present in 1.5beta1.
  266. Fixed bugs:
  267. -----------
  268. * When <move> attempts a rename, it deletes the destination file, if it
  269. exists, before renaming the source file. However, <move> was not
  270. checking if the destination file was actually a directory before
  271. trying to delete it.
  272. * Make CVS Tasks to work under Cygwin.
  273. * Fix LineContains to handle huge files elegantly without causing
  274. Stack Overflows.
  275. * if you ask for the "classic" compiler on Java1.4, you get upgraded to
  276. "modern" because there is no classic compiler any more.
  277. * the <http> condition was viewing 404 'not found' exceptions as success. Now
  278. it defaults to viewing any response >=400 as an error, and has an errorsBeginAt
  279. attribute you can use if you want a higher or lower value.
  280. * <get> throws a build exception on an http authorization error, unless you
  281. have set ignoreerrors to true.
  282. * <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lower
  283. case, though the old spelling is retained for anyone who used it.
  284. * Merging of Manifests in jar now works as documented.
  285. * paths that have been separated by colons would be incorrectly parsed
  286. on NetWare.
  287. * runant.pl now supports NetWare.
  288. * <tempfile> and <setproxy> tasks were in beta1, but not defined by
  289. default; They now are. <tempfile> fills a property with the name of a
  290. temporary file; <setproxy> lets you set the JVM's http, ftp and socks proxy
  291. settings.
  292. * <available classname="foo" ignoresystemclasses="true"> failed for
  293. JDK 1.1 and 1.2, even if the class could be found on the
  294. user-specified classpath.
  295. * <property environment=... /> now works on z/OS.
  296. * forked <javac> failed for the wrong reason on JDK 1.1 - Ant would
  297. use a temporary file to hold the names of the files to compile under
  298. some conditons, but 1.1 doesn't support this feature. Ant will no
  299. longer try this, but you may run into problems with the length of the
  300. command line now.
  301. * the refid attribute for <property>s nested into <ant> or <param>s
  302. nested into <antcall> didn't work.
  303. * <replaceregexp> didn't work for nested <fileset>s.
  304. * <javadoc> dropped sourcepath entries if no "interesting" .java
  305. source files could be found below them. This has been backwards
  306. incompatible and caused problems with custom doclets like xdoclet.
  307. * Using the doclet, docletpath or docletpathref attributes of
  308. <javadoc> may have caused NullPointerExceptions.
  309. * nested <filesets> of <javadoc> would include too much.
  310. * <dependset> will no longer choke on <targetfileset>s that point to
  311. non-existing directories.
  312. * <patch> didn't work at all.
  313. * <replace> and <replaceregexp> now fail if the file they are working
  314. on is locked.
  315. * <javadoc> would pick up the wrong executable in the combination JDK
  316. 1.2 and AIX.
  317. Other changes:
  318. --------------
  319. * z/OS now gets detected by the os condition.
  320. * <fileset> and <dirset> now have an optional followsymlink attribute
  321. that can prevent Ant from following symbolic links on some platforms.
  322. * BeanShell is now supported in the <script> task.
  323. * <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans
  324. based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta
  325. this ejbc class has been deprecated. To avoid the deprecation warning use
  326. ejbcclass="weblogic.ejbc".
  327. * <ejbjar> will add a manifest to the generated jar based on the naming
  328. convention in use. This overrides the manifest specified in the
  329. <ejbjar> attribute
  330. Changes from Ant 1.4.1 to 1.5beta1
  331. ==================================
  332. Changes that could break older environments:
  333. --------------------------------------------
  334. * Important: Single $ signs are no longer silently stripped!
  335. =======
  336. * Project.getBuildListeners now returns a clone of the listener
  337. list. Changes to the returned list will not affect the listeners
  338. currently attached to the Project. It also means that it is safe to
  339. iterate over the returned list if listeners are added or removed
  340. during the traversal.
  341. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  342. Now it is different from 1.5beta1 and 1.5beta2.
  343. * Some messages that are printed during startup will not be
  344. written to the logfile specified via -logfile as they might destroy
  345. the format of the file for special BuildLoggers (like XmlLogger).
  346. Fixed bugs:
  347. -----------
  348. * <available> could fail to find files or directories that happen to
  349. start with the name of the project's basedir but are not children of
  350. the basedir.
  351. * Nested <property>'s inside <ant> can now be overriden by subsequent
  352. <ant> and <antcall> tasks.
  353. * <xslt>'s outputtype attribute wouldn't do anything.
  354. * <linecontains> filterreader could swallow lines.
  355. * <sequential> used to configure the tasks (set their attributes)
  356. before the first task has been executed. This means that properties
  357. that have been set by nested task seemed to be unset for the other
  358. tasks in the same <sequential> element.
  359. * <javac>'s sourcepath setting has been ignored by some compiler
  360. implementations.
  361. * <javadoc>'s packagelist attribute didn't work.
  362. * the plain mailer would always use port 25 in <mail>.
  363. * Ant's default logger could swallow empty lines.
  364. * ejbjar's iPlanet nested element now can process multiple descriptors.
  365. * IPlanetEjbc was looking in the wrong place for four iiop files.
  366. * <javac> would pass the -source switch to JDK 1.3's javac, even
  367. though it doesn't support it.
  368. Other changes:
  369. --------------
  370. * <checksum> now uses a buffer (of configurable size).
  371. * The "Trying to override task definition" warning has been degraded
  372. to verbose level if the two task definitions only differ in the class
  373. loader instance that has loaded the definition.
  374. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  375. arguments to be provided to the VM runnign ejbc. Document the
  376. jvmdebuglevel attribute which can be used to avoid warnings about
  377. interface classess being found on the classpath. Document the new
  378. <sysproperty> element which allows JVM properties to be defined.
  379. Added an outputdir attribute to allow the destination to be a
  380. directory into which the exploded jar is written.
  381. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  382. Changes from Ant 1.5beta1 to Ant 1.5beta2
  383. =========================================
  384. Changes that could break older environments:
  385. --------------------------------------------
  386. * Properties will now be expanded in mail message bodies. This means
  387. that one $ sign will be stripped if your mail message contains the text
  388. $$.
  389. * org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.
  390. * Available#setFile now again uses a File argument as it did in 1.4,
  391. this may break environments that have been adapted to the String
  392. argument version present in 1.5beta1.
  393. Fixed bugs:
  394. -----------
  395. * When <move> attempts a rename, it deletes the destination file, if it
  396. exists, before renaming the source file. However, <move> was not
  397. checking if the destination file was actually a directory before
  398. trying to delete it.
  399. * Make CVS Tasks to work under Cygwin.
  400. * Fix LineContains to handle huge files elegantly without causing
  401. Stack Overflows.
  402. * if you ask for the "classic" compiler on Java1.4, you get upgraded to
  403. "modern" because there is no classic compiler any more.
  404. * the <http> condition was viewing 404 'not found' exceptions as success. Now
  405. it defaults to viewing any response >=400 as an error, and has an errorsBeginAt
  406. attribute you can use if you want a higher or lower value.
  407. * <get> throws a build exception on an http authorization error, unless you
  408. have set ignoreerrors to true.
  409. * <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lower
  410. case, though the old spelling is retained for anyone who used it.
  411. * Merging of Manifests in jar now works as documented.
  412. * paths that have been separated by colons would be incorrectly parsed
  413. on NetWare.
  414. * runant.pl now supports NetWare.
  415. * <tempfile> and <setproxy> tasks were in beta1, but not defined by
  416. default; They now are. <tempfile> fills a property with the name of a
  417. temporary file; <setproxy> lets you set the JVM's http, ftp and socks proxy
  418. settings.
  419. * <available classname="foo" ignoresystemclasses="true"> failed for
  420. JDK 1.1 and 1.2, even if the class could be found on the
  421. user-specified classpath.
  422. * <property environment=... /> now works on z/OS.
  423. * forked <javac> failed for the wrong reason on JDK 1.1 - Ant would
  424. use a temporary file to hold the names of the files to compile under
  425. some conditons, but 1.1 doesn't support this feature. Ant will no
  426. longer try this, but you may run into problems with the length of the
  427. command line now.
  428. * the refid attribute for <property>s nested into <ant> or <param>s
  429. nested into <antcall> didn't work.
  430. * <replaceregexp> didn't work for nested <fileset>s.
  431. * <javadoc> dropped sourcepath entries if no "interesting" .java
  432. source files could be found below them. This has been backwards
  433. incompatible and caused problems with custom doclets like xdoclet.
  434. * Using the doclet, docletpath or docletpathref attributes of
  435. <javadoc> may have caused NullPointerExceptions.
  436. * nested <filesets> of <javadoc> would include too much.
  437. * <dependset> will no longer choke on <targetfileset>s that point to
  438. non-existing directories.
  439. * <patch> didn't work at all.
  440. * <replace> and <replaceregexp> now fail if the file they are working
  441. on is locked.
  442. * <javadoc> would pick up the wrong executable in the combination JDK
  443. 1.2 and AIX.
  444. Other changes:
  445. --------------
  446. * z/OS now gets detected by the os condition.
  447. * <fileset> and <dirset> now have an optional followsymlink attribute
  448. that can prevent Ant from following symbolic links on some platforms.
  449. * BeanShell is now supported in the <script> task.
  450. * <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans
  451. based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta
  452. this ejbc class has been deprecated. To avoid the deprecation warning use
  453. ejbcclass="weblogic.ejbc".
  454. * <ejbjar> will add a manifest to the generated jar based on the naming
  455. convention in use. This overrides the manifest specified in the
  456. <ejbjar> attribute
  457. Changes from Ant 1.4.1 to 1.5beta1
  458. ==================================
  459. Changes that could break older environments:
  460. --------------------------------------------
  461. * Important: Single $ signs are no longer silently stripped!
  462. * The filesetmanifest attribute added to <jar> after the 1.4.1
  463. release has been removed for now. This change may affect only
  464. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  465. feature back into Ant 1.6.
  466. Fixed bugs:
  467. -----------
  468. * <zip> and friends would always update existing archive if you set
  469. the update attribute to true.
  470. * To support backward compatibility with older versions, <pathconvert>
  471. will once again set the property, even if the result is the empty
  472. string, unless the new 'setonempty' attribute is set to false|no|off
  473. (default is "true").
  474. * The manifest task would crash XmlLogger
  475. Other changes:
  476. --------------
  477. * added **/.svn and **/.svn/** to the default excludes
  478. Changes from Ant 1.5beta2 to Ant 1.5beta3
  479. =========================================
  480. Changes that could break older environments:
  481. --------------------------------------------
  482. * Project.getBuildListeners now returns a clone of the listener
  483. list. Changes to the returned list will not affect the listeners
  484. currently attached to the Project. It also means that it is safe to
  485. iterate over the returned list if listeners are added or removed
  486. during the traversal.
  487. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  488. Now it is different from 1.5beta1 and 1.5beta2.
  489. * Some messages that are printed during startup will not be
  490. written to the logfile specified via -logfile as they might destroy
  491. the format of the file for special BuildLoggers (like XmlLogger).
  492. * <pathconvert> won't set the property if the result is the empty string.
  493. Fixed bugs:
  494. -----------
  495. * <available> could fail to find files or directories that happen to
  496. start with the name of the project's basedir but are not children of
  497. the basedir.
  498. * Nested <property>'s inside <ant> can now be overriden by subsequent
  499. <ant> and <antcall> tasks.
  500. * <xslt>'s outputtype attribute wouldn't do anything.
  501. * <linecontains> filterreader could swallow lines.
  502. * <sequential> used to configure the tasks (set their attributes)
  503. before the first task has been executed. This means that properties
  504. that have been set by nested task seemed to be unset for the other
  505. tasks in the same <sequential> element.
  506. * <javac>'s sourcepath setting has been ignored by some compiler
  507. implementations.
  508. * <javadoc>'s packagelist attribute didn't work.
  509. * the plain mailer would always use port 25 in <mail>.
  510. * Ant's default logger could swallow empty lines.
  511. * ejbjar's iPlanet nested element now can process multiple descriptors.
  512. * IPlanetEjbc was looking in the wrong place for four iiop files.
  513. * <javac> would pass the -source switch to JDK 1.3's javac, even
  514. though it doesn't support it.
  515. Other changes:
  516. --------------
  517. * <checksum> now uses a buffer (of configurable size).
  518. * The "Trying to override task definition" warning has been degraded
  519. to verbose level if the two task definitions only differ in the class
  520. loader instance that has loaded the definition.
  521. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  522. arguments to be provided to the VM runnign ejbc. Document the
  523. jvmdebuglevel attribute which can be used to avoid warnings about
  524. interface classess being found on the classpath. Document the new
  525. <sysproperty> element which allows JVM properties to be defined.
  526. Added an outputdir attribute to allow the destination to be a
  527. directory into which the exploded jar is written.
  528. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  529. Changes from Ant 1.5beta1 to Ant 1.5beta2
  530. =========================================
  531. Changes that could break older environments:
  532. --------------------------------------------
  533. * Properties will now be expanded in mail message bodies. This means
  534. that one $ sign will be stripped if your mail message contains the text
  535. $$.
  536. * org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.
  537. * Available#setFile now again uses a File argument as it did in 1.4,
  538. this may break environments that have been adapted to the String
  539. argument version present in 1.5beta1.
  540. Fixed bugs:
  541. -----------
  542. * When <move> attempts a rename, it deletes the destination file, if it
  543. exists, before renaming the source file. However, <move> was not
  544. checking if the destination file was actually a directory before
  545. trying to delete it.
  546. * Make CVS Tasks to work under Cygwin.
  547. * Fix LineContains to handle huge files elegantly without causing
  548. Stack Overflows.
  549. * if you ask for the "classic" compiler on Java1.4, you get upgraded to
  550. "modern" because there is no classic compiler any more.
  551. * the <http> condition was viewing 404 'not found' exceptions as success. Now
  552. it defaults to viewing any response >=400 as an error, and has an errorsBeginAt
  553. attribute you can use if you want a higher or lower value.
  554. * <get> throws a build exception on an http authorization error, unless you
  555. have set ignoreerrors to true.
  556. * <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lower
  557. case, though the old spelling is retained for anyone who used it.
  558. * Merging of Manifests in jar now works as documented.
  559. * paths that have been separated by colons would be incorrectly parsed
  560. on NetWare.
  561. * runant.pl now supports NetWare.
  562. * <tempfile> and <setproxy> tasks were in beta1, but not defined by
  563. default; They now are. <tempfile> fills a property with the name of a
  564. temporary file; <setproxy> lets you set the JVM's http, ftp and socks proxy
  565. settings.
  566. * <available classname="foo" ignoresystemclasses="true"> failed for
  567. JDK 1.1 and 1.2, even if the class could be found on the
  568. user-specified classpath.
  569. * <property environment=... /> now works on z/OS.
  570. * forked <javac> failed for the wrong reason on JDK 1.1 - Ant would
  571. use a temporary file to hold the names of the files to compile under
  572. some conditons, but 1.1 doesn't support this feature. Ant will no
  573. longer try this, but you may run into problems with the length of the
  574. command line now.
  575. * the refid attribute for <property>s nested into <ant> or <param>s
  576. nested into <antcall> didn't work.
  577. * <replaceregexp> didn't work for nested <fileset>s.
  578. * <javadoc> dropped sourcepath entries if no "interesting" .java
  579. source files could be found below them. This has been backwards
  580. incompatible and caused problems with custom doclets like xdoclet.
  581. * Using the doclet, docletpath or docletpathref attributes of
  582. <javadoc> may have caused NullPointerExceptions.
  583. * nested <filesets> of <javadoc> would include too much.
  584. * <dependset> will no longer choke on <targetfileset>s that point to
  585. non-existing directories.
  586. * <patch> didn't work at all.
  587. * <replace> and <replaceregexp> now fail if the file they are working
  588. on is locked.
  589. * <javadoc> would pick up the wrong executable in the combination JDK
  590. 1.2 and AIX.
  591. Other changes:
  592. --------------
  593. * z/OS now gets detected by the os condition.
  594. * <fileset> and <dirset> now have an optional followsymlink attribute
  595. that can prevent Ant from following symbolic links on some platforms.
  596. * BeanShell is now supported in the <script> task.
  597. * <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans
  598. based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta
  599. this ejbc class has been deprecated. To avoid the deprecation warning use
  600. ejbcclass="weblogic.ejbc".
  601. * <ejbjar> will add a manifest to the generated jar based on the naming
  602. convention in use. This overrides the manifest specified in the
  603. <ejbjar> attribute
  604. Changes from Ant 1.4.1 to 1.5beta1
  605. ==================================
  606. Changes that could break older environments:
  607. --------------------------------------------
  608. * Important: Single $ signs are no longer silently stripped!
  609. Before you panic that we have broken all your build files, we have kept
  610. the old "$$" -> "$" behaviour. So only build files which accidentally had
  611. a $ sign in a string that was being silently stripped may break.
  612. We added this fix to stop newbie confusion; if you want to write a
  613. build file which works on ant versions 1.4.1 or earlier, stay with
  614. the double $$ sign rule.
  615. * Shipped XML parser is now Xerces 2.0.1 along with the XML Parser APIs.
  616. XML Parser APIs is a separate jar that contains the necessary
  617. JAXP/DOM/SAX classes.
  618. * <telnet> was fixed to expand properties inside nested <read> and
  619. <write> elements; before this only happened when you assigned the text
  620. to the string attribute. If you had $ signs in the string, they may
  621. need escaping.
  622. * the RegexpMatcher interface has been extended to support case
  623. insensitive matches and other options - custom implementations of
  624. this interface won't work any longer. We recommend to use the new
  625. Regexp interface that also supports substitution instead of the
  626. RegexpMatcher interface in the future.
  627. * <gzip> will throw an exception if your src attribute points to a directory.
  628. * Unjar, Unzip and Unwar will throw an exception if the Src attribute
  629. represents a directory. Support for nested filesets is provided
  630. instead.
  631. * It is no longer possible to overwrite a property using tasks like
  632. <condition>, <exec>, <pathconvert>, or <tstamp>. In some exceptional
  633. cases it will generate a warning if you attempt to overwrite an
  634. existing property.
  635. * Taskwriters please note: Whenever tasks had any overloaded set* methods,
  636. Ant's introspection mechanism would select the last overloaded method
  637. provided to it by the Java Runtime. A modification has now been made such
  638. that when the Java Runtime provides a method with a String as its argument,
  639. a check is made to see if there is another overloaded method that takes in
  640. some other type of argument. If there is one such method, then the method
  641. that takes in String as an argument is not selected by the Introspector.
  642. * The pattern definition **/._* has been included into the Default
  643. Excludes list.
  644. * <propertyfile>'s <entry> element was modified to remove "never" as a value
  645. as its behavior was undocumented and flakey.
  646. * The -projecthelp flag now only prints out targets that include the
  647. 'description' attribute, unless the -verbose or -debug flag is included
  648. on the Ant command line.
  649. * Ant's testcases now require JUnit 3.7 or above, as they now use the new
  650. assertTrue method instead of assert.
  651. * If the 'output' attribute of <ant> is set to a simple filename or a
  652. relative path, the file is created relative to ${basedir}, not ${user.dir}.
  653. * The default value for build.compiler is now javac1.x with x
  654. depending on the JDK that is running Ant instead of classic/modern.
  655. Fixed bugs:
  656. -----------
  657. * A bug existed that prevented generated log files from being deleted as
  658. part of the build process itself. This has now been fixed.
  659. * Fixed bug where <move> ignored <filterset>s.
  660. * Ant works properly with the combination of Java1.4/WindowsXP.
  661. * Fixed bug where <java> used to sometimes invoke class constructors twice.
  662. * Fixed bug with 4NT shell support.
  663. * Fixed bug where ant would not perform ftp without remotedir being
  664. specified even though this was not mandatory.
  665. * Fixed bug where ant would not copy system properties into new Project
  666. in ant/antcall tasks when inheritall="false" is set.
  667. * <propertyfile> would not close the original property file.
  668. * <ant> will no longer override a subbuild's basedir with inheritall="true".
  669. * Fixed problem with the built-in <junit> formatters which assumed
  670. that only one test could be running at the same time - this is not
  671. necessarily true, see junit.extensions.ActiveTestSuite.
  672. * <jar>'s whenEmpty attribute is useless as JARs are never empty, they
  673. contain at least a manifest file, therefore it will now print a
  674. warning and do nothing.
  675. * <typedef> hasn't been all that useful as it couldn't be used outside
  676. of targets (it can now) and nested "unknown" elements have always
  677. been considered to be tasks (changed as well).
  678. * <fixcrlf> would fail for files that contained lines longer than 8kB.
  679. * Some junit formatters incorrectly assumed that all testcases would
  680. inherit from junit.framework.TestCase.
  681. * <fixcrlf> dropped the first characters from Mac files.
  682. Other changes:
  683. --------------
  684. * Selector Elements now provide a way to create filesets based on
  685. sophisticated selection criteria.
  686. * Gzip and Bzip2 files can now be constructed in the fly when using
  687. the tar task without having to create the intermediate tar file on
  688. disk. The Untar task can also untar GZip and BZip2 files on the fly
  689. without creating the intermediate tar file.
  690. * New optional type, <classfileset> added.
  691. * <ejbjar> now allows control over which additional classes and interfaces
  692. are added to the generated EJB jars. A new attribute "dependency" can be
  693. defined which controls what classes are added. The addition of classes now uses
  694. the Jakarta-BCEL library rather than reflection, meaning bean classes are
  695. no longer loaded into Ant's JVM. The default dependency analyzer is known as
  696. the ancestor analyzer. It provides the same behaviour as the 1.4.1 version of
  697. <ejbjar>. If the BCEL library is not present, a warning will be issued stating
  698. the ancestor analyzer is not available. In this case <ejbjar> will continue
  699. to function but will not add super classes to the jar.
  700. * <available> has a new attribute named ignoreSystemClasses.
  701. * New task <cvschangelog/> generates an XML report of changes that occur
  702. on CVS repository.
  703. * New filter readers: ClassConstants, ExpandProperties, HeadFilter,
  704. LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens,
  705. StripJavaComments, StripLineBreaks, StripLineComments, TabsToSpaces,
  706. TailFilter.
  707. * <copy>, <loadfile>, <loadproperties>, <move> support FilterChains
  708. of FilterReaders.
  709. * New task <loadproperties> to load contents of file as Ant properties,
  710. with nested <filterchain> elements.
  711. * New task <loadfile> to load a whole file into a property.
  712. * New task <echoproperties> to list your current properties to the screen
  713. or a file.
  714. * New tasks <bzip2> and <bunzip2> to pack and unpack files using the
  715. BZip2 alogrithm.
  716. * New tasks <replaceregexp>, <checksum>, <translate>, <waitfor>,
  717. <manifest>, <vsscp>, <vssadd>, <vsscreate>, <splash>, <basename>, <dirname>,
  718. <concat>, <sourceoffsite>, <jarlib-available>, <jarlib-display>,
  719. <jarlib-manifest>, <jarlib-resolve>.
  720. * A new combined <mail> task, which replaces the old <mail> and
  721. <mimemail> tasks, has been added. The <mimemail> task, and
  722. old SendEmail and MimeMail classes have been deprecated.
  723. * Mail task allows specification of port number.
  724. * Users can control what <zip> and <jar> must do when duplicate files
  725. are found. A new element <zipgroupfileset> allows for multiple zip
  726. files to be merged into the archive. In addition, <jar> also has
  727. another new attribute: filesetmanifest. The existing manifest
  728. attribute of <jar> now also accepts the name of a jar added through
  729. a fileset.
  730. * gzip now checks that the zipfile is older than the source file
  731. before rebuilding the zipfile.
  732. * TarFileset takes in three new attributes - fullpath, prefix
  733. and preserveLeadingSlashes.
  734. * <move> attempts to rename the directory, if everything inside it is
  735. included, before performing file-by-file moves. This attempt will
  736. be done only if filtering is off and if mappers are not used. This
  737. is a performance improvement and there is no change otherwise in
  738. the funtionality of this task.
  739. * Exec task has extra attribute "resultproperty" to get the return code
  740. into a property.
  741. * Exec task prints a message when a timed-out process is killed.
  742. * Added optional attributes - name, arch and version to the <os> task.
  743. * Unjar, Untar, Unwar and Unzip now support patternsets to
  744. select files from an archive for extraction. Filesets may be
  745. used to select archived files for unarchival.
  746. * Javac task allows debug levels to be specified. Debug levels
  747. will have an effect only when the modern compiler or the
  748. classic compiler (version 1.2 and higher) is used and debugging
  749. is enabled.
  750. * Added support for specifying CVS_RSH in the <cvs/> task
  751. * The attributes zipfile, jarfile, warfile and earfile (from the Zip,
  752. Jar, War and Ear tasks) have been deprecated and superseded by a
  753. new attribute "destfile".
  754. * Added new conditions <isset>, <checksum>, <http>, <socket>, <contains>,
  755. <filesmatch>.
  756. * <taskdef> and <typedef> will now emit a warning if a task/type of
  757. the given name already exists.
  758. * A new revision of VAJ tasks: The most important new feature
  759. is the ability to execute VAJ tasks from the command line by
  760. exploiting the Remote Tool Access feature of VAJ.
  761. * Improved support for Novell NetWare.
  762. * Added an optional encoding attribute to <fixcrlf>.
  763. * <apply> has a new attribute relative that allows users to pass the
  764. filenames as relative instead of absolute paths on the command line.
  765. * References can now be copied into the child build by <ant> and
  766. <antcall> using nested <reference> elements or the new inheritRefs
  767. attribute.
  768. * <fail> now supports builds to fail based on conditions via if and
  769. unless attributes.
  770. * Ant now comes with two new BuildLogger implementations - one that
  771. can send emails containing a log of the build process (MailLogger),
  772. and one that colorizes the output based on message levels, using
  773. ANSI color code escape sequences (AnsiColorLogger).
  774. * A "package" mapper type has been added to allow package directory
  775. names replaced with the dotted form.
  776. * You can now specify environment variables in the <java> and <junit> tasks
  777. if the fork attribute has been set to true.
  778. * -propertyfile command-line option has been added to load an entire
  779. property file just as -D properties are declared (as user properties).
  780. -D properties take precedence over -propertyfile specified ones.
  781. * You can now set an ANT_ARGS environment variable to hold arguments you
  782. always want passed to the 'ant' command -- for example, if you always
  783. want to use a different logger or the -find flag.
  784. * <tstamp> now supports a new "prefix" attribute to prefix properties set.
  785. * You can now specify the -sourcepath for <javac> explicitly.
  786. * <javac> now supports a new "listfiles" attribute to list the source
  787. files it's handing off to the compiler.
  788. * The compiler implementation for <javac> can now be chosen on a task by
  789. task basis. The new "compiler" attribute of <javac> can be used to override
  790. the value of the build.compiler property, if set.
  791. * <javac> has a new nested element, <compilerarg>, which allows you
  792. to specify additional args for the specific compiler you're using.
  793. * <javac>'s "source" attribute is now enabled for jikes as well.
  794. * <propertyfile>'s <entry> now has a 'unit' attribute to specify the
  795. increment/decrement unit on date operations.
  796. * <property> now supports a 'prefix' attribute when loading from a file
  797. or resource.
  798. * In Ant 1.4, a feature has been added to the <junit> task that would
  799. add ant.jar, optional.jar and junit.jar implicitly to the classpath -
  800. this feature can now be disabled by setting the new includeantruntime
  801. attribute to false.
  802. * <style> behaves differently from any other directory-based task, as it
  803. processes all files that it finds in included directories in
  804. addition to the files matched by your patterns. There is now a new
  805. attribute, 'scanincludeddirectories', to suppress this behavior.
  806. * <javadoc> now supports a <tag> nested element to provide the -tag option
  807. to the standard Java 1.4 doclet. The element is ignored when not running
  808. on Java 1.4.
  809. * <ftp> can now chmod files on a remote server that supports
  810. "site chmod", as well as set the umask before transferring files, if
  811. the server supports "site umask".
  812. * New <serverdeploy> "optional" task.
  813. * <patternset> now supports nested patternsets.
  814. * Perforce tasks now support a "failonerror" attribute (defaults to "true").
  815. * Open Source application server JOnAS support:
  816. EJB hot deploy and deploy with <serverdeploy> and <ejbjar>
  817. * Added new DirSet (<dirset>) datatype.
  818. * <path> now supports nested <dirset> and <filelist> elements.
  819. * <pathconvert> now supports nested <dirset> and <filelist> elements.
  820. * <pathconvert>'s "dirsep" and "pathsep" attributes now accept
  821. multi-character values.
  822. * <copy> task now has a 'failonerror' attribute to allow keep-going
  823. behaviour when the file to be copied is not found (defaults to "true").
  824. * <uptodate> now has a 'srcfile' attribute to allow specifying a
  825. full-path filename.
  826. * <exec>, <sql> and <java> now support append attributes to allow
  827. appending the output to an existing file.
  828. * <java> now supports a timeout attribute analog to <exec> - it is
  829. highly recommended to only use it together with fork="true".
  830. * <javadoc> now supports a source attribute to enable javadoc to
  831. handle assertions present in JDK 1.4 source code.
  832. * <replace> supports a new replacefilterfile attribute that
  833. automatically turns all properties of a given file into
  834. replacefilters.
  835. * An alias of <xslt> has been added to refer to the <style> task.
  836. * The compiler implementation for <rmic> can now be chosen on a task by
  837. task basis. The new "compiler" attribute of <rmic> can be used to override
  838. the value of the build.rmic property, if set.
  839. * <rmic> has a new nested element, <compilerarg>, which allows you
  840. to specify additional args for the specific compiler you're using.
  841. * org.apache.tools.ant.XmlLogger now is a BuildLogger, rather than just
  842. a BuildListener. It can operate in either mode successfully.
  843. * <junit> has a new attribute "showoutput". If set to true, output
  844. generated by tests will be sent to Ant's logging system as well as
  845. to the formatters (instead of sending it to the formatters
  846. exclusively).
  847. * Ant has now a pluggable way to prompt users for input, which is used
  848. by the new <input> task. IDE integrators can provide an
  849. implementation of the InputHandler interface to decouple Ant's input
  850. from the console. An implementation that gets its input from a file
  851. for unattended builds is part of Ant's distribution.
  852. For more details see docs/manual/inputhandler.html.
  853. * <patch> has a new attribute that selects the directory in which to
  854. run the command.
  855. * <javadoc> now supports two new nested elements, <fileset> and <packageset>.
  856. Changes from Ant 1.4 to Ant 1.4.1
  857. ===========================================
  858. Fixed bugs:
  859. -----------
  860. * <ant>'s antfile attribute will now also be considered an absolute path on
  861. Windows systems, if it starts with a \ and no drive specifier.
  862. * The fullpath attribute of <zipfileset> has been ignored if you used
  863. the src attribute at the same time.
  864. * The manifest file is now always placed as the second entry (after /META-INF)
  865. in generated jars. This allows the manifest to be read by JarInputStreams
  866. * Fixed bug in depend task which would fail with a NullPointerException if no
  867. dependency cache was specified.
  868. * sql task now handles REM statements correctly so that lines starying with rem
  869. but which are not comments are actually processed.
  870. * XMLLogger now uses the task's name rather than the classname
  871. * <mapper>s will now work as expected if the to pattern expands to an
  872. absolute pathname.
  873. * <javac> didn't ignore memory settings in non-fork mode
  874. * <cab> didn't split the options attribute into several command line
  875. arguments correctly.
  876. Other changes:
  877. --------------
  878. * New source attribute for <javac> to enable assertion in JDK 1.4
  879. * XmlLogger and <antstructure> now add an encoding declaration to the
  880. XML files they generate.
  881. * <fileset> has a new attribute "casesensitive" to make it match
  882. filenames in a case insensitive way (if you set it to false) - by
  883. default filesets remain case sensitive.
  884. Changes from Ant 1.3 to Ant 1.4
  885. ===========================================
  886. Changes that could break older environments:
  887. --------------------------------------------
  888. * JUnitReport now uses the xalan redirect extension for multi-output.
  889. With Xalan 1.2.2 it forces the use of bsf.jar in the classpath.
  890. (Available in the xalan distribution). It is recommended to switch
  891. to Xalan 2.x that do not need it.
  892. * Zip.setWhenempty() has changed its signature.
  893. * <rmic> is now implemented using a factory. This makes extending
  894. rmic to use a new compiler a lot easier but may break custom
  895. versions of this task that rely on the old implementation.
  896. * several Zip methods have changed their signature as we now use a Zip
  897. package of our own that handles Unix permissions for directories.
  898. Furthermore <zip> will now use the platform's default character
  899. encoding for filenames - this is consistent with the command line
  900. ZIP tools, but causes problems if you try to open them from within
  901. Java and your filenames contain non US-ASCII characters. Use the new
  902. encoding attribute of the task and set it to UTF8 to get the old
  903. behavior.
  904. * The <pvcs> task has been moved to a package of its own.
  905. * JUnitResultFormater has two additional methods that must be
  906. implemented by custom formatters.
  907. * Ant will no longer use the canonical version of a path internally -
  908. this may yield different results on filesystems that support
  909. symbolic links.
  910. * The output generated by the xml formatter for <junit> has changed
  911. again, it doesn't format the numeric value in the time attribute anymore.
  912. * Pattern matching rules have changes slightly, the pattern foo*
  913. doesn't match files contained in a directory named foo - use foo/*
  914. instead.
  915. * <fixcrlf> will not remove trailing whitespace at the end of lines anymore.
  916. * The Classloader usage has been changed for the taskdef, property, available
  917. and sql tasks so that it delegates to the parent classloader. This may cause
  918. ClassNotFoundExceptions to be thrown if a system class attempts to load a
  919. class in the taskdef's classpath (typically factory objects).
  920. * Ant now allows multithreading of tasks and the containment of tasks within
  921. other tasks. This can break customer listeners which do not expect messages
  922. from a task before the previous task has finished.
  923. * Ant now installs its own ouput stream into System.out to route output to the
  924. task currently executing on the current thread. This also means that all
  925. output is now routed as Ant message events. Customer listeners and loggers
  926. should not call System.out at any time. This has always been true but such
  927. usage now will cause problems due to possible recursion.
  928. * Invalid manifest files will now cause build failures in the <jar> task.
  929. * Ant Introspection now looks for methods with method names starting with
  930. addConfigured. When called these methods are passed an argument after it has
  931. been configured from the build file. Custom tasks supporting nested elements
  932. starting with the name configured will no longer function.
  933. * The environment variable JAVACMD that can be used to specify the
  934. java executable to Ant's wrapper scripts must not contain additional
  935. command line parameters any longer - please use the environment
  936. variable ANT_OPTS for such parameters now.
  937. * Ant's wrapper scripts now quote the CLASSPATH environment variable, thus
  938. supporting classpaths which refer to directories containing spaces. This means
  939. that the CLASSPATH environment variable cannot have quotes. Any quotes should
  940. be removed. This will not affect the operation of the CLASSPATH environment
  941. variable in other contexts.
  942. * A delete task like
  943. <delete includeEmptyFilesets="true">
  944. <fileset dir="somedir" />
  945. </delete>
  946. will now remove "somedir" as well, unless there are still files left
  947. in it (matched by the default excludes).
  948. * The copy task will now fail if the file to be copied is not found.
  949. * Ant properties defined in properties files now behave the same way as
  950. properties defined in the build file. In particular the $ character needs
  951. to be escaped in property values by doubling it to $$. So, to define a
  952. property with the value $hello, you need to define it in a properties file
  953. as
  954. test.prop=$$hello
  955. This was not the case in Ant 1.3
  956. Other changes:
  957. --------------
  958. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  959. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset,
  960. condition, maudit, mmetrics, jpcoverage, jpcovreport, jpcovmerge
  961. * Ant now uses JAXP 1.1
  962. * rmic now supports Kaffe's and Weblogic's version of rmic.
  963. * new magic property build.rmic to chose the rmic implementation
  964. * <tar> will now add empty directories as well
  965. * you can now specify a description for <p4change>
  966. * <touch> can now work on <fileset>s
  967. * <uptodate> now supports a value attribute
  968. * <fail> supports nested text
  969. * <fixcrlf> won't override files that are already in the correct
  970. format.
  971. * <sql> now supports REM comments as well as // and --
  972. * <jar> now has a nested <metainf> element following the same idea as
  973. <war>'s <webinf>.
  974. * <pvcs> can now handle multiple projects.
  975. * <available> now has a "type" attribute you can use in conjunction
  976. with the "file" attribute to specify whether the "file" you're
  977. looking for is a file or a directory.
  978. * New <junit> formatter named "brief"
  979. * <ejbjar> changes
  980. * Add support for Borland Application Server to the <ejbjar> task using
  981. a <borland> nested element.
  982. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  983. includes some iPlanet utility tasks
  984. * Add support for JBoss Application Server to the <ejbjar> task.
  985. * Add a naming attribute to control the naming scheme that
  986. ejbjar uses to name the generated EJB jars.
  987. * Weblogic element now sets the compiler class for EJB 2.0 beans
  988. * <dtd> elements can be specified at the <ejbjar> level for building generic
  989. beans
  990. * <dtd> elements can now be URLs
  991. * Allow the manifest to be specified for the generated jars
  992. * The weblogic element now supprts an attribte noEJBC to skip the processing
  993. of the jar by ejbc. The ejbc step will then occur at deployment
  994. * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to
  995. jikes. It can be restored to the default, javac, operation if desired.
  996. * Allow the <sql> Delimiter to be set in the so that Oracle stored procs may be
  997. entered
  998. * <execon> and <apply> can now optionally skip empty filesets.
  999. * <javadoc> has a new useexternalfile attribute that makes it use a
  1000. temporary file for sourcefile and package names - helps to defeat
  1001. command line length limitations.
  1002. * Data types like <path> can now be defined inside of <target>s
  1003. * you can now specify a classpath for <style> - the XSLZ processor
  1004. will be loaded from this path
  1005. * added a force attribute to <style> to support dependencies that the
  1006. task cannot determine itself (dependency on parameters, not file
  1007. modification times for example)
  1008. * added vmlauncher attribute to exec tasks. This defaults to true. If
  1009. it is set to false, the VM's ability to launch commands in bypassed
  1010. and the OS shell, either directly or through the auxillary antRun
  1011. scripts is used.
  1012. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  1013. * New filesonly attribute for <zip> and friends to suppress directory
  1014. entries.
  1015. * New update attribute for <zip> and friends - update an existing
  1016. archive instead of creating a new one.
  1017. * <apply> and <execon> have been merged into a single task.
  1018. * added vssver.scc to the default excludes
  1019. * <available> has a new filepath attribute/nested element that allows
  1020. you top search for a file in a given path.
  1021. * <junit> can now optionally set a property on test failure.
  1022. * <taskdef> can now define several tasks at once, reading the
  1023. name/classname pairs from a property file or resource.
  1024. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  1025. defaults to true. If set to false, files that are newer than the
  1026. files in the archive will not be replaced.
  1027. * <patternset> and <fileset> now support nested <in/excludesfile>
  1028. elements - using these you can have more than one in/excludes file
  1029. per <patternset>.
  1030. * Three new supported compilers for javac: kjc for kopi, gcj for the
  1031. gcc frontend and sj for Symantec's compiler.
  1032. In addition extJavac or the new fork attribute can be
  1033. used to run the JDK's javac in a JVM separate from Ant.
  1034. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  1035. between 2 and 80.
  1036. * The .NET tasks have been adapted to the beta2 release of the framework.
  1037. * <move> will now try to rename() files before copying them byte by
  1038. byte - only if filtering is of, of course.
  1039. * <ant> and <antcall> tasks now support a new attribute inheritAll. When set to
  1040. false, only user properties are passed through to the target Ant instance.
  1041. This includes properties set on the command line and properties explicitly
  1042. passed
  1043. * <javadoc> now skips off line links if the package list cannot be found.
  1044. * <wlrun> now allows the security policy file to exist outside the weblogic
  1045. directory.
  1046. * <java> task will set the Thread contextClassLoader under JDKs 1.2+ to the
  1047. classloader for the class being executed.
  1048. * Introduce the concept of a TaskContainer - a task or element which can contain
  1049. Ant Tasks.
  1050. * Add new tasks implementing the TaskContainer interface <parallel> and
  1051. <sequential> which allow parallel execution of tasks to be specified.
  1052. * <depend> task will now take into account dependencies on jar files and class
  1053. files from a given classpath.
  1054. * <jar> manifest entries may now be specified in the build file either
  1055. completely or to be merged with a manifest file.
  1056. * <tstamp> task custom formats now support locales.
  1057. * Added a listner which will forward events to Log4J. The log4j configuration
  1058. file should be in the directory from which Ant is run or passed as a system
  1059. property using a JVM argument.
  1060. * Introduced the concept of <filtersets> to allow for more control in which
  1061. filters get applied in a <copy> or <move> operation.
  1062. * Added nowarn attribute to javac and deprecated the Jikes-magic property
  1063. build.compiler.warnings.
  1064. * The <depend> task cache format has changed and all dependency information is
  1065. now stored in a single file.
  1066. Fixed bugs:
  1067. -----------
  1068. * Testcases have been made independent of current working directory.
  1069. * Input ZIP-Files will be closed when using a <zipfileset>.
  1070. * p4 tasks now don't fail if user, port or client have been omitted
  1071. (and this is acceptable for the context of the command).
  1072. * <javah>'s outputfile attribute will be resolved as relative to the
  1073. projects basedir.
  1074. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  1075. and omit tasks it fails to load.
  1076. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  1077. * <style>'s style attribute no handles absolute paths correctly.
  1078. * <delete includeemptydirs="true"> now deletes more than just the leaf
  1079. directories.
  1080. * You can now specify a <fileset> for a directory that doesn't exist at
  1081. declaration time but will created before the fileset gets used for the
  1082. first time.
  1083. * If the quiet attribute has been set, <delete> will handle <fileset>s
  1084. with non-existing directories gracefully.
  1085. * Output written by testcases will now be captured by the <junit> task
  1086. and passed to the formatters.
  1087. * Quote the -group parameter to Javadoc as per the specification
  1088. * Initialise classes when loaded through the AntClassLoader - that is, run
  1089. static initializers
  1090. * Implement getResource() and getResources() in AntClassLoader
  1091. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  1092. as a single line. Avoids problems with paths which contain spaces.
  1093. * <ejbjar> now fails when the weblogic ejbc compiler reports an error.
  1094. * Make the AntClassLoader load resources in the same order as it currently
  1095. loads classes.
  1096. * Handle classpaths with spaces
  1097. * Make sure XSLT processors close their output files in <style>.
  1098. * perform proper uptodate check in <rmic> when compiling for IIOP.
  1099. * <jjtree>'s uptodate test works even if outputdirectory is not the
  1100. parent dir of target
  1101. * <copy> will remove target file (if it exists) before writing to it -
  1102. this avoids problems with links on filesystems that support them.
  1103. * <ftp> now properly recurses remote directories.
  1104. * <ftp> closes remote connection when it's done.
  1105. * <junit> tries to include all necessary classes for the task itself
  1106. to the classpath when running in fork mode - doesn't work for JDK 1.1
  1107. * <apply> and <execon> do now execute the command only once, if you
  1108. specify the parallel attribute - instead of once per fileset.
  1109. * directory based tasks and fileset could miss some included files in
  1110. directories that have been excluded
  1111. * <fixcrlf> failed for large files.
  1112. * <move> removed files you tried to move to themselves.
  1113. * <sql> task will not trty to print the result set unless the query succeeded.
  1114. * Ant classloader will now ignore paths which are invalid relative to the
  1115. project base
  1116. * <ejbjar> weblogic elements check for jar file changes has been fixed.
  1117. Previously some changes would not be included.
  1118. * properties loaded from properties files are now resolved internally. This
  1119. removes the spurious warnings about usage of properties which have not been
  1120. set.
  1121. * <jar> task and friends now process the JAR manifest to ensure it is valid.
  1122. * The task finished event now includes any exception thrown by the task.
  1123. * <java> task now supports a jvmVersion attribute so that if another JVM is
  1124. being used, Ant can determine which options to use for features such as the
  1125. VM memory limits
  1126. Changes from Ant 1.2 to Ant 1.3
  1127. ===========================================
  1128. Changes that could break older environments:
  1129. --------------------------------------------
  1130. * Ant doesn't search for the buildfile anymore, unless you use the new
  1131. -find argument.
  1132. * <perforce> has been replaced by a number of new tasks.
  1133. * <javac> is now implemented using a factory. This makes extending
  1134. javac to use a new compiler a lot easier but may break custom
  1135. versions of this task that rely on the old implementation.
  1136. * The output generated by the xml formatter for <junit> has changed a
  1137. little, it doesn't append " sec" in the time attribute anymore.
  1138. Other changes:
  1139. --------------
  1140. * A GUI Frontend: Antidote. This is currently in development. At this
  1141. time, this is not part of the Ant release, although the source is
  1142. included if you are interested.
  1143. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  1144. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  1145. * Added output attribute to <java>.
  1146. * Added nested zipfileset element to <zip>
  1147. * Changed <sql> so that printing is at the task level rather than
  1148. the statement level.
  1149. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  1150. given. If the doclet does not accept the -d flag then omit the destdir
  1151. attribute.
  1152. * <cab> can work on non-Windows platforms with the help of libcabinet.
  1153. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  1154. * <ftp> now supports passive mode.
  1155. * New <mapper> data type that can be used to get influence on the
  1156. target files for some tasks like <copy> or enable new types of tasks
  1157. like <apply>.
  1158. * <execon> provides more control over the command line now, the names
  1159. of the source files are no longer required to be at the end of the
  1160. command.
  1161. * Style tasks will now support TraX compliant XSL processors if one is present
  1162. in your classpath.
  1163. * Added a failonerror to the javac task. If set to false, the build will
  1164. continue even if there are compilation errors.
  1165. * Added nested format elements to the tstamp task allowing additional time
  1166. formats to be defined for arbitrary properties.
  1167. * Added classpath attribute and nested classpath element to <property>
  1168. to make the resource attribute more powerful.
  1169. * ${} property expansion will now be performed on the patterns read
  1170. from files specified as includesfile or excludesfile attributes.
  1171. * The <tar> and <untar> tasks now support GNU format for handling paths
  1172. which are greater than 100 characters in length. In addition the <tar>
  1173. task now supports nested filesets through which the file permissions
  1174. may be controlled.
  1175. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  1176. * The MPasre task has been updated to work with MParse 2.0
  1177. * The documentation has been significantly updated.
  1178. Fixed bugs:
  1179. -----------
  1180. * <signjar> doesn't use deprectated methods anymore.
  1181. * javadoc's failonerror attribute works again
  1182. * javadoc's additionalparam attribute will now be split into separate
  1183. parameters (on spaces) to allow for more than one parameter.
  1184. * Changed <sql> task so that printing result sets works on Oracle
  1185. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  1186. keppgenerated in ejbc can now be turned off
  1187. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  1188. CMP files are included by parsing the weblogic deployment descriptor rather
  1189. than relying on the naming convention used in ant 1.2
  1190. * ejbjar includes super classes and super interfaces into the generated ejb
  1191. jar files. The <support> nested element allows support classes to be
  1192. included in the EJB jar. The toplink element should now correctly locate
  1193. the toplink descriptor.
  1194. * <vssget> now correctly deals with spaces in arguments
  1195. * <jar> fails early if a given manifest file doesn't exist
  1196. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  1197. set to 1.2.
  1198. * <rmic> uses the the same classpath to verify a class can be rmic'd
  1199. as it passes to the compiler.
  1200. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  1201. handle SMTP servers sending multi line responses.
  1202. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  1203. nested into <target> as well.
  1204. * <property> and <available> will search for the resource "foo" instead
  1205. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  1206. name foo.
  1207. * Handle build files in directories whose name contained a "#" character
  1208. * <junit> can now log to files whose name contains a comma as well.
  1209. * The AntClassLoader now refers to the loader which loaded it, any
  1210. requests it does not handle itself. Previously these went to the
  1211. primordial loader.
  1212. Changes from Ant 1.1 to Ant 1.2
  1213. ===============================
  1214. Changes that could break older environments:
  1215. --------------------------------------------
  1216. * Semantics of <property> has changed again in the hope to be more
  1217. intuitive. ${} expansion now happens at runtime and <property> tags
  1218. living inside of targets only take effect if they are visited at
  1219. runtime.
  1220. As a side effect of this change, task's attributes get set at runtime
  1221. not at parser time as well, which might change the results of
  1222. <script>s or other custom tasks that reference other tasks by their id
  1223. attribute.
  1224. * copying of support files in <javac> has been removed - as well as
  1225. the filtering attribute.
  1226. * the <expand> and <keysubst> tasks have been removed.
  1227. * the ignore and items attributes of directory based tasks have been removed.
  1228. * the command line switches _not_ starting with - have been removed.
  1229. * Path and EnumeratedAttribute have been moved from
  1230. org.apache.tools.ant to org.apache.tools.ant.types.
  1231. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  1232. have been removed.
  1233. * the src attribute of <chmod> has been removed.
  1234. * <patch> and <javadoc> have lost some of their attributes.
  1235. * <java> and <cvs> have lost some undocumented attributes.
  1236. * the Unix antRun script would search for command.sh in the directory
  1237. it changed to and invoke this instead of command if present. This
  1238. behavior has been dropped.
  1239. * <ejbjar> task syntax has been changed significantly
  1240. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  1241. Custom tasks that rely on Project.createTask("exec") to return an
  1242. instance of this class are going to fail.
  1243. * nested <include> and <exclude> elements expect the value of their
  1244. name attribute to be a single pattern, they don't accept multiple
  1245. patterns anymore. Split them into multiple elements of the same type.
  1246. * <delete dir="somedir" /> will now delete the directory itself as
  1247. well as all included files. If you just want to clean out the
  1248. directory and keep the empty one, use a nested fileset.
  1249. Other changes:
  1250. --------------
  1251. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  1252. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  1253. native2ascii, copy, move, mparse.
  1254. * copydir, copyfile, deltree and rename are now deprecated. They
  1255. should be replaced with the new copy, delete and move tasks.
  1256. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  1257. specified.
  1258. * <style> will create the necessary target directories and reprocess
  1259. all files if the stylesheet changes.
  1260. * New data types fileset and patternset - expected to get a broader use.
  1261. They, as well as PATH like structures, can now be defined on a global
  1262. level and later be referenced by their id attribute.
  1263. * You can specify environment variables to <exec>.
  1264. * <get> can check whether a remote file is actually newer than a local
  1265. copy before it starts a download (HTTP only).
  1266. * Added a -logger option to allow the class which performs logging to be
  1267. specified on the command line.
  1268. * Added a -emacs option to tell the logger to leave out taskname adornments
  1269. on log output.
  1270. * <chmod> works on all files in parallel and supports multiple filesets.
  1271. * <replace> can now use tokens and/or values that cross line boundaries.
  1272. * build.compiler supports now jvc as well.
  1273. * project specific help can now be obtained with the -projecthelp option.
  1274. * Added a -debug option to make -verbose less verbose (and more useful)
  1275. * Ant will now search for a file named build.xml in the parent directory
  1276. and above (towards the root of the filesystem) if you didn't specify
  1277. -buildfile and there is no build.xml in the current directory.
  1278. * <echo> can now write to a file and accepts nested text.
  1279. Fixed bugs:
  1280. -----------
  1281. * <chmod> didn't work when used as a directory based task.
  1282. * Path, Available, Property didn't resolve relative filenames with
  1283. respect to the Project's basedir.
  1284. * Project didn't interpret the basedir attribute correctly in all
  1285. cases.
  1286. * Nested <src> in <javac> caused NullPointerException.
  1287. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  1288. * many more fixes we've forgotten to document here ...
  1289. * The packagelistloc attribute of <javadoc>'s <link> child will be
  1290. resolved as a file (i.e. it is either absolute or relative to
  1291. basedir).