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

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