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

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