You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WHATSNEW 106KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901
  1. Changes from Ant 1.6.2 to Ant 1.6.3
  2. ===================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * The subant task used the canonical version of a file path. This
  6. has been changed to use the absolute path. Bugzilla 30438.
  7. * Tar now writes two EOF blocks rather than one.
  8. Bugzilla report 28776
  9. * The Reference object now has a project field which it uses in preference
  10. to the project passed in. This allows composite references to be
  11. handled to nested projects.
  12. Bugzilla report 25777
  13. * <junit> with filtertrace="true" will now also swallow lines for the
  14. sun.reflect package. If you need to see them in your stack trace,
  15. you must set filtertrace to false.
  16. Bugzilla Report 22758
  17. * The jikes compiler adapter now supports -bootclasspath, -extdirs and
  18. -sourcepath and also uses the same logic for debug flags as javac.
  19. This means, the jikes compiler adapter now requires Jikes 1.15 or later.
  20. Bugzilla Reports 25868, 26404 and 32609.
  21. * Targets with identical name work in imported project. Bugzilla Report 34566.
  22. * The gcj compiler adapter used to include the Java runtime classes
  23. even if includeJavaRuntime was set to false, unless the
  24. bootclasspath has been specified as well. It will now always adhere
  25. to includeJavaRuntime, you may need to set it to true explicitly now
  26. if you relied on the old behavior.
  27. Other changes:
  28. --------------
  29. * <javadoc> can now take an attribute 'executable'. Bugzilla report 30606.
  30. * New attribute ignorecontents for <different> selector
  31. * Javadoc fixes for Location, Project, and RuntimeConfigurable
  32. Bugzilla 30160.
  33. * Enable to choose the regexp implementation without system property.
  34. Bugzilla Report 15390.
  35. * Expose objects and methods in IntrospectionHelper. Bugzilla Report 30794.
  36. * Allow file attribute of <move> to rename a directory.
  37. Bugzilla Report 22863.
  38. * Add xmlcatalog nested element to XmlProperty. Bugzilla report 27053.
  39. * New attribute alwayslog for <redirector> type.
  40. * Added <target> nested elements to <ant> and <antcall> to allow
  41. specification of multiple sub-build targets, which are executed
  42. with a single dependency analysis.
  43. * Refactored Target invocation into org.apache.tools.ant.Executor
  44. implementations. Bugzilla Reports 21421, 29248.
  45. * <rmic> now also supports Kaffe's rmic version shipping with Kaffe
  46. 1.1.2 and above.
  47. * added casesensitive attribute to <globmapper> and <regexpmapper>
  48. Bugzilla report 16686
  49. * added handledirsep attribute to <globmapper> and <regexpmapper>
  50. Bugzilla report 32487
  51. * added a new mapper <filtermapper>
  52. * When a BuildListener tried to access System.err or System.out, Ant
  53. would have thrown an exception - this has been changed. Ant now
  54. silently ignores the message. BuildListeners still should avoid
  55. accessing either stream.
  56. * Added a comment attribute to the zip task.
  57. Bugzilla report 22793.
  58. * Overloaded FileUtils.createNewFile with a boolean mkdirs attribute
  59. to create nonexistent parent directories.
  60. * <apply> has a new "force" attribute that, when true, disables
  61. checking of target files.
  62. * Made the dest attribute of the apply task optional; mapped target
  63. filenames will be interpreted as absolute pathnames when dest is omitted.
  64. * Changed default tempdir for <javac> from user.dir to java.io.tmpdir.
  65. * Added searchpath attribute to <exec> for searching path variable(s)
  66. when resolveexecutable = true.
  67. * Added revision and userid attributes to <pvcs> documentation.
  68. * Added support to the touch task for a mkdirs attribute to create
  69. nonexistent parent directories before touching new files.
  70. * Added support to the touch task for a pattern attribute to allow
  71. alternate datetime formats.
  72. * Added support to the touch task to map touched files using a nested
  73. mapper element.
  74. * Added support to the touch task for a verbose attribute to suppress
  75. logging of new file creation.
  76. * bad link in docs to the enhancement page in bugzilla.
  77. Bugzilla report 33252.
  78. * Added length task to get strings' and files' lengths.
  79. * <native2ascii> and <javah> now also support Kaffe's versions.
  80. * Recursive token expansion in a filterset can now be disabled by
  81. setting its recurse attribute to false.
  82. * Pathconvert no longer requires that one of (targetos|pathsep|dirsep)
  83. be set; platform defaults are used when this is the case.
  84. * Added preservelastmodified attribute to fixcrlf task. Bugzilla 25770.
  85. * Added isfileselected condition.
  86. * Added verbose="true|false" attribute to <subant>. When verbose is enabled,
  87. the directory name is logged on entry and exit of the sub-build. Bugzilla 33787.
  88. * Added -nouserlib option to allow running ant without automatically loading
  89. up ${user.home}/.lib/ant. This is useful when compiling ant, and antlibs.
  90. Modified the build.sh and build.bat to use the option.
  91. * Added -noclasspath option to allow running ant WITHOUT using CLASSPATH env
  92. variable. Modified ant.bat to do this so that %CLASSPATH% is not looked at.
  93. * Add else attribute to the condition task, which specifies an
  94. optional alternate value to set the property to if the nested
  95. condition evaluates to false. Bugzilla report 33074.
  96. * Ant generated jar files should now be detected as jar files by
  97. Solaris. Bugzilla Report 32649.
  98. * Added two tutorials
  99. - beginner: introduction into Ant
  100. - task developers: using path, fileset etc
  101. * <rpm> has new attributes failonerror and quiet.
  102. Fixed bugs:
  103. -----------
  104. * Do not pass on ThreadDeath when halting <java fork="false">. Bugzilla
  105. 32941.
  106. * Killing a thread running <java fork="true"> (e.g. from an IDE) would
  107. not stop the forked process. Bugzilla 31928.
  108. * Programs run with <java fork="true"> can now accept standard input
  109. from the Ant console. (Programs run with <java fork="false"> could
  110. already do so.) Bugzilla 24918.
  111. * AbstractCvsTask prematurely closed its outputStream and errorStream.
  112. Bugzilla 30097.
  113. * Impossible to use implicit classpath for <taskdef>
  114. when Ant core loader != Java application loader and
  115. Path.systemClassPath taken from ${java.class.path} Bugzilla 30161.
  116. * MacroInstance did not clean up nested elements correctly in the execute
  117. method, causing multiple use of the same macro instance with nested
  118. elements to fail.
  119. * checksum fileext property doc wrong. Bugzilla 30787.
  120. * FTP task, getTimeDiff method was returning wrong value. Bugzilla 30595.
  121. * Zip task was not zipping when only empty directories were found.
  122. Bugzilla 30365.
  123. * Jar task was not including manifest files when duplicate="preserve" was
  124. chosen. Bugzilla 32802.
  125. * Classpath was treated in the same way as -lib options. Bugzilla 28046.
  126. * Manual page for cvsversion contained incorrect attributes and did not
  127. say since 1.6.1. Bugzilla 31408.
  128. * Typo in definition of <cvsversion> task causing it not to be defined.
  129. Bugzilla 31403.
  130. * Execution of top level tasks in imported files get delayed by targets.
  131. Bugzilla report 31487.
  132. * ExecTask executes checkConfiguration() even though os does not match.
  133. Bugzilla report 31805.
  134. * Concat task instance could not be run twice.
  135. Bugzilla report 31814.
  136. * NPE using XmlLogger and antlib.
  137. Bugzilla report 31840.
  138. * Properties.propertyNames() should be used instead of .keys().
  139. Bugzilla report 27261.
  140. * Target location is not set for default target.
  141. Bugzilla report 32267.
  142. * Incorrect classloader parent in junittask when using with
  143. ant-junit.jar and junit.jar not in the project classloader. Bugzilla
  144. report 28474.
  145. * getResources() on the classloader returned by ClasspathUtils would
  146. see each resource twice - if the resource is in the project
  147. classpath and if the classloader is requested with a null path.
  148. * XMLValidate used URL#getFile rather than the ant method FileUtils#fromURI
  149. Bugzilla report 32508
  150. * fixed Regexp-Mapper docs which gave outdated instructions (optional.jar)
  151. Bugzilla report 28584
  152. * <scp> using <fileset> didn't work with OpenSSH 3.9 and later.
  153. Bugzilla report 31939
  154. * <setproxy> failed to set user/password on some JDKs.
  155. Bugzilla report 32667
  156. * untar would go into infinite loop for some invalid tar files.
  157. Bugzilla report 29877
  158. * forked <javac> won't pass -source to a JDK 1.1 or 1.2 javac anymore.
  159. Bugzilla report 32948
  160. * propertyset references did not handle nested propertyset references.
  161. * oata.types.Description.getDescription(Project) would throw a
  162. NullPointerException when the "ant.targets" reference was unset.
  163. * Wrapper scripts did not detect WINNT value of dynamic OS environment
  164. variable when logged into workstations using Novell authentication.
  165. Bugzilla Report 30366.
  166. * DependScanner.getResource() always returned nonexistent resources,
  167. even when the resource actually existed. Bugzilla Report 30558.
  168. * <apply> was broken with classfilesets. Bugzilla Report 30567.
  169. * <available> returned false positives when checking a file
  170. passed in with the current basedir leading twice:
  171. e.g. ${basedir}${file.separator}${basedir}${file.separator}foo .
  172. * The first file open that took place when using input files with the
  173. <exec>, <apply>, or <java> tasks was always logged to System.out
  174. instead of to the managing Task.
  175. * <telnet> and <rexec> would try to disconnect from servers they never
  176. connetced to, potentially leading to exceptions in commons-net.
  177. Bugzilla Report 33618.
  178. * <zip> would drop files matched by defaultexcludes during updates.
  179. Bugzilla Report 33412.
  180. * <zip> couldn't store files with size between 2GB and 4GB (the
  181. upper limit set by the ZIP format itself). Bugzilla Report 33310.
  182. * NPE when when <presetdef> tries to configure a task that
  183. cannot be instantiated. Bugzilla Report 33689.
  184. * <javac debug="false"> created an invalid command line when running
  185. the Symantec Java compiler.
  186. * Get with usetimestamp did not work on Java 1.2.
  187. * Get with usetimestamp did not work when local timestamp roughly >= now.
  188. * The framed JUnit report now handles multiple reports for the same
  189. testcase properly. Bugzilla Report 32745.
  190. * <cab> didn't work for files with spaces in their names on Windows.
  191. Bugzilla Report 17182.
  192. * The VAJ tasks could fail if the project name contained characters
  193. that need to get URL encoded. Bugzilla Report 23322.
  194. * The FTP task could crash with an ArrayIndexOutOfBoundsException
  195. Bugzilla Report 28797
  196. * Improved handling of paths on cygwin
  197. Bugzilla Report 31245
  198. * TarInputStream#read() wasn't implemented correctly. Bugzilla Report
  199. 34097.
  200. * <xslt> failed to process file-hierarchies of more than one level if
  201. scanincludeddirectories was true. Bugzilla Report 24866.
  202. * forkmode="perBatch" or "once" would ignore extension attributes that
  203. had been specified for <formatter>s. Bugzilla Report 32973.
  204. * minor performance update of Locator.fromUri. Bugzilla Report 34529.
  205. * The refid attribute of the I/O redirector was not functional.
  206. * SQL task would try access result sets of statements that didn't
  207. return any, causing problems with Informix IDS 9.2 and IBM DB2 8.1
  208. FixPak 6 (or later). Bugzilla Reports 27162 and 29954.
  209. * make sure that Zip and its derivates call the createEmptyZip method when
  210. there are no resources to zip/jar/...
  211. * ant.bat was missing runAntNoClasspath label for goto.
  212. Bugzilla 34510.
  213. Changes from Ant 1.6.1 to Ant 1.6.2
  214. ===================================
  215. Changes that could break older environments:
  216. --------------------------------------------
  217. * The import task used the canonical version of a file path. This
  218. has been changed to use the absolute path. Bugzilla 28505.
  219. * ant-xalan2.jar has been removed since the only class contained in it
  220. didn't depend on Xalan-J 2 at all. Its sole dependency has always
  221. been TraX and so it has been merged into ant-trax.jar.
  222. * All exceptions thrown by tasks are now wrapped in a buildexception
  223. giving the location in the buildfile of the task.
  224. * Nested elements for namespaced tasks and types may belong to the
  225. Ant default namespace as well as the task's or type's namespace.
  226. * <junitreport> will very likely no longer work with Xalan-J 1.
  227. Note that Xalan-J 1 has been deprecated for a very long time and we
  228. highly recommend that you upgrade.
  229. If you really need to continue using Xalan-J 1, please copy the
  230. junit-frames-xalan1.xsl from the distribution's etc directory as
  231. junit-frames.xsl into a new directory and use the task's styledir
  232. attribute to point to. This is the last version of the XSLT
  233. stylesheet that is expected to be compatible with Xalan-J 1.
  234. * <csc>'s extraoptions can now contain multiple arguments.
  235. Bugzilla Report 23599.
  236. * <macrodef> with default values set by properties would be
  237. seen as new definitions when called twice with different properties.
  238. This was confusing so the definitions are now treated as similar.
  239. Bugzilla Report 31215.
  240. * <javadoc> has a new attribute "includenosourcepackages" that can be
  241. used to document packages that don't hold source files but a
  242. package.html file. Bugzilla Report 25339.
  243. Fixed bugs:
  244. -----------
  245. * eliminate memory leak in AntClassLoader. Bugzilla Report 8689.
  246. * subant haltonfailure=false did not catch all failures. Bugzilla Report 27007.
  247. * macrodef @@ escaping was broken. Bugzilla Report 27069.
  248. * SQL task did not work with Informix IDS 9.2. Bugzilla Report 27162.
  249. * MacroDef did not allow attributes named 'description'. Bugzilla Report 27175.
  250. * Throw build exception if name attribute missing from patternset#NameEntry.
  251. Bugzilla Report 25982.
  252. * Throw build exception if target repeated in build file, but allow targets
  253. to be repeated in imported files.
  254. * <apply> didn't compare timestamps of source and targetfiles when
  255. using a nested <filelist>. Bugzilla Report 26985.
  256. * tagdiff.xml was broken in ant 1.6.1. Bugzilla Report 27057.
  257. * if the basedir contained .. or . dirs, and the build file name contained
  258. .. or ., the basedir was set incorrectly. Bugzilla Report 26765.
  259. * regression from ant 1.5, exec task outputted two redundant trailing newlines.
  260. Bugzilla Report 27546.
  261. * NPE when running commons listener. Bugzilla Report 27373.
  262. * <java> swallowed the stack trace of exceptions thrown by the
  263. executed program if run in the same VM.
  264. * -projecthelp swallowed (configuration) errors silently.
  265. Bugzilla report 27732.
  266. * filterset used by filtertask doesn't respect loglevel. Bugzilla Report 27568.
  267. * wrong compare used in ProjectComponent for logging. Bugzilla Report 28070.
  268. * failOnAny attribute for <parallel> was broken. Bugzilla Report 28122.
  269. * If <javac> uses gcj and any of the nested <compilerarg>s implies
  270. compilation to native code (like -o or --main), Ant will not pass
  271. the -C switch to gcj. This means you can now compile to native code
  272. with gcj which has been impossible in Ant < 1.6.2.
  273. * <import optional="false"> and <import optional="true">
  274. behaved identically.
  275. * <xslt> now sets the context classloader if you've specified a nested
  276. <classpath>. Bugzilla Report 24802.
  277. * <zip> and friends would delete the original file when trying to update
  278. a read-only archive. Bugzilla Report 28419.
  279. * <junit> and <assertions> are working together. Bugzilla report 27218
  280. * AntClassLoader#getResource could return invalid URLs. Bugzilla
  281. Report 28060.
  282. * Ant failed to locate tools.jar if the jre directory name wasn't all
  283. lowercase. Bugzilla Report 25798.
  284. * Redirector exhibited inconsistent behavior with regard to split
  285. output. When sent to file only, files would be created in all
  286. cases; when split file-property, files were only created if
  287. writes were performed.
  288. * fixed case handling of scriptdef attributes and elements.
  289. * UNC pathnames did not work for ANT_HOME or -lib locations on Windows.
  290. Bugzilla report 27922.
  291. * replacestring tokenfilter only replaced the first occurrence.
  292. * AntLikeTasksAtTopLevelTest failed on cygwin.
  293. * I/O-intensive processes hung when executed via <exec spawn="true">.
  294. Bugzilla reports 23893/26852.
  295. * JDependTask did not close an output file. Bugzilla Report 28557.
  296. * Using <macrodef> could break XmlLogger. Bugzilla Report 28993.
  297. * <genkey> no longer requires keytool to be in your PATH. Bugzilla
  298. Report 29382.
  299. * <symlink> could create cyclic links. Bugzilla Report 25181.
  300. * <zip whenempty="skip"> didn't work in a common situation. Bugzilla
  301. Report 22865.
  302. * <scp> now properly handles remote files and directories with spaces
  303. in their names. Bugzilla Report 26097.
  304. * <scp> now has (local|remote)tofile attributes to rename files on the
  305. fly. Bugzilla Report 26758.
  306. * <telnet> and <rexec> didn't close the session. Bugzilla Report 25935.
  307. * <subant> and XmlLogger didn't play nicley together.
  308. Other changes:
  309. --------------
  310. * doc fix concerning the dependencies of the ftp task
  311. Bugzilla Report 29334.
  312. * <xmlvalidate> has now a property nested element,
  313. allowing to set string properties for the parser
  314. Bugzilla Report 23395.
  315. * Docs fixes for xmlvalidate.html, javadoc.html, starteam.
  316. Bugzilla Reports 27092, 27284, 27554.
  317. * <pathconvert> now accepts nested <mapper>s. Bugzilla Report 26364.
  318. * Shipped XML parser is now Xerces-J 2.6.2.
  319. * Added nested file element to filelist.
  320. * spelling fixes, occurred. Bugzilla Report 27282.
  321. * add uid and gid to tarfileset. Bugzilla Report 19120.
  322. * <scp> has a verbose attribute to get some feedback during the
  323. transfer and new [local|remote][File|Todir] alternatives to file and
  324. todir that explicitly state the direction of the transfer.
  325. * The OS/2 wrapper scripts have been adapted to use the new launcher.
  326. Bugzilla Report 28226.
  327. * <sshexec> now also captures stderr output. Bugzilla Report 28349.
  328. * <xslt> now supports a nested <mapper>. Bugzilla Report 11249.
  329. * <touch> has filelist support.
  330. * <nice> task lets you set the priority of the current thread; non-forking
  331. <java> code will inherit this priority in their main thread.
  332. * New attribute "negate" on <propertyset> to invert selection criteria.
  333. * Target now supports a Location member. Bugzilla Report 28599.
  334. * New "pattern" attribute for <date> selector.
  335. * <junit> has a new forkmode attribute that controls the number of
  336. Java VMs that get created when forking tests. This allows you to
  337. run all tests in a single forked JVM reducing the overhead of VM
  338. creation a lot. Bugzilla Report 24697.
  339. * <jar> can now optionally create an index for jars different than the
  340. one it currently builds as well. See the new <indexjars> element
  341. for details. Bugzilla Report 14255.
  342. * Permit building under JDK 1.5. Bugzilla Report 28996.
  343. * minor Javadoc changes. Bugzilla Report 28998.
  344. * Misc. corrections in SignJar.java. Bugzilla Report 28999.
  345. * Remove redundant <hr> from javah.html. Bugzilla Report 28995.
  346. * Ignore built distributions. Bugzilla Report 28997.
  347. * A new roundup attribute on <zip> and related task can be used to
  348. control whether the file modification times inside the archive will
  349. be rounded up or down (since zips only store modification times with
  350. a granularity of two seconds). The default remains to round up.
  351. Bugzilla Report 17934.
  352. * A binary option has been added to <concat>. Bugzilla Report 26312.
  353. * Added DynamicConfiguratorNS, an namespace aware version of
  354. DynamicConfigurator. Bugzilla Report 28436.
  355. * Add implicit nested element to <macrodef>. Bugzilla Report 25633.
  356. * Add deleteonexit attribute to <delete>.
  357. * Added Target.getIf/Unless(). Bugzilla Report 29320.
  358. * <fail> has a status attribute that can be used to pass an exit
  359. status back to the command line.
  360. * <fail> accepts a nested <condition>.
  361. * <loadproperties> supports loading from a resource.
  362. Bugzilla Report 28340.
  363. * Nested file mappers and a container mapper implementation have been
  364. introduced. Additionally, the <mapper> element now accepts "defined"
  365. nested FileNameMapper implementations directly, allowing a usage
  366. comparable to those of <condition>, <filter>, and <selector>.
  367. * New <redirector> type introduced to provide extreme I/O flexibility.
  368. Initial support for <exec>, <apply>, and <java> tasks.
  369. * <apply> has a new ignoremissing attribute (default true for BC)
  370. which will allow nonexistent files specified via <filelist>s to
  371. be passed to the executable. Bugzilla Report 29585.
  372. * <junitreport> now also works with Xalan XSLTC and/or JDK 1.5.
  373. Bugzilla Report 27541.
  374. * <jspc> doesn't work properly with Tomcat 5.x. We've implemented a
  375. work-around but don't intend to support future changes in Tomcat
  376. 5.x. Please use the jspc task that ships with Tomcat instead of
  377. Ant's.
  378. Changes from Ant 1.6.0 to Ant 1.6.1
  379. =============================================
  380. Changes that could break older environments:
  381. --------------------------------------------
  382. * License is now Apache Software License 2.0
  383. see http://www.apache.org/licenses/ for more information
  384. Fixed bugs:
  385. -----------
  386. * Remove a recursive template call in the junit xsls that could trigger a stack
  387. overflow. It now uses Xalan extensions to call a Java class directly.
  388. Bugzilla Report 19301
  389. * Fix spurious infinite loop detection for filters (introduced in ant 1.6.0).
  390. Bugzilla Report 23154.
  391. * Fix handling of default ant namespace for nested elements.
  392. * Fix jboss element of ejb task (introduced in ant 1.6.0).
  393. * <whichresource> failed to load classes correctly.
  394. * Ant could fail to start with a NullPointerException if
  395. ANT_HOME/lib/ant-launcher.jar was part of the system CLASSPATH.
  396. * presetdef'ed types did not work with the ant-type attribute
  397. * fixed case handling of macrodef attributes and elements. Bugzilla
  398. Reports 25687 and 26225.
  399. * <java> ignored the append attribute, Bugzilla Report 26137.
  400. * The gcj compiler adapter for <javac> failed if the destination
  401. directory didn't exist. Bugzilla Report 25856.
  402. * Ant now fails with a more useful message if a new process will be
  403. forked in a directory and that directory doesn't exist.
  404. * <splash> used to break the build on non-GUI environments. Bugzilla
  405. report 11482.
  406. * Ant 1.6.0 cannot run build scripts in directories with non-ASCII names.
  407. Bugzilla Report 26642.
  408. Other changes:
  409. --------------
  410. * Shipped XML parser is now Xerces-J 2.6.1
  411. * Translate task logs a debug message specifying the number of files
  412. that it processed. Bugzilla Report 13938.
  413. * <fixcrlf> has a new attribute - fixlast. Bugzilla Report 23262.
  414. * <p4submit> has 2 new attributes, needsresolveproperty and changeproperty.
  415. Bugzilla Report 25711.
  416. * add description attributes to macrodef attributes and elements.
  417. Bugzilla Report 24711.
  418. * Extending ClearCase Tasks :
  419. - Added an extra option to 'failonerr' to each ClearCase task/command.
  420. - Extended the functionality of cccheckout. It can check (notco) to see if
  421. the desired element is already checked out to the current view. Thus it
  422. won't attempt to check it out again.
  423. - Added three new ClearCase commands: ccmkattr, ccmkdir, ccmkelem
  424. Bugzilla Report 26253.
  425. * New condition <typefound> that can be used to probe for the declaration
  426. and implementation of a task, type, preset, macro, scriptdef, whatever.
  427. As it tests for the implementation, it can be used to check for optional
  428. tasks being available.
  429. * added nested text support to <macrodef>
  430. * added initial support for Java 1.5. Java 1.5 is now correctly
  431. detected by Ant and treated just like Java 1.4. You can now specify
  432. source="1.5" in the <javac> task.
  433. * created new task <cvsversion>
  434. * added support for branch logging via the tag attribute in <cvschangelog>
  435. Bugzilla Report 13510.
  436. * added support the groovy language in the script and scriptdef tasks
  437. Changes from Ant 1.5.4 to Ant 1.6.0
  438. ===================================
  439. Changes that could break older environments:
  440. --------------------------------------------
  441. * This version of Ant can not be built with JDK 1.1 and requires at
  442. least Java 1.2 at runtime as well. Compiling for a 1.1 target is
  443. still supported.
  444. * Targets cannot have the empty string as their name any longer.
  445. * ant.jar's manifest does no longer include a Class-Path entry, so it
  446. is no longer possible to run Ant via "java -jar ant.jar" without
  447. manually altering the CLASSPATH. Instead of that a file
  448. ant-bootstrap.jar is included in the etc directory of the binary
  449. distribution, copy this to the lib directory and use
  450. "java -jar ant-bootstrap.jar" instead if you want to run Ant without
  451. the wrapper script (not recommended).
  452. * The <script> task now requires Apache BSF instead of the older IBM
  453. version. See <http://jakarta.apache.org/bsf/>
  454. * <xmlproperty> will no longer fail if the file to be loaded doesn't exist.
  455. * XML namespaces are now enabled in the XML parser, meaning XML namespace
  456. declarations no longer cause errors. However task names containing colons
  457. will cause errors unless there is a corresponding namespace uri.
  458. * The <ftp> and <telnet> tasks now require Jakarta Commons Net instead
  459. of the older ORO Netcomponents version. See
  460. <http://jakarta.apache.org/commons/net/index.html>.
  461. * <input> will no longer prompt the user and wait for input if the
  462. addproperty attribute is set to a property that has already been
  463. defined in the project. If you rely on the task waiting for input,
  464. don't use the addproperty attribute.
  465. * The Class-Path attribute in manifests will no longer merge the
  466. entries of all manifests found, but will be treated like all other
  467. manifest attributes - the most recent attribute(s) will be used.
  468. * New Launch mechanism implemented. This moves some functionality from
  469. the batch files / shell scripts into Java. This removes environment
  470. limitations, for command issues, directory depth issues on Windows. Also
  471. allows a per-user library location to be used if the main Ant install
  472. is locked down.
  473. * The Entry nested element of PropertyFile will not any more have its value
  474. attribute (actually increment) overwritten with the new value of the entry
  475. after execution.
  476. * Output stored from a <java> or <exec> task is now exactly as generated. No
  477. conversion to platform end-of-line characters is performed.
  478. * <translate> will now preserve line endings.
  479. * <ftp> followsymlinks="false" in nested fileset definitions is explicitly
  480. required in order to exclude remote symbolic links (when doing a get, chmod,
  481. delete, rmdir).
  482. * The values of the Copy#fileCopyMap variable has changed from String to
  483. String[]. (In java 1.5 terms it was Hashtable<String, String> and
  484. is now Hashtable<String, String[]>). This will affect third party code
  485. that extend Copy and override Copy#doFileOperations.
  486. * <loadproperties> didn't expand properties while <property file="..."/>
  487. does, so they were not equivalent. This has been fixed, which means
  488. that propetries may get expanded twice if you use an
  489. <expandproperties> filterreader. Bugzilla Report 17782.
  490. * User defined tasks and typedefs are now handled internally in the
  491. same way as predefined tasks and typedefs. Also tasks and typedefs
  492. are resolved at a later stage. This causes some
  493. differences especially for user defined task containers.
  494. * <checksum> log message "Calculating checksum ..." has been degraded
  495. from INFO to VERBOSE.
  496. Fixed bugs:
  497. -----------
  498. * Filter readers were not handling line endings properly. Bugzilla
  499. Report 18476.
  500. * Filtersets were also not handling line endings properly.
  501. * Expand tasks did not behave as expected with PatternSets.
  502. * <property environment=... /> now works on OS/400.
  503. * <cab> could hang listcab on large <fileset>s.
  504. * The starteam stcheckout, stcheckin tasks now correctly compute
  505. status of files against whatever local tree they are run against
  506. and, optionally, will not process a file if it is current.
  507. Previously you had to process everything unless you ran against the
  508. default folder which wasn't the normal use-case for ant-starteam.
  509. The stlist task now similarly displays that status correctly making
  510. it a more generally useful tool.
  511. * entity includes would cause exceptions if path names included spaces.
  512. * addConfiguredXXX would not work for TaskAdapter wrapped tasks
  513. * Fix <ilasm> outputfile testing so that the output file does not need
  514. to exist beforehand.
  515. * Ant will now exit with a return code of 1 if it encounters problems
  516. with the command line arguments.
  517. * ClassLoader creation changes to use a factory method in Project. A new
  518. class AntClassLoader2 implemented for 1.2+ specific features including
  519. Package information and addition of classes specified in the Class-Path
  520. element of a Jar's manifest.
  521. * It is now possible in <exec> to resolve the executable to a project
  522. basedir or execution dir relative executable. The resolveExecutable
  523. must be used to pick up such executables.
  524. * splash screen wouldn't disappear when build was finished.
  525. * <exec> output and error streams can now be redirected independently
  526. to either a property or a file (or both)
  527. * TarEntry's File-arg constructor would fail with a
  528. StringIndexOutOfBoundsException on all OSes where os.name is shorter
  529. than seven characters. Bugzilla Report 18105.
  530. * <copy> and <move>'s failonerror didn't apply to filesets pointing to
  531. non-existant directories. Bugzilla Report 18414.
  532. * The <stripjavacomments> filter sometimes removed parts of string
  533. constants. Bugzilla Report 17441.
  534. * <antlr> will now recompile your grammar if the supergrammar has
  535. changed. Bugzilla Report 12691.
  536. * <property env> will now work on Unices with /bin/env instead of
  537. /usr/bin/env. Bugzilla Report 17642.
  538. * <jar index="on"> could include multiple index lists. Bugzilla 10262.
  539. * The index created by <jar> didn't conform to the spec as it didn't
  540. include the top-level entries. Bugzilla Report 16972.
  541. * <tar> and <zip> didn't honor the defaultexcludes attribute for the
  542. implicit fileset. Bugzilla Report 18637.
  543. * The <replacetokens> filter would throw an exception if the token's
  544. value was an empty string. Bugzilla Report 18625.
  545. * Perforce tasks relying on output from the server such as <p4change>
  546. and <p4label> were hanging. Bugzilla Reports 18129 and 18956.
  547. * Improve exception and logging behavior of Perforce tasks.
  548. Bugzilla report 18154.
  549. * build.sh install had a problem on cygwin (with REALANTHOME).
  550. Bugzilla Report 17257
  551. * <replaceregexp> didn't work for multi-byte encodings if byline was false.
  552. Bugzilla Report 19187.
  553. * <replaceregexp> was altering unnecessarily the timestamp of the directories
  554. containing the files to process
  555. Bugzilla Report 22541.
  556. * file names that include spaces need to be quoted inside the @argfile
  557. argument using forked <javac> and (all JDKS). Bugzilla Report 10499.
  558. NB : a first correction was only introducing quotes for JDK 1.4
  559. It has been changed to quote for all external compilers when paths
  560. contain spaces.
  561. Also the backslashes need to be converted to forward slashes
  562. Bugzilla Report 17683.
  563. * Setting filesonly to true in <zip> and related tasks would cause the
  564. archives to be always recreated. Bugzilla Report 19449.
  565. * file names that include spaces need to be quoted inside the @argfile
  566. argument using <javadoc> and JDK 1.4. Bugzilla Report 16871.
  567. * <junit> didn't work with custom formatters that were only available
  568. on the user specified classpath when a timeout occured. Bugzilla
  569. Report 19953.
  570. * <different> selector : make ignoreFileTimes effectively default to true
  571. and fix a bug in the comparison of timestamps. Bugzilla Report 20205.
  572. * <different> selector can now be nested directly under a fileset
  573. Bugzilla Report 20220.
  574. * <cvstagdiff> had a problem with "dd-MM-yy hh:mm:ss" formats
  575. Bugzilla Report 15995.
  576. * <cvstagdiff> cvsroot and package attributes added to the root
  577. element tagdiff of the xml output
  578. Bugzilla Report 16081.
  579. * <cvstagdiff> had a problem with aliased modules and with requests for multiple modules
  580. Bugzilla Reports 21373 and 22877.
  581. * <cvstagdiff> could not parse properly the revision number of new files with CVS 1.11.9 or higher
  582. Bugzilla Report 24406.
  583. * <fixcrlf> make fixcrlf create its temporary files in the default directory
  584. of FileUtils#createTempFile instead of the destination dir of fixcrlf.
  585. Bugzilla Report 20870.
  586. * <ejbjar> implementation for Borland.
  587. Prevent the task from being blocked by error messages coming from java2iiop.
  588. Bugzilla Report 19385.
  589. * <unzip>'s and <untar>'s nested patternsets didn't work as documented
  590. when the pattern ended in a slash or backslash. Bugzilla Report 20969.
  591. * <fixcrlf> will now create the parent directories for the destination
  592. files if necessary. Bugzilla Report 20840.
  593. * <xmlproperty> now handles CDATA sections. BugZilla Report 17195
  594. * <translate> now translate tokens that are placed close together.
  595. Bugzilla Report 17297
  596. * Nested websphere element for ejbjar does not support spaces in file name.
  597. Bugzilla Report 21298
  598. * Don't multiply Class-Path attributes when updating jars. Bugzilla
  599. Report 21170.
  600. * Do not overwrite the value (increment) attribute of PropertyFile nested Entry element.
  601. Bugzilla Report 21505.
  602. * Prevent sysproperties with no key or no value from being added in <junit>.
  603. Bugzilla Report 21684.
  604. * Allow references to be properly inherited via antcall
  605. Bugzilla Report 21724.
  606. * ftp chmod failed when the remote system was UNIX and local system Windows
  607. Bugzilla Report 21865.
  608. * ftp put with chmod failed when the remote system was UNIX and local system Windows
  609. Bugzilla Report 23143.
  610. * ftp did not set the ascii mode explicity, causing problems with ftp servers
  611. having binary as default
  612. * ftp was not able to download files when they were pointed to by symbolic links
  613. Bugzilla Report 14063.
  614. * ftp is able to download also directories pointed to by symbolic links.
  615. * replace would change \r\n into \r\r\n under Windows.
  616. * junitreport with frames did not display a link for classes without a package
  617. or in the top package.
  618. Bugzilla Report 21915.
  619. * Project.toBoolean(String) now handles null as argument and does not throw a
  620. NullPointerException any more.
  621. * The socket condition will now close the socket created to test.
  622. Bugzilla Report 23040.
  623. * <junit includeantruntime="true" fork="true"> replaced the CLASSPATH instead
  624. of adding to it. Bugzilla Report 14971.
  625. * <splash> could fail on JVMs that use null to indicate the system classloader.
  626. Bugzilla Report 23320.
  627. * <xmlcatalog>s only worked when defined inside of tasks. Bugzilla
  628. Report 20965.
  629. * <csc> and siblings (<vbc> <jsharpc>) handle large filesets by
  630. automatic use of response files. Bugzilla report #19630
  631. Other changes:
  632. --------------
  633. * Shipped XML parser is now Xerces 2.6.0
  634. * All tasks can be used outside of <target>s. Note that some tasks
  635. will not work at all outside of targets as they would cause infinite
  636. loops (<antcall> as well as <ant> and <subant> if they invoke the
  637. current build file).
  638. * Six new Clearcase tasks added.
  639. * A new filter reader namely tokenfilter has been added. Bugzilla
  640. Report 18312.
  641. * A new attribute named skip is added to the TailFilter and
  642. HeadFilter filter readers.
  643. * The filesetmanifest attribute of <jar> has been reenabled.
  644. * The start and end tokens for <translate> may now be longer than a
  645. single character.
  646. * <setproxy> lets you set the username and password for proxies that
  647. want authentication
  648. * <loadproperties> has a new encoding attribute.
  649. * <echoproperties> can now create XML output.
  650. * <echoproperties> has a new srcfile attribute that can make it read
  651. properties files and output them instead of Ant's properties.
  652. * <filterset> will now resolve filters recursively.
  653. * <input> has a new attribute that allows you to specify a default value.
  654. * Added <image> task (requires JAI).
  655. * <image> task has now proportions attribute in the <scale/> nested element
  656. instead of keepproportions (bringing in more functionality)
  657. * New condition <isreference>
  658. * <ftp> now has a preservelastmodified attribute to preserve the
  659. timestamp of a downloaded file.
  660. * new rmdir action for <ftp> that removes directories from a fileset.
  661. * <ftp> has attributes timediffauto and timediffmillis to use together
  662. with the newer attribute to tell ant to take into account a time difference
  663. between client and remote side.
  664. Bugzilla Report 19358.
  665. * <ftp> has been optimized to go directly to the include patterns.
  666. This reduces scanning time under UNIX when followsymlinks="true"
  667. and casesensitive="true" (the default)
  668. Bugzilla Report 20103.
  669. * The SOS and VSS tasks will no longer unconditionally prepend a $ to
  670. vsspath or projectpath.
  671. * OS/400 now gets detected by the os condition.
  672. * <arg> has a new attribute pathref that can be used to reference
  673. previously defined paths.
  674. * <xmlproperty> has been improved, you can now expand ${properties},
  675. define ids or paths and use Ant's location magic for filename resolutions
  676. in the XML file.
  677. * <xmlcatalog> will now support external catalogs according to the
  678. OASIS "Open Catalog" standard - if resolver.jar (newer than version
  679. 1.0) from Apache's xml-commons is in your CLASSPATH.
  680. * Starteam tasks now have support for revision labels and build labels.
  681. Checkouts now have the option of using repository timestamps, instead
  682. of current.
  683. * new task <symlink> that creates and maintains symbolic links.
  684. * new tasks <chown> and <chgrp> which are wrappers of the Unix commands.
  685. * new task <attrib> to change file attributes on Windows systems.
  686. * <style> has a new attribute reloadstylesheet to work around a
  687. bug in widespread Xalan versions.
  688. * <tarfileset> has a new dirmode attribute to specify the permissions
  689. for directories.
  690. * <fixcrlf>'s eol attribute now also understands "mac", "unix" and "dos".
  691. * <classfileset> now picks up dependencies of the form MyClass.class. This
  692. works for the code generated by the Sun java compiler. It may not work for
  693. all compilers.
  694. * a new attribute "globalopts" can be added to all Perforce tasks.
  695. You can put in it all the strings described by p4 help usage. Refer to
  696. the docs for more information.
  697. * new Perforce tasks <p4integrate> , <p4resolve>, and <p4labelsync>
  698. * <p4submit> will change the property p4.change if the Perforce server
  699. renumbers the change list.
  700. It will set the property p4.needsresolve if the submit fails,
  701. and the message says that file(s) need to be resolved.
  702. * <replaceregexp> now has an optional encoding attribute to support
  703. replacing in files that are in a different encoding than the
  704. platform's default.
  705. * The <exec> task may now have its input redirected from either a file
  706. or a string from the build file. The error output can be separated
  707. to a different file when outut is redirected. standard error may be
  708. logged to the Ant log when redirecting output to a file
  709. * The <java> task also supports the input redirection and separate
  710. error streams introduced to the <exec> task. In addition, it is now
  711. possible to save the output into a property for use within the build
  712. file as was possible with <exec> in Ant 1.5
  713. * The <javadoc> task <tag> subelement has been enhanced to allow files
  714. with tag mappings to be used.
  715. * New tasks: <scp> supports file transfers, <sshexec> executes a
  716. command over SSH. They require jsch, a BSD licensed SSH library that
  717. can be found at http://www.jcraft.com/jsch/index.html
  718. * New filterreader <escapeunicode/>.
  719. * Support for HP's NonStop Kernel (Tandem) OS has been added.
  720. * <cab>'s basedir attribute is now optional if you specify nested
  721. filesets. Bugzilla Report 18046.
  722. * New task <sync> that synchronizes two directory trees.
  723. * <apply> has new forwardslash attribute that can force filenames to
  724. use forward slashes (/) as file separators even on platforms with a
  725. different separator. This is useful if you want to run certain
  726. ported Unix tools.
  727. * Copy has a new outputencoding attribute that can be used to change
  728. the encoding while copying files. Bugzilla Report 18217.
  729. * The xml formatter for JUnit will now honor test case names set with
  730. setName. Bugzilla Report 17040.
  731. * JUnit now has an attribute reloading, which, when set to false,
  732. makes the task reuse the same class loader for a series of tests.
  733. * <concat> now supports filtering and can check timestamps before
  734. overriding a file. Bugzilla Report 18166.
  735. * <junit> has a new attribute tempdir that controls the placement of
  736. temporary files. Bugzilla Report 15454.
  737. * <jdepend> now supports a new nested element <classespath> which is
  738. the same as <sourcespath> but point to compiled classes (the
  739. prefered mode of operation for JDepend > 2.5). Additionally, nested
  740. <exclude> elements can be used to exclude certain packages from
  741. being parsed. Bugzilla Report 17134.
  742. * The JProbe tasks now also work with JProbe 4.x. Bugzilla Report 14849.
  743. * <javacc> and <jjtree> will now autodetect JavaCC 3.x and can use it.
  744. * <sql> has a new attribute to control escape processing.
  745. * <sql> is able to display properly several resultsets if you are
  746. running a compound sql statement. Bugzilla Report 21594.
  747. * A new <containsregexp> selector has been added, that selects files
  748. if their content matches a certain regular expression.
  749. * <antlr>'s debug attribute has been enabled. Bugzilla Report 19051.
  750. * <mail> has a new attribute charset. Bugzilla Report 15434.
  751. * <mail> has new attributes user and password for SMTP auth.
  752. maillogger can also use this.
  753. The implementation only works with JavaMail (encoding="MIME").
  754. Implementation with plain mail remains to do.
  755. Bugzilla Report 5969.
  756. * <mail> and mailloger support SMTP over TLS/SSL
  757. Bugzilla Report 19180.
  758. * <mail> the attributes from, replyto ,tolist, cclist, bcclist
  759. can now contain email addresses of the form name <address@xyz.com>
  760. or (name) address@xyz.com
  761. Bugzilla Report 22474.
  762. * <mail> (version PlainMail)
  763. prevent blank headers from being sent,
  764. make the order of the headers of plain mail messages predictable
  765. Bugzilla Report 22088.
  766. * <zipfileset> can now be defined in the main body of a project
  767. and referred to with refid="xyz". Bugzilla Report 17007.
  768. * A wrapper script for OS/2 has been added.
  769. * <unzip> will now detect and successfully extract self-extracting
  770. archives. Bugzilla Report 16213.
  771. * <stcheckout> has a new attribute "converteol" that can be used to
  772. control the automatic line-end conversion performed on ASCII files.
  773. Bugzilla Report 18884.
  774. * Users can now modify the list of default excludes using the new
  775. defaultexcludes task. Bugzilla Report 12700.
  776. * There is a new data type <propertyset> that can be used to collect
  777. properties. It is supported by <ant>, <antcall>, <subant>, <java>,
  778. <echoproperties> and <junit>.
  779. * <concat> can now control the encoding of the output as well and optionally
  780. add new-line characters at the end of files that get concatenated but
  781. don't end in newlines. Bugzilla Report 12511.
  782. * <rpm> will detect the rpmbuild executable of RedHat 8.0 and newer
  783. and use that if it is on your PATH. Bugzilla Report 14650.
  784. * A new task <rexec> has been added that requires commons-net to work.
  785. Bugzilla Report 19541.
  786. * <javadoc> now supports a nested <arg> element in addition to the
  787. additionalparams attribute.
  788. * You can now determine the order of standard tags in <javadoc> via
  789. <tag> elements - you must not use the description attribute for them.
  790. Bugzilla Report 18912.
  791. * <javadoc> now supports the -noqualifier switch. Bugzilla Report 19288.
  792. * <javac>'s executable attribute can now also be used to specify the
  793. executable for jikes, jvc, sj or gcj. Bugzilla Report 13814.
  794. * <javac> has a new attribute tempdir that can control the placement
  795. of temporary files. Bugzilla Report 19765.
  796. * A new magic property build.compiler.jvc.extensions has been added
  797. that can be used to turn of Microsoft extensions while using the jvc
  798. compiler. Bugzilla Report 19826.
  799. * You can now limit the parallelism of <apply> and <chmod> by using the new
  800. maxparallel attribute.
  801. * With the new addsourcefile attribute, you can make <apply> ommit the
  802. source file names from the command line. Bugzilla Report 13654.
  803. * <apply> and <chmod> now support nested <filelist>s as well as <dirset>s.
  804. Bugzilla Reports 15929 and 20687.
  805. * <apply> and <chmod> will display a summary if you set the new
  806. verbose attribute to true. Bugzilla Report 19883.
  807. * <copy>/<move>'s failonerror attribute can now also be used to
  808. continue the build if an I/O error caused a problem. Bugzilla
  809. Report 12999.
  810. * new selector <type/> allowing to select only files or only directories.
  811. Bugzilla Report 20222.
  812. * <java> and <junit> now support a nested <bootclasspath> element that
  813. will be ignored if not forking a new VM.
  814. * <junit>'s nested <formatter> elements now support if/unless clauses.
  815. * <ejbjar>
  816. cmpversion attribute added
  817. jboss element will look for jbosscmp-jdbc.xml descriptor
  818. if ejbjar has cmpversion="2.0" set
  819. Bugzilla Reports 14707 and 14709.
  820. * <pvcs> config attribute added to set the location of a specific PVCS
  821. .cfg file
  822. Bugzilla Report 9752
  823. * <mapper> has an "unpackage" mapper
  824. Bugzilla Report 18908
  825. * Added <scriptdef> task allowing tasks to be defined using any BSF-supported
  826. scripting language.
  827. * <touch>'s datetime attribute can now accept time with a granularity
  828. of seconds as well. Bugzilla Report 21014.
  829. * <checksum> has two new properties: totalproperty and todir.
  830. * FileUtils#createTempFile will now create temporary files in the
  831. directory pointed to by the property java.io.tmpdir
  832. * <unzip> and friends now supports an optional encoding attribute to
  833. enable it to expand archives created with filenames using an encoding
  834. other than UTF8. Bugzilla Report 10504.
  835. * <patch> has a new attribute destfile that can be used to create a new
  836. file instead of patching files in place.
  837. * OpenVMS is detected as a valid OS family.
  838. * DirectoryScanner has been optimized for cases where include patterns do not
  839. start with wildcards. Bugzilla Report 20103.
  840. * DirectoryScanner begins to be optimized not to scan excluded directories.
  841. Bugzilla Report 21941.
  842. * Added keep-going feature. Bugzilla Report 21144
  843. * The archives generated by <zip> and friends will now contain CRC and
  844. size information in the "local file header", thereby providing this
  845. information to applications that read the archives using
  846. java.util.ZipInputStream. Bugzilla Report 19195.
  847. * <copy> and <move> can now handle mappers that return multiple
  848. mappings per source path. This behaviour is enabled by using
  849. an enablemultiplemapping attribute. Bugzilla Report 21320.
  850. * <exec> will now work on OpenVMS (please read the notes in
  851. <exec>'s manual page). Bugzilla Report 21877.
  852. * <exec> will now have a new attribute spawn (default false).
  853. If set to true, the process will be spawned. Bugzilla Report 5907.
  854. * <java> will now have a new attribute spawn (default false).
  855. If set to true, the process will be spawned. Bugzilla Report 5907.
  856. * <parallel> now supports a timeout which can be used to recover
  857. from deadlocks, etc in the parallel threads. <parallel> also
  858. now supports a <daemons> nested element. This can be used to
  859. run tasks in daemon threads which the parallel task will not
  860. wait for before completing. A new attribute failonany will cause
  861. <parallel> to throw an exception if any thread fails without
  862. waiting for all other threads to complete.
  863. * <zip> and friends will consume far less memory than they used to
  864. when run with compress="false". Bugzilla Report 21899.
  865. * <if/> and <unless/> attributes added to <param/> element of <style>
  866. Bugzilla Report 22044
  867. * <zip> and friends have a new attribute "keepcompression" that can be
  868. used to incrementally build an archive mixing compressed and uncompressed
  869. entries.
  870. * <junit>'s XML formatter adds a new classname attribute to the <testcase>
  871. elements.
  872. * new <permissions> type add permission handling to the code
  873. this type can be nested in the <java> and <junit> tasks.
  874. Bugzilla Report 22533.
  875. * additional shortcuts for ant options (-d --> -debug, -e --> -emacs,
  876. -h --> -help, -p --> -projecthelp, -s --> -find).
  877. * new selector <modified>. "cache" was renamed to "modified".
  878. Bugzilla Report 20474.
  879. * <stcheckout> and <stlist> have a new asofdate attribute that can be
  880. used to checkout/list files based on a date instead of a label.
  881. Bugzilla Report 20578.
  882. * New filter <concatfilter>. Adds the content of file at the beginning
  883. or end of a file. Discussion started at
  884. http://marc.theaimsgroup.com/?l=ant-user&m=106366791228585&w=2
  885. * New task <import>
  886. * New task <macrodef>
  887. * New task <presetdef>
  888. * Ant libraries that can make use of namespaces to avoid name
  889. clashes of custom tasks
  890. * <java> and <junit> now support <assertions>, which let you enable
  891. and disable Java1.4 assertions on a package or class basis. These
  892. only work when fork=true, currently.
  893. * .NET tasks expanded with VB support <vbc> and J#, via <jsharp>,
  894. <importtypelib> and <ilasm>. <csc> supports nested <src> types,
  895. <defines> for (potentially conditional) definitions, <reference>
  896. filesets for references. The executable attribute lets you switch to
  897. mono or other implementations -<csc> has been tested with Mono on
  898. Linux and OSX.
  899. Changes from Ant 1.5.3 to Ant 1.5.4
  900. ===================================
  901. Changes that could break older environments:
  902. --------------------------------------------
  903. * If the Visual Age tasks used to work for you, they may stop doing so
  904. now - and we'd like to know about it. The current set of tasks is
  905. supposed to work with any version of VAJ starting with 3.0.
  906. Fixed bugs:
  907. -----------
  908. * The Visual Age for Java tasks didn't work (at least for versions 3.0
  909. and higher). Bugzilla Report 10016.
  910. * URL-encoding in <vaj*port> didn't work properly.
  911. * VAJRemoteUtil called getAbsolutePath instead of getPath
  912. causing problems when using a Windows VAJ server from a UNIX server.
  913. Bugzilla Report 20457.
  914. * VAJImport task failed with NullPointerException when using DirectoryScanner.
  915. Bugzilla Report 22080.
  916. Other changes:
  917. --------------
  918. * Shipped XML parser is now Xerces 2.5.0
  919. * <javah> will invoke oldjavah on JDK 1.4.2. Bugzilla Report 18667.
  920. * The VAJ tasks now support a haltonfailure attribute to conditionally
  921. keep building even if they fail.
  922. * It is now possible to use the latest (versioned or unversioned) edition
  923. in <vajload> by using special wildcard characters. Also fixes
  924. Bugzilla Report 2236.
  925. Changes from Ant 1.5.2 to Ant 1.5.3
  926. ===================================
  927. Changes that could break older environments:
  928. --------------------------------------------
  929. * The <zip> task and friends have again changed a method signature
  930. (sorry, was necessary to fix bug 17780). The return type of
  931. getResourcesToAdd has changed.
  932. Fixed bugs:
  933. -----------
  934. * <zipfileset>'s filemode would get ignored and the dirmode was used
  935. for the included files as well. As a side effect, WinZIP was unable
  936. to extract or display the files, so they seemed to be missing from
  937. the archive. Bugzilla Report 17648.
  938. * <ftp> could use the wrong path separator when trying to change the
  939. remote working directory. Bugzilla Report 17735.
  940. * <jar update="true"> would loose all original files if you didn't
  941. specify any nested <(zip)fileset>s and the manifest had changed.
  942. Bugzilla Report 17780.
  943. * If you used a value starting with \ on Windows for the appxml
  944. attribute of <ear> or the webxml attribute of <war>, it would be
  945. ignored. Bugzilla Report 17871.
  946. * Ant will no longer implicitly add Sun's rt.jar in <javac> when you
  947. use jvc and don't specify a bootclasspath. Bugzilla Report 18055.
  948. * The prefix attribute of <zipfileset> would not generate directory
  949. entries for the prefix itself. Bugzilla Report 18403.
  950. * starteam checkout can now handle deleted labels. Bugzilla Report 17646.
  951. * The Unix wrapper script failed if you invoked it as a relative
  952. symlink and ANT_HOME has not been set. Bugzilla Report 17721.
  953. Other Changes:
  954. --------------
  955. * Added ability to specify manifest encoding for the <jar> and
  956. <manifest> tasks
  957. Changes from Ant 1.5.1 to Ant 1.5.2
  958. =============================================
  959. Changes that could break older environments:
  960. --------------------------------------------
  961. * ANT_OPTS environment variable is now applied at the start of the
  962. Java command line, allowing position specific parameters of some
  963. JVMs, such as -classic to be specified.
  964. * ZipScanner#getIncludedFiles will now return the names of the ZipEntries
  965. that have been matched instead of the name of the archive.
  966. * The <zip> task and friends have been heavily modified, almost every
  967. method signature of the Zip class has changed. If you have subclassed
  968. Zip (or one of its subclasses), your class will most likely not
  969. compile against the current code base. If it still compiles, it will
  970. probably not work as in Ant 1.5.1.
  971. Fixed bugs:
  972. -----------
  973. * <translate> was not ignoring comment lines.
  974. * <manifest> wouldn't update an existing manifest if only an attribute
  975. of an existing section changed.
  976. * ant.bat now supports the ANT_ARGS and JAVACMD environment variables
  977. again (like Ant 1.5 did).
  978. * The "plain" <junit> <formatter> could throw a NullPointerException
  979. if an error occured in setUp.
  980. * <junit> will now produce output when a test times out as well.
  981. * <replace> would count some internal character replacements when
  982. reporting the number of replaced tokens.
  983. * <concat> would cause an exception if a <filelist> pointed to files
  984. that do not exist.
  985. * <javadoc> will now pass -source to custom doclets as well.
  986. * <cvstagdiff> would throw a NullPointException if there had been no
  987. differences.
  988. * <cvschangelog> could miss today's changes.
  989. * <concat> could append newline characters between concatenated files.
  990. * <xmlvalidate> ignored the specified encoding of the files to
  991. validate.
  992. * the errorsbeginat attribute of the <http> condition didn't work.
  993. * Ant will try to force loading of certain packages like com.sun.*
  994. from the system classloader. The packages are determined by the
  995. version of the JVM running Ant.
  996. * Ant didn't find the runtime libraries on IBM's JDK 1.4 for Linux.
  997. * random component of temporary files is now always a positive integer.
  998. * Ant could incorrectly try to use the 1.4 regexp implementation even
  999. if it isn't available if you run the JVM with -Xverify:none.
  1000. * Ant would die with an exception if you used nested <reference>
  1001. elements in Ant and the refid attribute didn't point to an existing
  1002. project reference.
  1003. * The <get> task can now be compiled (and Ant thus bootstrapped) using
  1004. Kaffee.
  1005. * build.sysclasspath will now be honored by more tasks.
  1006. * The signjar keystore attribute has been reverted to a String allowing
  1007. it to once again accept URLs. This should not affect current File based usage
  1008. unless you are extending the Signjar task.
  1009. * <jar update="true"> would remove the original manifest.
  1010. * fix up folder creation in PVCS task
  1011. * <tar>'s up-to-date check didn't work for nested <(tar)fileset>s.
  1012. * Corrected a problem in XMLLogger where it would not associated
  1013. messages with a taskdef'd task
  1014. * <uptodate> now works when using attributes (i.e. not filesets) and pointing
  1015. to the same file
  1016. * Java task (and output system) now stores output which doos not end
  1017. with a line feed.
  1018. * splash screen wouldn't disappear when build was finished.
  1019. * <exec> now supports OS/2.
  1020. * <zip> and friends would only update/recreate existing archives if
  1021. the files to add/update have been newer than the archive.
  1022. * <javadoc>'s <link> element could fail for offline="true" on some JDKs.
  1023. Other changes:
  1024. --------------
  1025. * MailLogger now sets the Date header correctly.
  1026. * Shipped XML parser is now Xerces 2.3.0
  1027. * signjar now accepts a maxmemory attribute to allow the memory allocated to the
  1028. jarsigner tool to be specified. The jarsigner from the JDK's JAVA_HOME bin
  1029. dir is now used rather than the first jarsigner on the path.
  1030. * **/.DS_Store has been added to the list of default pattern excludes.
  1031. * The Created-By header in the default manifest now contains the JVM
  1032. vendor and version according to the jar specification. A new header,
  1033. Ant-Version provides the Ant version used to create the jar.
  1034. * <zip> can now store Unix permissions in a way that can be
  1035. reconstructed by Info-Zip's unzip command.
  1036. Changes from Ant 1.5.1Beta1 to 1.5.1
  1037. ====================================
  1038. Fixed bugs:
  1039. -----------
  1040. * <tstamp>'s prefix attribute failed to apply to nested <format> elements.
  1041. * <junitreport> created an empty junit-noframes.html if no format had
  1042. been specified.
  1043. * <basename> would remove more than it should if the file name
  1044. contained more than one dot.
  1045. * <filterset>s nested into <filterset>s didn't work.
  1046. Other changes:
  1047. --------------
  1048. * Shipped XML parser is now Xerces 2.2.0
  1049. * Filesets now support a 'file' attribute, allowing a single-file
  1050. fileset to be constructed without having to specify its parent
  1051. directory separately.
  1052. * <junit> will now return the result of a call to getName instead of
  1053. "unknown" for Test implementations that don't extend TestCase but have
  1054. a public String getName() method.
  1055. Changes from Ant 1.5 to 1.5.1Beta1
  1056. ==================================
  1057. Fixed bugs:
  1058. -----------
  1059. * Date/time in CvsChangeLog was in local timezone and 12 hour format leading
  1060. to a problem when sorting by time. It is now UTC (GMT) and in 24-hour
  1061. format as per cvs 'specifications'.
  1062. * CvsTagDiff now supports ampersand modules or modules that have a different
  1063. root directory than their name.
  1064. * EjbJar threw NPEs for the Websphere element. The property 'websphere.home'
  1065. was not documented.
  1066. * Mail example in the documentation was not correct.
  1067. * Checksum was broken in the following scenario:
  1068. (using verifyproperty OR in a condition) AND using filesets
  1069. with multiple files.
  1070. * The ExpandProperties filter threw NPEs when defined using
  1071. the <filterreader> format.
  1072. * The sh wrapper script didn't work under Cygwin if ANT_HOME wasn't
  1073. set with a Unix style filename.
  1074. * The sh wrapper script could fail if you started Ant from a directory
  1075. with whitespace in its name.
  1076. * ant -diagnostics was not working properly when the task dependency
  1077. was missing and was just printing the missing dependency.
  1078. * If a task got redefined via <taskdef>, it lost its child elements.
  1079. * <property>'s classpathref attribute was broken.
  1080. * <arg line="''" /> would result in no command line argument, will now
  1081. be a single empty argument. Use <arg value="''"/> if you need the
  1082. quotes literally.
  1083. * <replaceregexp> could append a newline character at the end of the
  1084. file.
  1085. Other changes:
  1086. --------------
  1087. * Appendix E of Java Development with Ant (Loughran/Hatcher) was
  1088. contributed to the docs.
  1089. * <available> will only print deprecration warnings if it is actually
  1090. used to change the value of a property.
  1091. Changes from Ant 1.5beta3 to Ant 1.5
  1092. ====================================
  1093. Changes that could break older environments:
  1094. --------------------------------------------
  1095. * The filesetmanifest attribute added to <jar> after the 1.4.1
  1096. release has been removed for now. This change may affect only
  1097. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  1098. feature back into Ant 1.6.
  1099. Fixed bugs:
  1100. -----------
  1101. * <zip> and friends would always update existing archive if you set
  1102. the update attribute to true.
  1103. * To support backward compatibility with older versions, <pathconvert>
  1104. will once again set the property, even if the result is the empty
  1105. string, unless the new 'setonempty' attribute is set to false|no|off
  1106. (default is "true").
  1107. * The manifest task would crash XmlLogger
  1108. Other changes:
  1109. --------------
  1110. * added **/.svn and **/.svn/** to the default excludes
  1111. Changes from Ant 1.5beta2 to Ant 1.5beta3
  1112. =========================================
  1113. Changes that could break older environments:
  1114. --------------------------------------------
  1115. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  1116. Now it is different from 1.5beta1 and 1.5beta2.
  1117. * <pathconvert> won't set the property if the result is the empty string.
  1118. Fixed bugs:
  1119. -----------
  1120. * <available> could fail to find files or directories that happen to
  1121. start with the name of the project's basedir but are not children of
  1122. the basedir.
  1123. * Nested <property>'s inside <ant> can now be overriden by subsequent
  1124. <ant> and <antcall> tasks.
  1125. * <xslt>'s outputtype attribute wouldn't do anything.
  1126. * <linecontains> filterreader could swallow lines.
  1127. * <sequential> used to configure the tasks (set their attributes)
  1128. before the first task has been executed. This means that properties
  1129. that have been set by nested task seemed to be unset for the other
  1130. tasks in the same <sequential> element.
  1131. * <javac>'s sourcepath setting has been ignored by some compiler
  1132. implementations.
  1133. * <javadoc>'s packagelist attribute didn't work.
  1134. * the plain mailer would always use port 25 in <mail>.
  1135. * Ant's default logger could swallow empty lines.
  1136. * ejbjar's iPlanet nested element now can process multiple descriptors.
  1137. * IPlanetEjbc was looking in the wrong place for four iiop files.
  1138. * <javac> would pass the -source switch to JDK 1.3's javac, even
  1139. though it doesn't support it.
  1140. Other changes:
  1141. --------------
  1142. * <checksum> now uses a buffer (of configurable size).
  1143. * The "Trying to override task definition" warning has been degraded
  1144. to verbose level if the two task definitions only differ in the class
  1145. loader instance that has loaded the definition.
  1146. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  1147. arguments to be provided to the VM runnign ejbc. Document the
  1148. jvmdebuglevel attribute which can be used to avoid warnings about
  1149. interface classess being found on the classpath. Document the new
  1150. <sysproperty> element which allows JVM properties to be defined.
  1151. Added an outputdir attribute to allow the destination to be a
  1152. directory into which the exploded jar is written.
  1153. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  1154. Changes from Ant 1.5beta1 to Ant 1.5beta2
  1155. =========================================
  1156. Changes that could break older environments:
  1157. --------------------------------------------
  1158. * Properties will now be expanded in mail message bodies. This means
  1159. that one $ sign will be stripped if your mail message contains the text
  1160. $$.
  1161. * org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.
  1162. * Available#setFile now again uses a File argument as it did in 1.4,
  1163. this may break environments that have been adapted to the String
  1164. argument version present in 1.5beta1.
  1165. Fixed bugs:
  1166. -----------
  1167. * When <move> attempts a rename, it deletes the destination file, if it
  1168. exists, before renaming the source file. However, <move> was not
  1169. checking if the destination file was actually a directory before
  1170. trying to delete it.
  1171. * Make CVS Tasks to work under Cygwin.
  1172. * Fix LineContains to handle huge files elegantly without causing
  1173. Stack Overflows.
  1174. * if you ask for the "classic" compiler on Java1.4, you get upgraded to
  1175. "modern" because there is no classic compiler any more.
  1176. * the <http> condition was viewing 404 'not found' exceptions as success. Now
  1177. it defaults to viewing any response >=400 as an error, and has an errorsBeginAt
  1178. attribute you can use if you want a higher or lower value.
  1179. * <get> throws a build exception on an http authorization error, unless you
  1180. have set ignoreerrors to true.
  1181. * <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lower
  1182. case, though the old spelling is retained for anyone who used it.
  1183. * Merging of Manifests in jar now works as documented.
  1184. * paths that have been separated by colons would be incorrectly parsed
  1185. on NetWare.
  1186. * runant.pl now supports NetWare.
  1187. * <tempfile> and <setproxy> tasks were in beta1, but not defined by
  1188. default; They now are. <tempfile> fills a property with the name of a
  1189. temporary file; <setproxy> lets you set the JVM's http, ftp and socks proxy
  1190. settings.
  1191. * <available classname="foo" ignoresystemclasses="true"> failed for
  1192. JDK 1.1 and 1.2, even if the class could be found on the
  1193. user-specified classpath.
  1194. * <property environment=... /> now works on z/OS.
  1195. * forked <javac> failed for the wrong reason on JDK 1.1 - Ant would
  1196. use a temporary file to hold the names of the files to compile under
  1197. some conditons, but 1.1 doesn't support this feature. Ant will no
  1198. longer try this, but you may run into problems with the length of the
  1199. command line now.
  1200. * the refid attribute for <property>s nested into <ant> or <param>s
  1201. nested into <antcall> didn't work.
  1202. * <replaceregexp> didn't work for nested <fileset>s.
  1203. * <javadoc> dropped sourcepath entries if no "interesting" .java
  1204. source files could be found below them. This has been backwards
  1205. incompatible and caused problems with custom doclets like xdoclet.
  1206. * Using the doclet, docletpath or docletpathref attributes of
  1207. <javadoc> may have caused NullPointerExceptions.
  1208. * nested <filesets> of <javadoc> would include too much.
  1209. * <dependset> will no longer choke on <targetfileset>s that point to
  1210. non-existing directories.
  1211. * <patch> didn't work at all.
  1212. * <replace> and <replaceregexp> now fail if the file they are working
  1213. on is locked.
  1214. * <javadoc> would pick up the wrong executable in the combination JDK
  1215. 1.2 and AIX.
  1216. Other changes:
  1217. --------------
  1218. * z/OS now gets detected by the os condition.
  1219. * <fileset> and <dirset> now have an optional followsymlink attribute
  1220. that can prevent Ant from following symbolic links on some platforms.
  1221. * BeanShell is now supported in the <script> task.
  1222. * <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans
  1223. based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta
  1224. this ejbc class has been deprecated. To avoid the deprecation warning use
  1225. ejbcclass="weblogic.ejbc".
  1226. * <ejbjar> will add a manifest to the generated jar based on the naming
  1227. convention in use. This overrides the manifest specified in the
  1228. <ejbjar> attribute
  1229. Changes from Ant 1.4.1 to 1.5beta1
  1230. ==================================
  1231. Changes that could break older environments:
  1232. --------------------------------------------
  1233. * Important: Single $ signs are no longer silently stripped!
  1234. Before you panic that we have broken all your build files, we have kept
  1235. the old "$$" -> "$" behaviour. So only build files which accidentally had
  1236. a $ sign in a string that was being silently stripped may break.
  1237. We added this fix to stop newbie confusion; if you want to write a
  1238. build file which works on ant versions 1.4.1 or earlier, stay with
  1239. the double $$ sign rule.
  1240. * Project.getBuildListeners now returns a clone of the listener
  1241. list. Changes to the returned list will not affect the listeners
  1242. currently attached to the Project. It also means that it is safe to
  1243. iterate over the returned list if listeners are added or removed
  1244. during the traversal.
  1245. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  1246. * Some messages that are printed during startup will not be
  1247. written to the logfile specified via -logfile as they might destroy
  1248. the format of the file for special BuildLoggers (like XmlLogger).
  1249. * The filesetmanifest attribute added to <jar> after the 1.4.1
  1250. release has been removed for now. This change may affect only
  1251. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  1252. feature back into Ant 1.6.
  1253. * Shipped XML parser is now Xerces 2.0.1 along with the XML Parser APIs.
  1254. XML Parser APIs is a separate jar that contains the necessary
  1255. JAXP/DOM/SAX classes.
  1256. * <telnet> was fixed to expand properties inside nested <read> and
  1257. <write> elements; before this only happened when you assigned the text
  1258. to the string attribute. If you had $ signs in the string, they may
  1259. need escaping.
  1260. * the RegexpMatcher interface has been extended to support case
  1261. insensitive matches and other options - custom implementations of
  1262. this interface won't work any longer. We recommend to use the new
  1263. Regexp interface that also supports substitution instead of the
  1264. RegexpMatcher interface in the future.
  1265. * <gzip> will throw an exception if your src attribute points to a directory.
  1266. * Unjar, Unzip and Unwar will throw an exception if the Src attribute
  1267. represents a directory. Support for nested filesets is provided
  1268. instead.
  1269. * It is no longer possible to overwrite a property using tasks like
  1270. <condition>, <exec>, <pathconvert>, or <tstamp>. In some exceptional
  1271. cases it will generate a warning if you attempt to overwrite an
  1272. existing property.
  1273. * Taskwriters please note: Whenever tasks had any overloaded set* methods,
  1274. Ant's introspection mechanism would select the last overloaded method
  1275. provided to it by the Java Runtime. A modification has now been made such
  1276. that when the Java Runtime provides a method with a String as its argument,
  1277. a check is made to see if there is another overloaded method that takes in
  1278. some other type of argument. If there is one such method, then the method
  1279. that takes in String as an argument is not selected by the Introspector.
  1280. * The pattern definition **/._* has been included into the Default
  1281. Excludes list.
  1282. * <propertyfile>'s <entry> element was modified to remove "never" as a value
  1283. as its behavior was undocumented and flakey.
  1284. * The -projecthelp flag now only prints out targets that include the
  1285. 'description' attribute, unless the -verbose or -debug flag is included
  1286. on the Ant command line.
  1287. * Ant's testcases now require JUnit 3.7 or above, as they now use the new
  1288. assertTrue method instead of assert.
  1289. * If the 'output' attribute of <ant> is set to a simple filename or a
  1290. relative path, the file is created relative to ${basedir}, not ${user.dir}.
  1291. * The default value for build.compiler is now javac1.x with x
  1292. depending on the JDK that is running Ant instead of classic/modern.
  1293. Fixed bugs:
  1294. -----------
  1295. * <available> could fail to find files or directories that happen to
  1296. start with the name of the project's basedir but are not children of
  1297. the basedir.
  1298. * Nested <property>'s inside <ant> can now be overriden by subsequent
  1299. <ant> and <antcall> tasks.
  1300. * <xslt>'s outputtype attribute wouldn't do anything.
  1301. * <linecontains> filterreader could swallow lines.
  1302. * <sequential> used to configure the tasks (set their attributes)
  1303. before the first task has been executed. This means that properties
  1304. that have been set by nested task seemed to be unset for the other
  1305. tasks in the same <sequential> element.
  1306. * <javac>'s sourcepath setting has been ignored by some compiler
  1307. implementations.
  1308. * <javadoc>'s packagelist attribute didn't work.
  1309. * the plain mailer would always use port 25 in <mail>.
  1310. * Ant's default logger could swallow empty lines.
  1311. * ejbjar's iPlanet nested element now can process multiple descriptors.
  1312. * IPlanetEjbc was looking in the wrong place for four iiop files.
  1313. * <javac> would pass the -source switch to JDK 1.3's javac, even
  1314. though it doesn't support it.
  1315. * <zip> and friends would always update existing archive if you set
  1316. the update attribute to true.
  1317. * To support backward compatibility with older versions, <pathconvert>
  1318. will once again set the property, even if the result is the empty
  1319. string, unless the new 'setonempty' attribute is set to false|no|off
  1320. (default is "true").
  1321. * The manifest task would crash XmlLogger
  1322. * A bug existed that prevented generated log files from being deleted as
  1323. part of the build process itself. This has now been fixed.
  1324. * Fixed bug where <move> ignored <filterset>s.
  1325. * Ant works properly with the combination of Java1.4/WindowsXP.
  1326. * Fixed bug where <java> used to sometimes invoke class constructors twice.
  1327. * Fixed bug with 4NT shell support.
  1328. * Fixed bug where ant would not perform ftp without remotedir being
  1329. specified even though this was not mandatory.
  1330. * Fixed bug where ant would not copy system properties into new Project
  1331. in ant/antcall tasks when inheritall="false" is set.
  1332. * <propertyfile> would not close the original property file.
  1333. * <ant> will no longer override a subbuild's basedir with inheritall="true".
  1334. * Fixed problem with the built-in <junit> formatters which assumed
  1335. that only one test could be running at the same time - this is not
  1336. necessarily true, see junit.extensions.ActiveTestSuite.
  1337. * <jar>'s whenEmpty attribute is useless as JARs are never empty, they
  1338. contain at least a manifest file, therefore it will now print a
  1339. warning and do nothing.
  1340. * <typedef> hasn't been all that useful as it couldn't be used outside
  1341. of targets (it can now) and nested "unknown" elements have always
  1342. been considered to be tasks (changed as well).
  1343. * <fixcrlf> would fail for files that contained lines longer than 8kB.
  1344. * Some junit formatters incorrectly assumed that all testcases would
  1345. inherit from junit.framework.TestCase.
  1346. * <fixcrlf> dropped the first characters from Mac files.
  1347. Other changes:
  1348. --------------
  1349. * <checksum> now uses a buffer (of configurable size).
  1350. * The "Trying to override task definition" warning has been degraded
  1351. to verbose level if the two task definitions only differ in the class
  1352. loader instance that has loaded the definition.
  1353. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  1354. arguments to be provided to the VM runnign ejbc. Document the
  1355. jvmdebuglevel attribute which can be used to avoid warnings about
  1356. interface classess being found on the classpath. Document the new
  1357. <sysproperty> element which allows JVM properties to be defined.
  1358. Added an outputdir attribute to allow the destination to be a
  1359. directory into which the exploded jar is written.
  1360. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  1361. * added **/.svn and **/.svn/** to the default excludes
  1362. * Selector Elements now provide a way to create filesets based on
  1363. sophisticated selection criteria.
  1364. * Gzip and Bzip2 files can now be constructed in the fly when using
  1365. the tar task without having to create the intermediate tar file on
  1366. disk. The Untar task can also untar GZip and BZip2 files on the fly
  1367. without creating the intermediate tar file.
  1368. * New optional type, <classfileset> added.
  1369. * <ejbjar> now allows control over which additional classes and interfaces
  1370. are added to the generated EJB jars. A new attribute "dependency" can be
  1371. defined which controls what classes are added. The addition of classes now uses
  1372. the Jakarta-BCEL library rather than reflection, meaning bean classes are
  1373. no longer loaded into Ant's JVM. The default dependency analyzer is known as
  1374. the ancestor analyzer. It provides the same behaviour as the 1.4.1 version of
  1375. <ejbjar>. If the BCEL library is not present, a warning will be issued stating
  1376. the ancestor analyzer is not available. In this case <ejbjar> will continue
  1377. to function but will not add super classes to the jar.
  1378. * <available> has a new attribute named ignoreSystemClasses.
  1379. * New task <cvschangelog/> generates an XML report of changes that occur
  1380. on CVS repository.
  1381. * New filter readers: ClassConstants, ExpandProperties, HeadFilter,
  1382. LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens,
  1383. StripJavaComments, StripLineBreaks, StripLineComments, TabsToSpaces,
  1384. TailFilter.
  1385. * <copy>, <loadfile>, <loadproperties>, <move> support FilterChains
  1386. of FilterReaders.
  1387. * New task <loadproperties> to load contents of file as Ant properties,
  1388. with nested <filterchain> elements.
  1389. * New task <loadfile> to load a whole file into a property.
  1390. * New task <echoproperties> to list your current properties to the screen
  1391. or a file.
  1392. * New tasks <bzip2> and <bunzip2> to pack and unpack files using the
  1393. BZip2 alogrithm.
  1394. * New tasks <replaceregexp>, <checksum>, <translate>, <waitfor>,
  1395. <manifest>, <vsscp>, <vssadd>, <vsscreate>, <splash>, <basename>, <dirname>,
  1396. <concat>, <sourceoffsite>, <jarlib-available>, <jarlib-display>,
  1397. <jarlib-manifest>, <jarlib-resolve>.
  1398. * A new combined <mail> task, which replaces the old <mail> and
  1399. <mimemail> tasks, has been added. The <mimemail> task, and
  1400. old SendEmail and MimeMail classes have been deprecated.
  1401. * Mail task allows specification of port number.
  1402. * Users can control what <zip> and <jar> must do when duplicate files
  1403. are found. A new element <zipgroupfileset> allows for multiple zip
  1404. files to be merged into the archive. In addition, <jar> also has
  1405. another new attribute: filesetmanifest. The existing manifest
  1406. attribute of <jar> now also accepts the name of a jar added through
  1407. a fileset.
  1408. * gzip now checks that the zipfile is older than the source file
  1409. before rebuilding the zipfile.
  1410. * TarFileset takes in three new attributes - fullpath, prefix
  1411. and preserveLeadingSlashes.
  1412. * <move> attempts to rename the directory, if everything inside it is
  1413. included, before performing file-by-file moves. This attempt will
  1414. be done only if filtering is off and if mappers are not used. This
  1415. is a performance improvement and there is no change otherwise in
  1416. the funtionality of this task.
  1417. * Exec task has extra attribute "resultproperty" to get the return code
  1418. into a property.
  1419. * Exec task prints a message when a timed-out process is killed.
  1420. * Added optional attributes - name, arch and version to the <os> task.
  1421. * Unjar, Untar, Unwar and Unzip now support patternsets to
  1422. select files from an archive for extraction. Filesets may be
  1423. used to select archived files for unarchival.
  1424. * Javac task allows debug levels to be specified. Debug levels
  1425. will have an effect only when the modern compiler or the
  1426. classic compiler (version 1.2 and higher) is used and debugging
  1427. is enabled.
  1428. * Added support for specifying CVS_RSH in the <cvs/> task
  1429. * The attributes zipfile, jarfile, warfile and earfile (from the Zip,
  1430. Jar, War and Ear tasks) have been deprecated and superseded by a
  1431. new attribute "destfile".
  1432. * Added new conditions <isset>, <checksum>, <http>, <socket>, <contains>,
  1433. <filesmatch>.
  1434. * <taskdef> and <typedef> will now emit a warning if a task/type of
  1435. the given name already exists.
  1436. * A new revision of VAJ tasks: The most important new feature
  1437. is the ability to execute VAJ tasks from the command line by
  1438. exploiting the Remote Tool Access feature of VAJ.
  1439. * Improved support for Novell NetWare.
  1440. * Added an optional encoding attribute to <fixcrlf>.
  1441. * <apply> has a new attribute relative that allows users to pass the
  1442. filenames as relative instead of absolute paths on the command line.
  1443. * References can now be copied into the child build by <ant> and
  1444. <antcall> using nested <reference> elements or the new inheritRefs
  1445. attribute.
  1446. * <fail> now supports builds to fail based on conditions via if and
  1447. unless attributes.
  1448. * Ant now comes with two new BuildLogger implementations - one that
  1449. can send emails containing a log of the build process (MailLogger),
  1450. and one that colorizes the output based on message levels, using
  1451. ANSI color code escape sequences (AnsiColorLogger).
  1452. * A "package" mapper type has been added to allow package directory
  1453. names replaced with the dotted form.
  1454. * You can now specify environment variables in the <java> and <junit> tasks
  1455. if the fork attribute has been set to true.
  1456. * -propertyfile command-line option has been added to load an entire
  1457. property file just as -D properties are declared (as user properties).
  1458. -D properties take precedence over -propertyfile specified ones.
  1459. * You can now set an ANT_ARGS environment variable to hold arguments you
  1460. always want passed to the 'ant' command -- for example, if you always
  1461. want to use a different logger or the -find flag.
  1462. * <tstamp> now supports a new "prefix" attribute to prefix properties set.
  1463. * You can now specify the -sourcepath for <javac> explicitly.
  1464. * <javac> now supports a new "listfiles" attribute to list the source
  1465. files it's handing off to the compiler.
  1466. * The compiler implementation for <javac> can now be chosen on a task by
  1467. task basis. The new "compiler" attribute of <javac> can be used to override
  1468. the value of the build.compiler property, if set.
  1469. * <javac> has a new nested element, <compilerarg>, which allows you
  1470. to specify additional args for the specific compiler you're using.
  1471. * <javac>'s "source" attribute is now enabled for jikes as well.
  1472. * <propertyfile>'s <entry> now has a 'unit' attribute to specify the
  1473. increment/decrement unit on date operations.
  1474. * <property> now supports a 'prefix' attribute when loading from a file
  1475. or resource.
  1476. * In Ant 1.4, a feature has been added to the <junit> task that would
  1477. add ant.jar, optional.jar and junit.jar implicitly to the classpath -
  1478. this feature can now be disabled by setting the new includeantruntime
  1479. attribute to false.
  1480. * <style> behaves differently from any other directory-based task, as it
  1481. processes all files that it finds in included directories in
  1482. addition to the files matched by your patterns. There is now a new
  1483. attribute, 'scanincludeddirectories', to suppress this behavior.
  1484. * <javadoc> now supports a <tag> nested element to provide the -tag option
  1485. to the standard Java 1.4 doclet. The element is ignored when not running
  1486. on Java 1.4.
  1487. * <ftp> can now chmod files on a remote server that supports
  1488. "site chmod", as well as set the umask before transferring files, if
  1489. the server supports "site umask".
  1490. * New <serverdeploy> "optional" task.
  1491. * <patternset> now supports nested patternsets.
  1492. * Perforce tasks now support a "failonerror" attribute (defaults to "true").
  1493. * Open Source application server JOnAS support:
  1494. EJB hot deploy and deploy with <serverdeploy> and <ejbjar>
  1495. * Added new DirSet (<dirset>) datatype.
  1496. * <path> now supports nested <dirset> and <filelist> elements.
  1497. * <pathconvert> now supports nested <dirset> and <filelist> elements.
  1498. * <pathconvert>'s "dirsep" and "pathsep" attributes now accept
  1499. multi-character values.
  1500. * <copy> task now has a 'failonerror' attribute to allow keep-going
  1501. behaviour when the file to be copied is not found (defaults to "true").
  1502. * <uptodate> now has a 'srcfile' attribute to allow specifying a
  1503. full-path filename.
  1504. * <exec>, <sql> and <java> now support append attributes to allow
  1505. appending the output to an existing file.
  1506. * <java> now supports a timeout attribute analog to <exec> - it is
  1507. highly recommended to only use it together with fork="true".
  1508. * <javadoc> now supports a source attribute to enable javadoc to
  1509. handle assertions present in JDK 1.4 source code.
  1510. * <replace> supports a new replacefilterfile attribute that
  1511. automatically turns all properties of a given file into
  1512. replacefilters.
  1513. * An alias of <xslt> has been added to refer to the <style> task.
  1514. * The compiler implementation for <rmic> can now be chosen on a task by
  1515. task basis. The new "compiler" attribute of <rmic> can be used to override
  1516. the value of the build.rmic property, if set.
  1517. * <rmic> has a new nested element, <compilerarg>, which allows you
  1518. to specify additional args for the specific compiler you're using.
  1519. * org.apache.tools.ant.XmlLogger now is a BuildLogger, rather than just
  1520. a BuildListener. It can operate in either mode successfully.
  1521. * <junit> has a new attribute "showoutput". If set to true, output
  1522. generated by tests will be sent to Ant's logging system as well as
  1523. to the formatters (instead of sending it to the formatters
  1524. exclusively).
  1525. * Ant has now a pluggable way to prompt users for input, which is used
  1526. by the new <input> task. IDE integrators can provide an
  1527. implementation of the InputHandler interface to decouple Ant's input
  1528. from the console. An implementation that gets its input from a file
  1529. for unattended builds is part of Ant's distribution.
  1530. For more details see docs/manual/inputhandler.html.
  1531. * <patch> has a new attribute that selects the directory in which to
  1532. run the command.
  1533. * <javadoc> now supports two new nested elements, <fileset> and <packageset>.
  1534. Changes from Ant 1.4 to Ant 1.4.1
  1535. ===========================================
  1536. Fixed bugs:
  1537. -----------
  1538. * <ant>'s antfile attribute will now also be considered an absolute path on
  1539. Windows systems, if it starts with a \ and no drive specifier.
  1540. * The fullpath attribute of <zipfileset> has been ignored if you used
  1541. the src attribute at the same time.
  1542. * The manifest file is now always placed as the second entry (after /META-INF)
  1543. in generated jars. This allows the manifest to be read by JarInputStreams
  1544. * Fixed bug in depend task which would fail with a NullPointerException if no
  1545. dependency cache was specified.
  1546. * sql task now handles REM statements correctly so that lines starying with rem
  1547. but which are not comments are actually processed.
  1548. * XMLLogger now uses the task's name rather than the classname
  1549. * <mapper>s will now work as expected if the to pattern expands to an
  1550. absolute pathname.
  1551. * <javac> didn't ignore memory settings in non-fork mode
  1552. * <cab> didn't split the options attribute into several command line
  1553. arguments correctly.
  1554. Other changes:
  1555. --------------
  1556. * New source attribute for <javac> to enable assertion in JDK 1.4
  1557. * XmlLogger and <antstructure> now add an encoding declaration to the
  1558. XML files they generate.
  1559. * <fileset> has a new attribute "casesensitive" to make it match
  1560. filenames in a case insensitive way (if you set it to false) - by
  1561. default filesets remain case sensitive.
  1562. Changes from Ant 1.3 to Ant 1.4
  1563. ===========================================
  1564. Changes that could break older environments:
  1565. --------------------------------------------
  1566. * JUnitReport now uses the xalan redirect extension for multi-output.
  1567. With Xalan 1.2.2 it forces the use of bsf.jar in the classpath.
  1568. (Available in the xalan distribution). It is recommended to switch
  1569. to Xalan 2.x that do not need it.
  1570. * Zip.setWhenempty() has changed its signature.
  1571. * <rmic> is now implemented using a factory. This makes extending
  1572. rmic to use a new compiler a lot easier but may break custom
  1573. versions of this task that rely on the old implementation.
  1574. * several Zip methods have changed their signature as we now use a Zip
  1575. package of our own that handles Unix permissions for directories.
  1576. Furthermore <zip> will now use the platform's default character
  1577. encoding for filenames - this is consistent with the command line
  1578. ZIP tools, but causes problems if you try to open them from within
  1579. Java and your filenames contain non US-ASCII characters. Use the new
  1580. encoding attribute of the task and set it to UTF8 to get the old
  1581. behavior.
  1582. * The <pvcs> task has been moved to a package of its own.
  1583. * JUnitResultFormater has two additional methods that must be
  1584. implemented by custom formatters.
  1585. * Ant will no longer use the canonical version of a path internally -
  1586. this may yield different results on filesystems that support
  1587. symbolic links.
  1588. * The output generated by the xml formatter for <junit> has changed
  1589. again, it doesn't format the numeric value in the time attribute anymore.
  1590. * Pattern matching rules have changes slightly, the pattern foo*
  1591. doesn't match files contained in a directory named foo - use foo/*
  1592. instead.
  1593. * <fixcrlf> will not remove trailing whitespace at the end of lines anymore.
  1594. * The Classloader usage has been changed for the taskdef, property, available
  1595. and sql tasks so that it delegates to the parent classloader. This may cause
  1596. ClassNotFoundExceptions to be thrown if a system class attempts to load a
  1597. class in the taskdef's classpath (typically factory objects).
  1598. * Ant now allows multithreading of tasks and the containment of tasks within
  1599. other tasks. This can break customer listeners which do not expect messages
  1600. from a task before the previous task has finished.
  1601. * Ant now installs its own ouput stream into System.out to route output to the
  1602. task currently executing on the current thread. This also means that all
  1603. output is now routed as Ant message events. Customer listeners and loggers
  1604. should not call System.out at any time. This has always been true but such
  1605. usage now will cause problems due to possible recursion.
  1606. * Invalid manifest files will now cause build failures in the <jar> task.
  1607. * Ant Introspection now looks for methods with method names starting with
  1608. addConfigured. When called these methods are passed an argument after it has
  1609. been configured from the build file. Custom tasks supporting nested elements
  1610. starting with the name configured will no longer function.
  1611. * The environment variable JAVACMD that can be used to specify the
  1612. java executable to Ant's wrapper scripts must not contain additional
  1613. command line parameters any longer - please use the environment
  1614. variable ANT_OPTS for such parameters now.
  1615. * Ant's wrapper scripts now quote the CLASSPATH environment variable, thus
  1616. supporting classpaths which refer to directories containing spaces. This means
  1617. that the CLASSPATH environment variable cannot have quotes. Any quotes should
  1618. be removed. This will not affect the operation of the CLASSPATH environment
  1619. variable in other contexts.
  1620. * A delete task like
  1621. <delete includeEmptyFilesets="true">
  1622. <fileset dir="somedir" />
  1623. </delete>
  1624. will now remove "somedir" as well, unless there are still files left
  1625. in it (matched by the default excludes).
  1626. * The copy task will now fail if the file to be copied is not found.
  1627. * Ant properties defined in properties files now behave the same way as
  1628. properties defined in the build file. In particular the $ character needs
  1629. to be escaped in property values by doubling it to $$. So, to define a
  1630. property with the value $hello, you need to define it in a properties file
  1631. as
  1632. test.prop=$$hello
  1633. This was not the case in Ant 1.3
  1634. Other changes:
  1635. --------------
  1636. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  1637. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset,
  1638. condition, maudit, mmetrics, jpcoverage, jpcovreport, jpcovmerge
  1639. * Ant now uses JAXP 1.1
  1640. * rmic now supports Kaffe's and Weblogic's version of rmic.
  1641. * new magic property build.rmic to chose the rmic implementation
  1642. * <tar> will now add empty directories as well
  1643. * you can now specify a description for <p4change>
  1644. * <touch> can now work on <fileset>s
  1645. * <uptodate> now supports a value attribute
  1646. * <fail> supports nested text
  1647. * <fixcrlf> won't override files that are already in the correct
  1648. format.
  1649. * <sql> now supports REM comments as well as // and --
  1650. * <jar> now has a nested <metainf> element following the same idea as
  1651. <war>'s <webinf>.
  1652. * <pvcs> can now handle multiple projects.
  1653. * <available> now has a "type" attribute you can use in conjunction
  1654. with the "file" attribute to specify whether the "file" you're
  1655. looking for is a file or a directory.
  1656. * New <junit> formatter named "brief"
  1657. * <ejbjar> changes
  1658. * Add support for Borland Application Server to the <ejbjar> task using
  1659. a <borland> nested element.
  1660. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  1661. includes some iPlanet utility tasks
  1662. * Add support for JBoss Application Server to the <ejbjar> task.
  1663. * Add a naming attribute to control the naming scheme that
  1664. ejbjar uses to name the generated EJB jars.
  1665. * Weblogic element now sets the compiler class for EJB 2.0 beans
  1666. * <dtd> elements can be specified at the <ejbjar> level for building generic
  1667. beans
  1668. * <dtd> elements can now be URLs
  1669. * Allow the manifest to be specified for the generated jars
  1670. * The weblogic element now supprts an attribte noEJBC to skip the processing
  1671. of the jar by ejbc. The ejbc step will then occur at deployment
  1672. * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to
  1673. jikes. It can be restored to the default, javac, operation if desired.
  1674. * Allow the <sql> Delimiter to be set in the so that Oracle stored procs may be
  1675. entered
  1676. * <execon> and <apply> can now optionally skip empty filesets.
  1677. * <javadoc> has a new useexternalfile attribute that makes it use a
  1678. temporary file for sourcefile and package names - helps to defeat
  1679. command line length limitations.
  1680. * Data types like <path> can now be defined inside of <target>s
  1681. * you can now specify a classpath for <style> - the XSLZ processor
  1682. will be loaded from this path
  1683. * added a force attribute to <style> to support dependencies that the
  1684. task cannot determine itself (dependency on parameters, not file
  1685. modification times for example)
  1686. * added vmlauncher attribute to exec tasks. This defaults to true. If
  1687. it is set to false, the VM's ability to launch commands in bypassed
  1688. and the OS shell, either directly or through the auxillary antRun
  1689. scripts is used.
  1690. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  1691. * New filesonly attribute for <zip> and friends to suppress directory
  1692. entries.
  1693. * New update attribute for <zip> and friends - update an existing
  1694. archive instead of creating a new one.
  1695. * <apply> and <execon> have been merged into a single task.
  1696. * added vssver.scc to the default excludes
  1697. * <available> has a new filepath attribute/nested element that allows
  1698. you top search for a file in a given path.
  1699. * <junit> can now optionally set a property on test failure.
  1700. * <taskdef> can now define several tasks at once, reading the
  1701. name/classname pairs from a property file or resource.
  1702. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  1703. defaults to true. If set to false, files that are newer than the
  1704. files in the archive will not be replaced.
  1705. * <patternset> and <fileset> now support nested <in/excludesfile>
  1706. elements - using these you can have more than one in/excludes file
  1707. per <patternset>.
  1708. * Three new supported compilers for javac: kjc for kopi, gcj for the
  1709. gcc frontend and sj for Symantec's compiler.
  1710. In addition extJavac or the new fork attribute can be
  1711. used to run the JDK's javac in a JVM separate from Ant.
  1712. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  1713. between 2 and 80.
  1714. * The .NET tasks have been adapted to the beta2 release of the framework.
  1715. * <move> will now try to rename() files before copying them byte by
  1716. byte - only if filtering is of, of course.
  1717. * <ant> and <antcall> tasks now support a new attribute inheritAll. When set to
  1718. false, only user properties are passed through to the target Ant instance.
  1719. This includes properties set on the command line and properties explicitly
  1720. passed
  1721. * <javadoc> now skips off line links if the package list cannot be found.
  1722. * <wlrun> now allows the security policy file to exist outside the weblogic
  1723. directory.
  1724. * <java> task will set the Thread contextClassLoader under JDKs 1.2+ to the
  1725. classloader for the class being executed.
  1726. * Introduce the concept of a TaskContainer - a task or element which can contain
  1727. Ant Tasks.
  1728. * Add new tasks implementing the TaskContainer interface <parallel> and
  1729. <sequential> which allow parallel execution of tasks to be specified.
  1730. * <depend> task will now take into account dependencies on jar files and class
  1731. files from a given classpath.
  1732. * <jar> manifest entries may now be specified in the build file either
  1733. completely or to be merged with a manifest file.
  1734. * <tstamp> task custom formats now support locales.
  1735. * Added a listner which will forward events to Log4J. The log4j configuration
  1736. file should be in the directory from which Ant is run or passed as a system
  1737. property using a JVM argument.
  1738. * Introduced the concept of <filtersets> to allow for more control in which
  1739. filters get applied in a <copy> or <move> operation.
  1740. * Added nowarn attribute to javac and deprecated the Jikes-magic property
  1741. build.compiler.warnings.
  1742. * The <depend> task cache format has changed and all dependency information is
  1743. now stored in a single file.
  1744. Fixed bugs:
  1745. -----------
  1746. * Testcases have been made independent of current working directory.
  1747. * Input ZIP-Files will be closed when using a <zipfileset>.
  1748. * p4 tasks now don't fail if user, port or client have been omitted
  1749. (and this is acceptable for the context of the command).
  1750. * <javah>'s outputfile attribute will be resolved as relative to the
  1751. projects basedir.
  1752. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  1753. and omit tasks it fails to load.
  1754. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  1755. * <style>'s style attribute no handles absolute paths correctly.
  1756. * <delete includeemptydirs="true"> now deletes more than just the leaf
  1757. directories.
  1758. * You can now specify a <fileset> for a directory that doesn't exist at
  1759. declaration time but will created before the fileset gets used for the
  1760. first time.
  1761. * If the quiet attribute has been set, <delete> will handle <fileset>s
  1762. with non-existing directories gracefully.
  1763. * Output written by testcases will now be captured by the <junit> task
  1764. and passed to the formatters.
  1765. * Quote the -group parameter to Javadoc as per the specification
  1766. * Initialise classes when loaded through the AntClassLoader - that is, run
  1767. static initializers
  1768. * Implement getResource() and getResources() in AntClassLoader
  1769. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  1770. as a single line. Avoids problems with paths which contain spaces.
  1771. * <ejbjar> now fails when the weblogic ejbc compiler reports an error.
  1772. * Make the AntClassLoader load resources in the same order as it currently
  1773. loads classes.
  1774. * Handle classpaths with spaces
  1775. * Make sure XSLT processors close their output files in <style>.
  1776. * perform proper uptodate check in <rmic> when compiling for IIOP.
  1777. * <jjtree>'s uptodate test works even if outputdirectory is not the
  1778. parent dir of target
  1779. * <copy> will remove target file (if it exists) before writing to it -
  1780. this avoids problems with links on filesystems that support them.
  1781. * <ftp> now properly recurses remote directories.
  1782. * <ftp> closes remote connection when it's done.
  1783. * <junit> tries to include all necessary classes for the task itself
  1784. to the classpath when running in fork mode - doesn't work for JDK 1.1
  1785. * <apply> and <execon> do now execute the command only once, if you
  1786. specify the parallel attribute - instead of once per fileset.
  1787. * directory based tasks and fileset could miss some included files in
  1788. directories that have been excluded
  1789. * <fixcrlf> failed for large files.
  1790. * <move> removed files you tried to move to themselves.
  1791. * <sql> task will not trty to print the result set unless the query succeeded.
  1792. * Ant classloader will now ignore paths which are invalid relative to the
  1793. project base
  1794. * <ejbjar> weblogic elements check for jar file changes has been fixed.
  1795. Previously some changes would not be included.
  1796. * properties loaded from properties files are now resolved internally. This
  1797. removes the spurious warnings about usage of properties which have not been
  1798. set.
  1799. * <jar> task and friends now process the JAR manifest to ensure it is valid.
  1800. * The task finished event now includes any exception thrown by the task.
  1801. * <java> task now supports a jvmVersion attribute so that if another JVM is
  1802. being used, Ant can determine which options to use for features such as the
  1803. VM memory limits
  1804. Changes from Ant 1.2 to Ant 1.3
  1805. ===========================================
  1806. Changes that could break older environments:
  1807. --------------------------------------------
  1808. * Ant doesn't search for the buildfile anymore, unless you use the new
  1809. -find argument.
  1810. * <perforce> has been replaced by a number of new tasks.
  1811. * <javac> is now implemented using a factory. This makes extending
  1812. javac to use a new compiler a lot easier but may break custom
  1813. versions of this task that rely on the old implementation.
  1814. * The output generated by the xml formatter for <junit> has changed a
  1815. little, it doesn't append " sec" in the time attribute anymore.
  1816. Other changes:
  1817. --------------
  1818. * A GUI Frontend: Antidote. This is currently in development. At this
  1819. time, this is not part of the Ant release, although the source is
  1820. included if you are interested.
  1821. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  1822. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  1823. * Added output attribute to <java>.
  1824. * Added nested zipfileset element to <zip>
  1825. * Changed <sql> so that printing is at the task level rather than
  1826. the statement level.
  1827. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  1828. given. If the doclet does not accept the -d flag then omit the destdir
  1829. attribute.
  1830. * <cab> can work on non-Windows platforms with the help of libcabinet.
  1831. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  1832. * <ftp> now supports passive mode.
  1833. * New <mapper> data type that can be used to get influence on the
  1834. target files for some tasks like <copy> or enable new types of tasks
  1835. like <apply>.
  1836. * <execon> provides more control over the command line now, the names
  1837. of the source files are no longer required to be at the end of the
  1838. command.
  1839. * Style tasks will now support TraX compliant XSL processors if one is present
  1840. in your classpath.
  1841. * Added a failonerror to the javac task. If set to false, the build will
  1842. continue even if there are compilation errors.
  1843. * Added nested format elements to the tstamp task allowing additional time
  1844. formats to be defined for arbitrary properties.
  1845. * Added classpath attribute and nested classpath element to <property>
  1846. to make the resource attribute more powerful.
  1847. * ${} property expansion will now be performed on the patterns read
  1848. from files specified as includesfile or excludesfile attributes.
  1849. * The <tar> and <untar> tasks now support GNU format for handling paths
  1850. which are greater than 100 characters in length. In addition the <tar>
  1851. task now supports nested filesets through which the file permissions
  1852. may be controlled.
  1853. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  1854. * The MPasre task has been updated to work with MParse 2.0
  1855. * The documentation has been significantly updated.
  1856. Fixed bugs:
  1857. -----------
  1858. * <signjar> doesn't use deprectated methods anymore.
  1859. * javadoc's failonerror attribute works again
  1860. * javadoc's additionalparam attribute will now be split into separate
  1861. parameters (on spaces) to allow for more than one parameter.
  1862. * Changed <sql> task so that printing result sets works on Oracle
  1863. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  1864. keppgenerated in ejbc can now be turned off
  1865. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  1866. CMP files are included by parsing the weblogic deployment descriptor rather
  1867. than relying on the naming convention used in ant 1.2
  1868. * ejbjar includes super classes and super interfaces into the generated ejb
  1869. jar files. The <support> nested element allows support classes to be
  1870. included in the EJB jar. The toplink element should now correctly locate
  1871. the toplink descriptor.
  1872. * <vssget> now correctly deals with spaces in arguments
  1873. * <jar> fails early if a given manifest file doesn't exist
  1874. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  1875. set to 1.2.
  1876. * <rmic> uses the the same classpath to verify a class can be rmic'd
  1877. as it passes to the compiler.
  1878. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  1879. handle SMTP servers sending multi line responses.
  1880. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  1881. nested into <target> as well.
  1882. * <property> and <available> will search for the resource "foo" instead
  1883. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  1884. name foo.
  1885. * Handle build files in directories whose name contained a "#" character
  1886. * <junit> can now log to files whose name contains a comma as well.
  1887. * The AntClassLoader now refers to the loader which loaded it, any
  1888. requests it does not handle itself. Previously these went to the
  1889. primordial loader.
  1890. Changes from Ant 1.1 to Ant 1.2
  1891. ===============================
  1892. Changes that could break older environments:
  1893. --------------------------------------------
  1894. * Semantics of <property> has changed again in the hope to be more
  1895. intuitive. ${} expansion now happens at runtime and <property> tags
  1896. living inside of targets only take effect if they are visited at
  1897. runtime.
  1898. As a side effect of this change, task's attributes get set at runtime
  1899. not at parser time as well, which might change the results of
  1900. <script>s or other custom tasks that reference other tasks by their id
  1901. attribute.
  1902. * copying of support files in <javac> has been removed - as well as
  1903. the filtering attribute.
  1904. * the <expand> and <keysubst> tasks have been removed.
  1905. * the ignore and items attributes of directory based tasks have been removed.
  1906. * the command line switches _not_ starting with - have been removed.
  1907. * Path and EnumeratedAttribute have been moved from
  1908. org.apache.tools.ant to org.apache.tools.ant.types.
  1909. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  1910. have been removed.
  1911. * the src attribute of <chmod> has been removed.
  1912. * <patch> and <javadoc> have lost some of their attributes.
  1913. * <java> and <cvs> have lost some undocumented attributes.
  1914. * the Unix antRun script would search for command.sh in the directory
  1915. it changed to and invoke this instead of command if present. This
  1916. behavior has been dropped.
  1917. * <ejbjar> task syntax has been changed significantly
  1918. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  1919. Custom tasks that rely on Project.createTask("exec") to return an
  1920. instance of this class are going to fail.
  1921. * nested <include> and <exclude> elements expect the value of their
  1922. name attribute to be a single pattern, they don't accept multiple
  1923. patterns anymore. Split them into multiple elements of the same type.
  1924. * <delete dir="somedir" /> will now delete the directory itself as
  1925. well as all included files. If you just want to clean out the
  1926. directory and keep the empty one, use a nested fileset.
  1927. Other changes:
  1928. --------------
  1929. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  1930. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  1931. native2ascii, copy, move, mparse.
  1932. * copydir, copyfile, deltree and rename are now deprecated. They
  1933. should be replaced with the new copy, delete and move tasks.
  1934. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  1935. specified.
  1936. * <style> will create the necessary target directories and reprocess
  1937. all files if the stylesheet changes.
  1938. * New data types fileset and patternset - expected to get a broader use.
  1939. They, as well as PATH like structures, can now be defined on a global
  1940. level and later be referenced by their id attribute.
  1941. * You can specify environment variables to <exec>.
  1942. * <get> can check whether a remote file is actually newer than a local
  1943. copy before it starts a download (HTTP only).
  1944. * Added a -logger option to allow the class which performs logging to be
  1945. specified on the command line.
  1946. * Added a -emacs option to tell the logger to leave out taskname adornments
  1947. on log output.
  1948. * <chmod> works on all files in parallel and supports multiple filesets.
  1949. * <replace> can now use tokens and/or values that cross line boundaries.
  1950. * build.compiler supports now jvc as well.
  1951. * project specific help can now be obtained with the -projecthelp option.
  1952. * Added a -debug option to make -verbose less verbose (and more useful)
  1953. * Ant will now search for a file named build.xml in the parent directory
  1954. and above (towards the root of the filesystem) if you didn't specify
  1955. -buildfile and there is no build.xml in the current directory.
  1956. * <echo> can now write to a file and accepts nested text.
  1957. Fixed bugs:
  1958. -----------
  1959. * <chmod> didn't work when used as a directory based task.
  1960. * Path, Available, Property didn't resolve relative filenames with
  1961. respect to the Project's basedir.
  1962. * Project didn't interpret the basedir attribute correctly in all
  1963. cases.
  1964. * Nested <src> in <javac> caused NullPointerException.
  1965. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  1966. * many more fixes we've forgotten to document here ...
  1967. * The packagelistloc attribute of <javadoc>'s <link> child will be
  1968. resolved as a file (i.e. it is either absolute or relative to
  1969. basedir).