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

WHATSNEW 195 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264
  1. Changes from Ant 1.8.1 TO current SVN version
  2. =============================================
  3. Changes that could break older environments:
  4. -------------------------------------------
  5. * Prior to Ant 1.8.0 the <copy> task and several other tasks would
  6. overwrite read-only destination files. Starting with 1.8.0 they
  7. would only do so under special circumstances. Ant 1.8.2 now
  8. consistently won't replace a read-only file by default. The same is
  9. true for a number of other tasks.
  10. The <copy>, <move> and <echo> tasks now have a new force attribute
  11. and <concat> has a new forceReadonly attribute that can be used to
  12. make the task overwrite read-only destinations.
  13. Bugzilla Report 49261.
  14. * Removed ant-nodeps.jar; it is now merged into ant.jar.
  15. * DOMElementWriter#encode used to employ special code before encoding
  16. ampersands so that &#123; remained &#123; rather than being turned
  17. into &amp;#123;. This is no longer the case, ampersands will now
  18. be encoded unconditionally.
  19. Also DOMElementWriter#encodeData will treat CDATA sections containing a
  20. literal "]]>" sequence different now - it will split the CDATA
  21. section between the second "]" and ">" and create two sections.
  22. This affects <echoxml> task as well as the XML logger or JUnit
  23. formatter where ampersands will now always get encoded.
  24. Bugzilla Report 49404.
  25. Fixed bugs:
  26. -----------
  27. * mmap-based file copy problems under JDK 1.4 on Linux.
  28. Bugzilla Report 49430.
  29. * The Sun JVM tries to mmap the entire file during a copy.
  30. For large files this is not feasible.
  31. We now explicitly request to copy at most 16 MiB per request.
  32. Bugzilla Report 49326.
  33. * DemuxInputStream.read() should return unsigned values
  34. Bugzilla Report 49279.
  35. * The MIME mailer ignored the port parameter when using SSL.
  36. Bugzilla Report 49267.
  37. * <xslt> ignored the classpath when using the default TraX processor.
  38. Bugzilla Report 49271.
  39. * <checksum>'s totalproperty only worked reliably if the same file
  40. name didn't occur inside more than one directory.
  41. Bugzilla Report 36748.
  42. * <ftp> could fail to download files from remote subdirectories under
  43. certain circumstances.
  44. Bugzilla Report 49296.
  45. * <junit> will now produce better diagnostics when it fails to delete
  46. a temporary file.
  47. Bugzilla Report 49419.
  48. * Ant would often scan directories even though there were known to
  49. only hold excluded files when evaluating filesets. This never
  50. resulted in wrong results but degraded performance of the scan
  51. itself.
  52. Bugzilla Report 49420.
  53. * <javac> failed for long command lines on OS/2.
  54. Bugzilla Report 49425.
  55. * <junitreport> did not handle encodings well for stdout/stderr.
  56. Bugzilla Report 49418.
  57. Other changes:
  58. --------------
  59. * <concat>'s force attribute has been deprecated in favor of a new
  60. overwrite attribute that is consistent with <copy>'s attribute
  61. names.
  62. * You can now specify a list of methods to run in a JUnit test case.
  63. Bugzilla Report 34748.
  64. * properties in files read because of the -propertyfile command line
  65. option will now get resolved against other properties that are
  66. defined before the project starts executing (those from the same or
  67. earlier -propertfiles or defined via the -D option).
  68. Bugzilla Report 18732.
  69. Changes from Ant 1.8.0 TO Ant 1.8.1
  70. ===================================
  71. Changes that could break older environments:
  72. -------------------------------------------
  73. * ant-trax.jar is no longer produced since TrAX is included in JDK 1.4+.
  74. * Ant no longer ships with Apache Xerces-J or the XML APIs but relies
  75. on the Java runtime to provide a parser and matching API versions.
  76. * The stylebook ant task and the ant-stylebook.jar are removed.
  77. Fixed bugs:
  78. -----------
  79. * Tasks that iterate over task or type definitions, references or
  80. targets now iterate over copies instead of the live maps to avoid
  81. ConcurrentModificationExceptions if another thread changes the
  82. maps.
  83. Bugzilla Report 48310.
  84. * The filesmatch condition threw a NullPointerException when
  85. comparing text files and the second file contained fewer lines than
  86. the first one.
  87. Bugzilla Report 48715.
  88. * Regression: The <ear> task would allow multiple
  89. META-INF/application.xml files to be added.
  90. Bugzilla Report 6836.
  91. * VectorSet#remove(Object) would fail if the size of the vector
  92. equaled its capacity.
  93. * Regression : ant -diagnostics was returning with exit code 1
  94. Bugzilla Report 48782
  95. * Fix for exec task sometimes inserts extraneous newlines
  96. Bugzilla Report 48746
  97. * SymlinkTest#testSymbolicLinkUtilsMethods failing on MacOS
  98. Bugzilla Report 48785.
  99. * If <concat>'s first resourcecollection child is a <resources>,
  100. any subsequently added child resourcecollection joins the first.
  101. Bugzilla Report 48816.
  102. * <get> with an invalid URL could trigger an NPE in some JVMs.
  103. Bugzilla Report 48833
  104. * Broken Pipe issue under Ubuntu Linux
  105. Bugzilla Report 48789
  106. * Properties wrongly read from file or not update during read
  107. Bugzilla Report 48768
  108. * AntClassLoader in Ant 1.8.0 has been considerably slower than in
  109. 1.7.1
  110. Bugzilla Report 48853
  111. * ANT_CMD_LINE_ARGS are rippling through lower level Ant usage
  112. Bugzilla Report 48876
  113. * email : IO error sending mail with plain mimetype
  114. Bugzilla Report 48932
  115. * the complete-ant-cmd.pl script failed to create a proper cache of
  116. target if "ant -p" failed.
  117. Bugzilla Report 48980
  118. * <rmic>'s sourcebase attribute was broken.
  119. Bugzilla Report 48970
  120. * <copy>'s failonerror didn't work as expected when copying a single
  121. element resource collection to a file.
  122. Bugzilla Report 49070
  123. * <get> no longer followed redirects if the redirect URL was relative
  124. and not an absolute URL.
  125. Bugzilla Report 48972
  126. * fixed a performance degradation in the code that expands property
  127. references.
  128. Bugzilla Reports 48961 and 49079
  129. * <jar filesetmanifest="merge"> was broken on Windows.
  130. Bugzilla Report 49090
  131. * <symlink> delete failed if the link attribute was a relative path
  132. to a link inside the current directory without a leading ".".
  133. Bugzilla Report 49137
  134. * <telnet> and <rexec> failed to find the expected strings when
  135. waiting for responses and thus always failed.
  136. Bugzilla Report 49173
  137. Other changes:
  138. --------------
  139. * Project provides new get methods that return copies instead of the
  140. live maps of task and type definitions, references and targets.
  141. * Ant is now more lenient with ZIP extra fields and will be able to
  142. read archives that it failed to read in earlier versions.
  143. Bugzilla Report 48781.
  144. * The <zip> family of tasks has been sped up for bigger archives.
  145. Bugzilla Report 48755.
  146. * Add removeKeepExtension option to NetRexxC task.
  147. Bugzilla Report 48788.
  148. * Add prefix attribute to loadproperties task.
  149. * Add resource attribute to length task.
  150. * PropertyResource will effectively proxy another Resource if ${name}
  151. evaluates to a Resource object.
  152. * Added forcestring attribute to equals condition to force evaluation
  153. of Object args as strings; previously only API-level usage of the
  154. equals condition allowed Object args, but Ant 1.8.x+ property
  155. evaluation may yield values of any type.
  156. * BuildFileTest.assertPropertyUnset() fails with a slightly more
  157. meaningful error message
  158. Bugzilla Report 48834
  159. * <junit> will now throw an exception if a test name is empty. This
  160. used to manifest itself in unrelated errors like
  161. Bugzilla Report 43586.
  162. * A change that made <exec> more reliable on Windows (Bugzilla Report
  163. 5003) strongly impacts the performance for commands that execute
  164. quickly, like attrib. Basically no single execution of a command
  165. could take less than a second on Windows.
  166. A few timeouts have been tweaked to allow these commands to finish
  167. more quickly but still they will take longer than they did with Ant
  168. 1.7.1.
  169. Bugzilla Report 48734.
  170. * Added SimpleBigProjectLogger, intermediate between NoBannerLogger and
  171. BigProjectLogger.
  172. * <mappedresources> supports new attributes enablemultiplemappings
  173. and cache.
  174. * Added the augment task to manipulate existing references via Ant's basic
  175. introspection mechanisms.
  176. Changes from Ant 1.8.0RC1 TO Ant 1.8.0
  177. ======================================
  178. Changes that could break older environments:
  179. -------------------------------------------
  180. * the appendtolines filter has been renamed to suffixlines.
  181. Fixed bugs:
  182. -----------
  183. * stack traces were not reported at all by <junit/>
  184. when filtertrace="on", which is the default.
  185. * ant.bat can now also process the -noclasspath switch when it is
  186. the first switch on a command line.
  187. Bugzilla Report 48186.
  188. * <fixcrlf> now tries to delete the created temporary files earlier.
  189. Bugzilla Report 48506.
  190. * the implementation of <zip> had been changed in a way that broke
  191. the jarjar links task and protentially other third-party subclasses
  192. as well.
  193. Bugzilla Report 48541.
  194. * <scp> task didn't report build file location when a remote operation failed
  195. Bugzilla Report 48578.
  196. * <propertyfile> would add the same comment and a date line each time
  197. it updated an existing property file.
  198. Bugzilla Report 48558.
  199. * <sound> didn't work properly in recent Java VMs.
  200. Bugzilla Report 48637.
  201. Other changes:
  202. --------------
  203. Changes from Ant 1.7.1 TO Ant 1.8.0RC1
  204. ======================================
  205. Changes that could break older environments:
  206. -------------------------------------------
  207. * if and unless attributes (on <target> as well as various tasks and other
  208. elements) have long permitted ${property} interpolation. Now, if the result
  209. evaluates to "true" or "false" (or "yes", "no", "on", "off"), that boolean
  210. value will be used; otherwise the traditional behavior of treating the value
  211. as a property name (defined ~ true, undefined ~ false) is used. Existing
  212. scripts could be broken if they perversely defined a property named "false"
  213. and expected if="false" to be true, or used if="true" expecting this to be
  214. triggered only if a property named "true" were defined.
  215. * Ant now requires Java 1.4 or later.
  216. * Improved handling of InterruptException (lets suppose someone/thing
  217. is trying to kill the thread when we receive an
  218. InterruptException), when an InterruptException is received, we do
  219. not wait anymore in a while loop till the end time has been
  220. reached.
  221. Bugzilla Report 42924.
  222. * Refactor PropertyHelper and introspection APIs to make extension
  223. more granular and support setting task/type attribute values to
  224. objects decoded by custom PropertyEvaluator delegates. Also add
  225. <propertyhelper> task for registering delegates and/or replacing
  226. the registered PropertyHelper instance.
  227. Bugzilla Report 42736.
  228. * Added a restricted form of typedef called <componentdef>. This
  229. allows definition of elements that can only be within tasks or
  230. types. This method is now used to define conditions, selectors,
  231. comparators and filterreaders. This means that tasks may now have
  232. nested conditions just by implementing the Condition interface,
  233. rather than extending ConditionBase. It also means that the use of
  234. namespaces for some of the selectors introduced in Ant 1.7.0 is no
  235. longer necessary. Implementing this means that the DynamicElement
  236. work-around introduced in Ant 1.7.0 has been removed.
  237. Bugzilla Report 40511.
  238. * In the <touch> task when a <mapper> is used, the millis and
  239. datetime attributes now override the time of the source resource if
  240. provisioned.
  241. Bugzilla Report 43235.
  242. * Remove fall-back mechanism for references that are not resolved
  243. during normal runtime execution.
  244. * FileUtils.createTempFile now actually creates the file.
  245. The TempFile task still does not create the file by default, can be
  246. instructed to do so however using a new parameter.
  247. Bugzilla Report 33969.
  248. * A lock in Project ensured that a BuildListener's messageLogged
  249. method was only ever executed by a single thread at a time, while
  250. all other methods could be invoked by multiple threads
  251. simultaniously (while within <parallel>, for example). This lock
  252. is no longer in place, messageLogged should be made thread-safe
  253. now.
  254. * <sql>'s onError="stop" no longer fails the build if an error
  255. occurs, this is the main difference between stop and error and
  256. matches what the documentation implied.
  257. Bugzilla Report 24668.
  258. * Ant's configuration introspection mechanisms have been modified to prefer
  259. Resource and FileProvider attributes to plain java.io.File attributes;
  260. however the configuration-from-String behavior remains equivalent, rendering
  261. a FileResource.
  262. * CBZip2InputStream will now throw an IOException if
  263. passed in a null or empty InputStream to read from.
  264. Bugzilla Reports 32200.
  265. * <unzip> will now fail when trying to extract certain broken
  266. archives that would have been silently ignored in earlier version.
  267. Bugzilla Report 35000.
  268. * Ant's <zip> family of tasks tries to preserve the existing Unix
  269. permissions when updating archives or copying entries from one
  270. archive to another.
  271. Since not all archiving tools support storing Unix permissions in
  272. the same way that is used by Ant, sometimes the permissions read by
  273. Ant seem to be 0, which means nobody is allowed to do anything to
  274. the file or directory.
  275. If Ant now encounters a permission set of 0 it will assume that
  276. this is not the intended value and instead apply its own default
  277. values. Ant used to create entries with 0 permissions itself.
  278. The <zip> family of tasks has a new attribute preserve0permissions
  279. that can be set to restore the old behavior.
  280. Bugzilla Report 42122.
  281. * If a batch containing multiple JUnit tests running inside a forked
  282. Java VM caused the VM to crash (or caused a timeout), the
  283. formatters would receive an error message for the last test in the
  284. batch.
  285. Ant will now pass in a test with the name "Batch-With-Multiple-Tests"
  286. instead - this is supposed to show more clearly that the last test
  287. may not have started at all.
  288. Bugzilla Report 45227.
  289. * If the number of minutes a build takes is bigger then 1000 Ant will
  290. no longer print a thousands separator in the "elapsed time"
  291. message. It used to be the thousands separator of the current
  292. locale.
  293. Bugzilla Report 44659.
  294. * <symlink action="delete"> used to fail if the link was broken (i.e.
  295. pointing to a file or directory that no longer existed). It will now
  296. silently try to remove the link.
  297. Bugzilla Report 41285.
  298. * <delete file="..."> used to log a warning and not delete broken
  299. symbolic links. <delete dir="..."/> didn't even log a warning.
  300. The task will now try to delete them in both cases.
  301. Bugzilla Report 41285.
  302. * if the dir attribute of a <fileset> points to a symbolic link and
  303. followsymlinks is set to false, the fileset will no longer be
  304. scanned and always seem empty.
  305. Bugzilla Report 45741.
  306. * the .NET tasks that have been deprecated since Ant 1.7.0 have been
  307. removed, please use the stand-alone Antlib you can find at
  308. http://ant.apache.org/antlibs/dotnet/index.html
  309. instead.
  310. * the logic of closing streams connected to forked processes (read
  311. the input and output of <exec> and friends) has been changed to
  312. deal with cases where child processes of the forked processes live
  313. longer than their parents and keep Ant from exiting.
  314. It is unlikely but possible that the changed logic breaks stream
  315. handling on certain Java VMs.
  316. Bugzilla issue 5003.
  317. * <checksum>'s totalproperty was platform dependent because it relied
  318. on java.io.File#compareTo. It has now been made platform
  319. independent, which means that totalPropery values obtained on
  320. Windows (and other systems where the sort order of File is not case
  321. sensitive) can be different from the values obtained with earlier
  322. versions of Ant.
  323. Bugzilla Report 36748.
  324. * globmapper didn't work properly if the "to" or "from" patterns
  325. didn't contain a "*". In particular it implicitly added a * to the
  326. end of the pattern(s). This is no longer the case. If you relied
  327. on this behavior you will now need to explicitly specify the
  328. trailing "*".
  329. Bugzilla Report 46506.
  330. * <copy> silently ignored missing resources even with
  331. failOnError="true". If your build tries to copy non-existant
  332. resources and you relied on this behavior you must now explicitly
  333. set failOnError to false.
  334. Bugzilla Report 47362.
  335. * Ant now prefers the java.runtime.version system property over
  336. java.vm.version for the Created-By Manifest attribute.
  337. Bugzilla Report 47632.
  338. * The <image> task now supports a nested mapper. In order to
  339. implement this, the Java API of the task had to change so any
  340. custom subclass overriding the processFile method will need to
  341. adapt (by overriding the new two-arg processFile method).
  342. Bugzilla Report 23243.
  343. * A new property syntax can be used to set attributes from
  344. references: ${ant.ref:some-reference}
  345. In most cases this will yield the exact same result as
  346. ${toString:some-reference} - only when an attribute setter method
  347. accepts an object type other than string and the project's
  348. reference is an Object of matching type the new syntax will pass in
  349. that object.
  350. If your build file already contains properties whose name starts
  351. with "ant.ref:" there is a potential for collision. If your
  352. property has been set, normal property expansion will take
  353. precedence over the new syntax. If the property has not been set
  354. and a reference with the postfix of your property name exists
  355. (i.e. in a very unlikely event) then the new syntax would yield a
  356. different result (an expanded property) than Ant 1.7.1 did.
  357. * A ProjectHelper implementation can now provide the default build file
  358. name it is expecting, and can specify if they can support a specific build
  359. file. So Ant is now capable of supporting several ProjectHelper
  360. implementations, deciding on which to use depending of the input build file.
  361. * Mapper-aware selectors (depends, different, present) now accept typedef'd
  362. FileNameMappers.
  363. Fixed bugs:
  364. -----------
  365. * The default logger was failing to print complete stack traces for
  366. exceptions other than BuildException when inside <ant> or
  367. <antcall>, thus omitting often important diagnostic
  368. information.
  369. Bugzilla 43398 (continued).
  370. * Better handling of package-info.class.
  371. Bugzilla Report 43114.
  372. * RPM task needed an inserted space between the define and the value.
  373. Bugzilla Report 46659.
  374. * Got rid of deadlock between in, out and err in the Redirector.
  375. Bugzilla Report 44544.
  376. * Caused by AssertionError no longer filtered.
  377. Bugzilla Report 45631.
  378. * <zip> would sometimes recreate JARs unnecessarily.
  379. Bugzilla Report 45902.
  380. * <symlink> task couldn't overwrite existing symlinks that pointed to
  381. nonexistent files
  382. Bugzilla Report 38199.
  383. * <symlink> task couldn't overwrite files that were in the way of the symlink.
  384. Bugzilla Report 43426.
  385. * <symlink> task failonerror="false" does not stop build from failing
  386. when 'ln' command returns non-zero.
  387. Bugzilla Report 43624
  388. * <touch> task couldn't differentiate between "no resources
  389. specified" and "no resources matched."
  390. Bugzilla Report 43799.
  391. * ManifestClassPath failed when a relative path would traverse the
  392. file system root.
  393. Bugzilla Report 44499.
  394. * <globmapper> had an indexoutofbounds when the prefix and postfix
  395. overlapped.
  396. Bugzilla Report 44731.
  397. * <typedef> and <taskdef> failed to accept file names with #
  398. characters in them.
  399. Bugzilla Report 45190
  400. * A deadlock could occur if a BuildListener tried to access an Ant property
  401. within messageLogged while a different thread also accessed one.
  402. Bugzilla Report 45194
  403. * Handle null result of system getProperty() in CommandlineJava.
  404. Similar to Bugzilla Report 42334.
  405. * Length task did not process nonexistent Resources even though these might
  406. conceivably still carry file length information.
  407. Bugzilla Report 45271.
  408. * <javac>'s includeJavaRuntime="false" should work for gcj now. Note
  409. that you may need to set includeAntRuntime to false in order to
  410. have full control.
  411. Bugzilla Report 34638.
  412. * <sql> would fail if the executed statment didn't return a result
  413. set with some JDBC driver that dissalow Statement.getResultSet to
  414. be called in such a situation.
  415. Bugzilla Report 36265
  416. * if the executed statement in <sql> returned a result set and an
  417. update count, the count would be lost.
  418. * if an executed statement in <sql> mixes update count and result set
  419. parts, some result sets wouldn't get printed.
  420. Bugzilla Report 32168.
  421. * XmlLogger could lose messages if <parallel> is used.
  422. Bugzilla Report 25734.
  423. * <scp> creates remoteToDir if it doesn't exist.
  424. Bugzilla Report 42781
  425. * CBZip2OutputStream threw an exception if it was closed prior to
  426. writing anything.
  427. Bugzilla Reports 32200, 45836
  428. * The IPlanetDeploymentTool didn't use the configured DTD locations.
  429. Bugzilla Report 31876.
  430. * The ant shell script printed a warning under Cygwin if JAVA_HOME
  431. was not set.
  432. Bugzilla Report 45245.
  433. * <filterset> sometimes incorrectly flagged infinite recursions of
  434. filter tokens
  435. Bugzilla Report 44226.
  436. * failures were treated as errors in forked JUnit tests when JUnit 4
  437. was used.
  438. Bugzilla Report 43892.
  439. * <jar> and <manifest> disallowed manifest attributes whose name
  440. contained the character '8'.
  441. Bugzilla Report 45675.
  442. * BigProjectLogger would set the project's basedir to the current
  443. working directory.
  444. Bugzilla Report 45607.
  445. * only <formatter>s that logged to a file were notified if forked VM
  446. crashed or a timeout occured in <junit>.
  447. Bugzilla Report 37312.
  448. * ant -v -version would print the version information twice.
  449. Bugzilla Report 45695.
  450. * when nested into builds that have been invoked by <ant> tasks
  451. <subant> might set the wrong basedir on the called projects.
  452. Bugzilla Report 30569.
  453. * If the message of the failed assertion of a forked JUnit test
  454. contained line feeds some excess output ended up in Ant's log.
  455. Bugzilla Report 45411.
  456. * <symlink action="delete"> failed to delete a link that pointed to
  457. a parent directory.
  458. Bugzilla Report 45743.
  459. * <symlink action="delete"> failed if ant lacked permission to rename
  460. the link's target.
  461. Bugzilla Report 41525.
  462. * when checking whether a jar is signed, <signjar> ignored the
  463. sigfile attribute.
  464. Bugzilla Report 44805.
  465. * When using JavaMail all <mail> tasks used the same mail host
  466. regardless of their configuration.
  467. Bugzilla Report 37970.
  468. * <signjar> and <issigned> didn't handle aliases with characters other
  469. than numbers, letters, hyphen or underscore properly.
  470. Bugzilla Report 45820.
  471. * <filterset> could miss multi-character begin tokens in some cases.
  472. Bugzilla Report 45094.
  473. * <depend> didn't close JARs that were part of the classpath.
  474. Bugzilla Report 45955.
  475. * in some cases <depend> would delete class files even if it didn't
  476. find the corresponding source files.
  477. Bugzilla Report 45916.
  478. * <javadoc> failed if the nested <bottom> or <head> contained line
  479. breaks.
  480. Bugzilla Report 43342.
  481. * encoding="auto" has been broken in <mail> since Ant 1.7.0 and only
  482. worked if JavaMail was available.
  483. Bugzilla Report 42389.
  484. * MailLogger could cause a NullPointerException.
  485. Bugzilla Report 44009.
  486. * <junit> didn't recognize failed assertions as failures if they
  487. caused subclasses of AssertionError to be thrown (like
  488. org.junit.ComparisonFailure that is thrown when assertEquals
  489. fails).
  490. Bugzilla Report 45028.
  491. * the Unix "ant" wrapper script failed to protect wildcards in
  492. command line arguments in some cases.
  493. Bugzilla Report 31601.
  494. * <cvstagdiff> crippled file names and could miss some entries if
  495. multiple modules have been specified.
  496. Bugzilla Report 35301.
  497. * Tasks with a "public void add(SomeType)" method failed to work as
  498. TaskContainers at the same time.
  499. Bugzilla Report 41647.
  500. * Tasks that implementes DynamicElemen or DynamicElementNS failed to
  501. work as TaskContainers at the same time.
  502. Bugzilla Report 41647.
  503. * combining SSL and authentication in <mail> and MailLogger failed in
  504. some setups.
  505. Bugzilla Report 46063.
  506. * if an error occurs while logging the buildFinished event, the
  507. original error is now logged to System.err.
  508. Bugzilla Report 25086.
  509. * <copy> failed with a NullPointerException when copying a resource
  510. without a name. It will now fail with a meaningful error message.
  511. Bugzilla Report 39960.
  512. * <xslt> now uses the configured classpath to load the factory (when
  513. using TraX) before falling back to Ant's own classpath.
  514. Bugzilla Report 46172.
  515. * <dependset> complained about files being modified in the future if
  516. they had been just very recently (within Ant's assumed granularity
  517. of the file system).
  518. Bugzilla Report 43665.
  519. * <sshexec> didn't store the ouput in outputproperty if the remote
  520. command failed.
  521. Bugzilla Report 46340.
  522. * DirectoryScanner's slow-scanning algorithm that is used when you
  523. ask for excluded or not-included files and/or directories could
  524. miss some files and directories in the presence of recursive
  525. exclude patterns.
  526. * <sort> resource collection kept only one of entries deemed equal by
  527. the chosen Comparator.
  528. Bugzilla Report 46527.
  529. * the ZipFile class used by <unzip> and others could leave the
  530. archive open (making it undeletable on Windows as long as the java
  531. VM was running) for files with an unexpected internal structure.
  532. Bugzilla Report 46559.
  533. * The zip package now supports the extra fields invented by InfoZIP
  534. in order to store Unicode file names and comments.
  535. * The zip package detects the encoding bit set by more modern
  536. archivers when they write UTF-8 filenames and optionally sets it
  537. when writing zips or jars.
  538. Bugzilla Report 45548
  539. * <sync> could run into a NullPointerException when faced with broken
  540. symbolic links.
  541. Bugzilla Report 46747.
  542. * The ant shell script should now support MSYS/MinGW as well.
  543. Bugzilla Report 46936.
  544. * <signjar> has a new force attribute that allows re-signing of jars
  545. that are already signed.
  546. Bugzilla Report 46891.
  547. * <sshexec> now again honors failonerror in the face of connection
  548. errors.
  549. Bugzilla Report 46829.
  550. * The <replacetokens> filter threw an exception if the stream to
  551. filter ended with a begin token.
  552. Bugzilla Report 47306.
  553. * <scriptmapper>, <scriptfilter> and <scriptcondition> didn't support
  554. the setbeans attribute.
  555. Bugzilla Report 47336.
  556. * <loadproperties>' encoding attribute didn't work.
  557. Bugzilla Report 47382.
  558. * Ant created tar archives could contain random bytes at the end
  559. which confused some untar implementations.
  560. Bugzilla Report 47421.
  561. * various places where unchecked PrintWriters could hide exceptions
  562. have been revisited to now check the error status or not use a
  563. PrintWriter at all.
  564. Bugzilla Report 43537.
  565. * filesetmanifest="mergewithoutmain" in <jar> didn't treat inline
  566. manifests as expected.
  567. Bugzilla Report 29731.
  568. * <record> didn't work properly with nested builds.
  569. Bugzilla Report 41368.
  570. * <jar> with filesetmanifest different from skip didn't work if the
  571. update attribute has been set to true.
  572. Bugzilla Report 30751.
  573. * The default stylesheets for <junitreport> failed to properly escape
  574. XML content in exception stack traces.
  575. Bugzilla Report 39492.
  576. * AntClassLoader didn't set the proper CodeSource for loaded classes.
  577. Bugzilla Report 20174.
  578. * AntClassLoader.getResourceAsStream would return streams to
  579. resources it didn't return with getResource and to classes it
  580. failed to load.
  581. Bugzilla Report 44103.
  582. * Logging exceptions without a message would cause a
  583. NullPointerException.
  584. Bugzilla Report 47623.
  585. * WeblogicDeploymentTool could fail on platforms with a file
  586. separator other than "/".
  587. Bugzilla Report 35649.
  588. * The update attribute of the modified selector was ignored.
  589. Bugzilla Report 32597.
  590. * <manifest> and <jar> can now merge Class-Path attributes from
  591. multiple sources and optionally flatten them into a single
  592. attribute.
  593. The default behaviour still is to keep multiple Class-Path
  594. attributes if they have been specified and to only include the
  595. attributes of the last merged manifest.
  596. Bugzilla Report 39655.
  597. * <delete> didn't work correctly with a <modified> selector because
  598. it was scanning the same filesets more than once.
  599. Bugzilla Report 43574.
  600. * when using custom filterreaders with the <filterreader classname="">
  601. syntax Ant could leak memory.
  602. The problem didn't occur when using <typedef> or <componentdef> to
  603. define the filterreader which is the recommended approach.
  604. Bugzilla Report 45439.
  605. * Ant didn't set the proper "magic" value for tar entries containing
  606. long file names in GNU longfile mode.
  607. Bugzilla Report 47653.
  608. * The tar task failed to recognize that the archive had to be
  609. (re-)created in some cases where the sources are filesystem based
  610. resources but not filesets.
  611. Bugzilla Report 48035.
  612. * <sshexec>'s outputproperty was prefixed by the executed command
  613. when the command attribute has been used, breaking backwards
  614. compatibility to Ant 1.7.0.
  615. Bugzilla Report 48040.
  616. * different task instances of the same <scriptdef>ed tasks could
  617. overwrite each others attributes/nested elements.
  618. Bugzilla Report 41602.
  619. * The Hashvalue algortihm implementation of the modified task could
  620. fail to read the file(s) completely.
  621. Bugzilla Report 48313.
  622. Other changes:
  623. --------------
  624. * The get task now also follows redirects from http to https
  625. Bugzilla Report 47433
  626. * A HostInfo task was added performing information on hosts, including info on
  627. the host ant is running on.
  628. Bugzilla Reports 45861 and 31164.
  629. * There is now a FileProvider interface for resources that act as a source
  630. of filenames. This should be used by tasks that require resources
  631. to provide filenames, rather than require that all resources
  632. are instances or subclasses of FileResource.
  633. Bugzilla Report 43348
  634. * There is now a URLProvider interface for resources that act as a
  635. source of URLs. This should be used by tasks that require resources
  636. to provide URLs, rather than require that all resources are
  637. instances or subclasses of URLResource.
  638. * Fixcrlf now gives better error messages on bad directory attributes.
  639. Bugzilla Report 43936
  640. * a new property ant.project.default-target holds the value of the
  641. current <project>'s default attribute.
  642. * a new property ant.project.invoked-targets holds a comma separated
  643. list of the targets that have been specified on the command line
  644. (the IDE, an <ant> task ...) when invoking the current project.
  645. * The <type> resource selector has had an "any" type added for better
  646. configurability.
  647. * Ant should detect the OS as both a Mac and a Unix system when
  648. running on OpenJDK.
  649. Bugzilla Report 44889.
  650. * new protected getConnection and getStatement methods allow
  651. subclasses of SQLExec more control - or access to the cached
  652. instances when overriding other methods like runStatements.
  653. Bugzilla Report 27178.
  654. * <sql> has a new failOnConnectionError attribute that can be used to
  655. keep a build going even if the task failed to connect to the
  656. database.
  657. Bugzilla Report 36712.
  658. * A new attribute strictDelimiterMatching can be used to ignore case
  659. or whitespace differences when <sql> searches for delimiters.
  660. This is useful if you execute a SQL script that has contains "GO"
  661. and "go" as delimiters.
  662. Bugzilla Report 26459.
  663. * A new showWarnings attribute of <sql> allows warnings to be logged.
  664. Bugzilla Report 41836.
  665. * A new treatWarningsAsErrors attribute of <sql> can be used to fail
  666. a build if a warning occurs.
  667. Bugzilla Report 41836.
  668. * Ant now supports scoped properties (see Local task).
  669. Bugzilla Report 23942.
  670. * <sql>'s CSV output can be controlled via the new attributes
  671. csvColumnSeparator and csvQuoteCharacter.
  672. Bugzilla Report 35627.
  673. * <ftp>'s logging has been improved.
  674. Bugzilla Reports 30932, 31743.
  675. * It is now possible to disable <ftp>'s remote verification.
  676. Bugzilla Report 35471.
  677. * <sshexec> now supports input in a way similar to <exec>
  678. Bugzilla Report 39197.
  679. * <scp> can now preserve the file modification time when downloading
  680. files.
  681. Bugzilla Report 33939.
  682. * the new task sshsession can run multiple tasks in the presence of
  683. an SSH session providing (local and remote) tunnels.
  684. Bugzilla Report 43083.
  685. * ZipOutputStream has been sped up for certain usage scenarios that
  686. are not used by Ant's family of zip tasks.
  687. Bugzilla Report 45396.
  688. * <echo> supports an "output" Resource attribute as an alternative to "file".
  689. * <sql> "output" attribute now supports any Resource in addition to a file.
  690. * <scp> no longer requires a passphrase when using key based
  691. authentication.
  692. Bugzilla Report 33718.
  693. * a new failOnEmptyArchive attribute on <unzip> and <untar> can now
  694. make the task fail the build if it tries to extract an empty
  695. archive.
  696. * <unzip> and <untar> have a new attribute stripAbsolutePathSpec.
  697. When set to true, Ant will remove any leading path separator from
  698. the archived entry's name before extracting it (making the name a
  699. relative file name).
  700. Bugzilla Report 28911.
  701. * <unzip> will now detect that it was asked to extract a file that is
  702. not an archive earlier if the file is big.
  703. Bugzilla Report 45463.
  704. * New file and resource selectors <readable/> and <writable/> have
  705. been added that select file which the current process can read or
  706. write.
  707. Bugzilla Report 45081.
  708. * The filename file selector has a new attribute regex that allows
  709. files to be selected by matching their names against a regular
  710. expression.
  711. Bugzilla Report 45284
  712. * The name resource selector has a new attribute regex that allows
  713. resources to be selected by matching their names against a regular
  714. expression.
  715. Bugzilla Report 45284
  716. * Enhanced performance of Project.fireMessageLoggedEvent and DirectoryScanner
  717. Bugzilla Reports 45651 and 45665
  718. * The package list location for offline links can now be specified as
  719. an URL.
  720. Bugzilla Report 28881
  721. * <echoxml> now supports XML namespaces.
  722. Bugzilla Report 36804.
  723. * A new listener for <junit> has been added that tries to invoke the
  724. tearDown method of a TestCase if that TestCase was run in a forked
  725. VM and the VM crashed or a timeout occured. See the <junit> task's
  726. manual page for details.
  727. Bugzilla Report 37241.
  728. * The Jar task now supports the addition of a jar index file in update mode.
  729. Previously the absence of the index was not enough to trigger the rebuild;
  730. some other update was necessary.
  731. Bugzilla report 45098.
  732. * <ant> has a new attribute "useNativeBasedir" that makes the child
  733. build use the same basedir it would have used if invoked from the
  734. command line. No matter what other attributes/properties have been
  735. set.
  736. Bugzilla Report 45711.
  737. * <patch> has a new optional failOnError attribute.
  738. Bugzilla Report 44772.
  739. * Antlib descriptors will now be parsed by the configured
  740. ProjectHelper if the implementation overrides the new
  741. canParseAntlibDescriptor and parseAntlibDescriptor methods. If the
  742. configured helper doesn't override the methods, a new instance of
  743. ProjectHelper2 will be used just like in Ant 1.7.1.
  744. Bugzilla Report 42208.
  745. * It is now possible to explicitly set the executable used by
  746. <signjar>.
  747. Bugzilla Report 39189.
  748. * <compositemapper>'s order of results is now predictable.
  749. Bugzilla Report 44873
  750. * a new <firstmatchmapper> has been added, which works similar to
  751. <compositemapper> but only returns the results of the first nested
  752. mapper that matches.
  753. Bugzilla Report 44873
  754. * <get> has a new maxtime attribute that terminates downloads that
  755. are taking too long.
  756. Bugzilla Report 45181.
  757. * <ftp> now supports selectors for remote directories as well.
  758. Bugzilla Report 44726.
  759. * In some cases Ant fails to rename files if the source or target
  760. file has just recently been closed on Windows. It will now try to
  761. delete the offending file once again after giving the Java VM time
  762. to really close the file.
  763. Bugzilla Report 45960.
  764. * two new properties can be used to set the MIME-Type and charset
  765. used by MailLogger.
  766. Bugzilla Report 27211.
  767. * a new attribute of <mail> allows the task to succeed if it can
  768. reach at least one given recipient.
  769. Bugzilla Report 36446.
  770. * two new properties allow MailLogger to send a fixed text instead of
  771. the log file.
  772. Bugzilla Report 38029.
  773. * <cvsversion> is supposed to support CVSNT now.
  774. Bugzilla Report 31409.
  775. * <cvs>' port attribute should now work for all clients that use the
  776. environment variable CVS_PSERVER_PORT instead of the "official"
  777. CVS_CLIENT_PORT.
  778. Bugzilla Report 30124.
  779. * <cvsversion> now works for local repositories as well.
  780. * <cvstagdiff> has an option to ignore removed files now.
  781. Bugzilla Report 26257.
  782. * <cvs> and friends now support modules with spaces in their names
  783. via nested <module> elements.
  784. * A new attribute "ignoreEmpty" controls how <concat> deals when
  785. there are no resources to concatenate. If it is set to false, the
  786. destination file will be created regardless, which reinstates the
  787. behavior of Ant 1.7.0.
  788. Bugzilla Report 46010.
  789. * If the new remote attribute is set to true, <cvschangelog> can now
  790. work against a remote repository without any working copy.
  791. Bugzilla Report 27419.
  792. * start and end tags can now be used instead of dates in
  793. <cvschangelog>.
  794. Bugzilla Report 27419.
  795. * MailLogger and <mail> can now optionally enable support for
  796. STARTTLS.
  797. Bugzilla Report 46063.
  798. * <import> has new attributes "as" and "prefixSeparator" that can be
  799. used to control the prefix prepended to the imported targets'
  800. names.
  801. * a new task <include> provides an alternative to <import> that
  802. should be preferred when you don't want to override any targets.
  803. * delete has a new attribute removeNotFollowedSymlink. If set to
  804. true, symbolic links not followed (because followSymlinks was false
  805. or the number of symlinks was too big) will be removed.
  806. Bugzilla Report 36658.
  807. * the os and osfamily attributes of <chown>, <chgrp>, <chmod> and
  808. <attrib> can now be used to run the commands on operating systems
  809. other than their "native" environment, i.e. non-Unix or non-Windows
  810. operating systems respectively.
  811. Bugzilla Report 7624.
  812. * a new resource collection <mappedresources> generalizes the prefix
  813. and fullpath attributes of <zipfileset> to arbitrary mappers that
  814. can be applied to arbitrary resource collections.
  815. Bugzilla Report 4240.
  816. * <tarfileset> and <zipfileset> have a new attribute
  817. errorOnMissingArchive that allows "optional" filesets that don't
  818. break the build if the archive doesn't exist.
  819. Bugzilla Report 46091.
  820. * <javadoc> has new attributes that correspond to the
  821. -docfilessubdirs and -excludedocfilessubdir command line arguments.
  822. Bugzilla Report 34455.
  823. * <xslt> now fails early if a specified stylesheet doesn't exist.
  824. Bugzilla Report 34525.
  825. * <xslt> now has an option to supress transformer warnings. This
  826. option only has an effect for processors that support this feature;
  827. the "trax" processor included with Ant does support it.
  828. Bugzilla Report 18897.
  829. * <xslt> has two new attributes failOnError and
  830. failOnTransformationError that can be used to not make the build
  831. process proceed if an error occurs.
  832. Bugzilla Report 36260.
  833. * <xslt> has a new attribute failOnNoResources that can be used to
  834. make the build fail/continue if the collection of resources to
  835. transform is empty.
  836. Bugzilla Report 46274.
  837. * It is now possible to define system properties that should be set
  838. during xslt's transformation. This can be used to enable XInclude
  839. processing in Xerces, for example.
  840. Bugzilla Report 36653.
  841. * a new resource collection <archives> can be used to specify
  842. collections of ZIP and TAR archives as sources. It extracts them on
  843. the fly. This is a generalization of the <zipgroupfileset> found
  844. as nested element of <zip> and friends.
  845. Bugzilla Report 46257.
  846. * <dependset> has a new verbose attribute that makes the task list
  847. all deleted targets and give a hint as to why it deleted them.
  848. Bugzilla Report 13681.
  849. * <replaceregexp> now supports arbitrary filesystem based resource
  850. collections.
  851. Bugzilla Report 46341.
  852. * <replace> now supports arbitrary filesystem based resource
  853. collections.
  854. Bugzilla Report 24062.
  855. * token and value of <replace>'s nested <replacefilter> can now also
  856. be specified as nested elements to allow multiline content more
  857. easily.
  858. Bugzilla Report 39568.
  859. * <replace> and <replaceregexp> can now optionally preserve the file
  860. timestamp even if the file is modified.
  861. Bugzilla Report 39002.
  862. * The <replace> child-elements <replacetoken> and <replacevalue> have
  863. a new attribute that controls whether properties in nested text get
  864. expanded.
  865. Bugzilla Report 11585.
  866. * <replace> has a new attribute failOnNoReplacements that makes the
  867. build fail if the task didn't do anything.
  868. Bugzilla Report 21064.
  869. * <sync>'s <preserveInTarget> has a new attribute that controls
  870. whether empty directories should be kept.
  871. Bugzilla Report 43159.
  872. * ant -diagnostics now checks that it can read as much from the
  873. temporary directory as it has written. This may help detecting a
  874. full filesystem.
  875. Bugzilla Report 32676.
  876. * <pathconvert> has a new preserveduplicates attribute--historically
  877. these were eliminated in the interest of behaving in the manner
  878. of a "path."
  879. * <javac>'s source and target attributes are no longer ignored when
  880. using gcj.
  881. Bugzilla Issue 46617.
  882. * ant -diagnostics now outputs information about the default XSLT
  883. processor.
  884. Bugzilla Issue 46612.
  885. * the ZIP library will now ignore ZIP extra fields that don't specify
  886. a size.
  887. Bugzilla Report 42940.
  888. * CBZip2OutputStream now has a finish method separate from close.
  889. Bugzilla Report 42713.
  890. * the <zip> and <unzip> family of tasks has new options to deal with
  891. file name and comment encoding. Please see the zip tasks'
  892. documentation for details.
  893. * <input ...><handler type="secure" /></input> now uses previously
  894. undocumented SecureInputHandler shipped with Ant 1.7.1.
  895. * Command line arguments for <exec> and similar tasks can now have
  896. optional prefix and suffix attributes.
  897. Bugzilla Report 47365
  898. * <apply>'s srcfile and targetfile child elements can now have
  899. optional prefix and suffix attributes.
  900. Bugzilla Report 45625
  901. * <jar> has a new attribute to enable indexing of META-INF
  902. directories which is disabled for backwards compatibility reasons.
  903. Bugzilla Report 47457
  904. * <apt>'s executable attribute can be used to specify a different
  905. executable.
  906. Bugzilla Report 46230.
  907. * <rmic>'s new executable attribute can be used to specify a
  908. different executable.
  909. Bugzilla Report 42132.
  910. * <javac>, <rmic>, <javah> and <native2ascii> now provide a nested
  911. element to specify a classpath that will be used when loading the
  912. task's (compiler) adapter class.
  913. Bugzilla Report 11143.
  914. * <javac>, <rmic>, <javah> and <native2ascii> now provide a nested
  915. element to specify the task's (compiler) adapter as an instance of
  916. a class that has been defined via typedef/componentdef. This
  917. allows more control over the classpath and allows adapters to be
  918. defined in Antlibs easily.
  919. * A new subclass org.apache.tools.ant.loader.AntClassLoader5 of
  920. AntClassLoader has been added which overrides getResources
  921. which became non-final in ClassLoader with Java5+ so
  922. this method now behaves as expected.
  923. The new subclass will be used by Ant internally if it is available
  924. and Ant is running on Java5 or more recent.
  925. Bugzilla Report 46752.
  926. * a new attributes can chose a different request method than GET for
  927. the http condition.
  928. Bugzilla Report 30244
  929. * <splash> now supports a configurable display text and a regular
  930. expression based way to determine progress based on logged messages.
  931. Bugzilla Report 39957.
  932. * the number of retries on error in <get> is now configurable. <get>
  933. can be told to not download files that already exist locally.
  934. Bugzilla Report 40058.
  935. * Ant now builds against commons-net 2.0 as well.
  936. Bugzilla Report 47669.
  937. * A new nested element connectionProperty of <sql> allows setting of
  938. arbitrary JDBC connection properties.
  939. Bugzilla Report 33452.
  940. * A new islastmodified condition can check the last modified date of
  941. resources.
  942. * <rmic> has a new destDir attribute that allows generated files to
  943. be written to a different location than the original classes.
  944. Bugzilla Report 20699.
  945. * <rmic> has a new listfiles attribute similar to the existing one of
  946. <javac>.
  947. Bugzilla Report 24359.
  948. * It is now possible to suppress the "FAILED" lines sent to Ant's
  949. logging system via <junit>'s new logFailedTests attribute.
  950. Bugzilla Report 35073.
  951. * <propertyfile> now can delete entries.
  952. * The <resources> resource collection can now optionally cache its
  953. contents.
  954. * A new <resourceexists> condition can check whether resources exists.
  955. * <sql> has two new attributes errorproperty and warningproperty that
  956. can be set if an error/warning occurs.
  957. Bugzilla Report 38807.
  958. * <sql> has a new attribute rowcountproperty that can be used to set
  959. a property to the number of rows affected by a task execution.
  960. Bugzilla Report 40923.
  961. * when Ant copies files without filtering, it will now use NIO
  962. channels.
  963. Bugzilla Report 30094.
  964. * <get> has a new attribute that can be used to disable caching on
  965. HTTP connections at the HttpUrlConnection level.
  966. Bugzilla Report 41891.
  967. * <tar> and <zip> (and tasks derived from <zip>) will now create the
  968. parent directory of the destination archive if it doesn't exist.
  969. Bugzilla Report 45377.
  970. * A new filterreader <sortfilter> that sorts input lines has been
  971. added.
  972. Bugzilla Report 40504.
  973. * A new token filter <uniqfilter> that suppresses tokens that match
  974. their ancestor token has been added.
  975. * <rootfileset>s nested into <classfileset>s can now use a dir
  976. attribute different from the <classfileset>.
  977. Bugzilla Report 37763.
  978. * <path> can now optionally cache its contents.
  979. * <property> can now specify values as nested text.
  980. Bugzilla Report 32917.
  981. * a new parentFirst attribute on <javaresource> allows resources to
  982. be loaded from the specified classpath rather than the system
  983. classloader.
  984. Bugzilla Report 41369.
  985. * <property location="from" basedir="to" relative="true"/> can now
  986. calculate relative paths.
  987. * The <name> selector supports a new handleDirSep attribute that
  988. makes it ignore differences between / and \ separators.
  989. Bugzilla Report 47858.
  990. * <get> now supports resource collections (as long as the resources
  991. contained provide URLs) and can get multiple resources in a single
  992. task.
  993. * <import> can now import non-File resources if they provide an URL
  994. - as the <url> and <javaresource> resources do.
  995. Bugzilla Report 29251
  996. * <import> can now import multiple resources specified as resource
  997. collections.
  998. Bugzilla Report 22269.
  999. * a new <resourcelist> type is similar to <filelist> but can read the
  1000. list of resources from non-file resources and may return resources
  1001. that are not files.
  1002. * a new filterreader appendtolines complements prefixlines.
  1003. * a new top level element extension-point allows build files to be
  1004. extended with custom targets more easily.
  1005. Changes from Ant 1.7.0 TO Ant 1.7.1
  1006. =============================================
  1007. Changes that could break older environments:
  1008. -------------------------------------------
  1009. * String resources only have properties single expanded. If you relied on
  1010. <string> resources being expanded more than once, it no longer happens.
  1011. Bugzilla report 42277.
  1012. * A String resource's encoding attribute was only taken into account when
  1013. set from the resource's OutputStream; the InputStream provided the String's
  1014. binary content according to the platform's default encoding. Behavior has
  1015. been modified to encode outgoing (InputStream) content as well as encoding
  1016. incoming (OutputStream) content.
  1017. * <java> with fork now returns gives -1 instead of 0 as result when failonerror
  1018. is false and some exception (including timeout) occurs. Br 42377.
  1019. * ant-type attribute has been marked as deprecated and a warning has been
  1020. issued if it is encountered in the build file.
  1021. Fixed bugs:
  1022. -----------
  1023. * The default logger was failing to print complete stack traces for exceptions
  1024. other than BuildException, thus omitting often important diagnostic
  1025. information. Bugzilla 43398.
  1026. * Error in FTP task
  1027. Bugzilla report 41724
  1028. * Regression: Locator fails with URI encoding problem when spaces in path
  1029. Bugzilla report 42222
  1030. * Regression in Locator: running Ant off a network share does not work:
  1031. message "URI has authority component" appears
  1032. Bugzilla report 42275
  1033. * Improvements in AntClassLoader Speed.
  1034. Bugzilla report 42259
  1035. * Error in handling of some permissions, most notably the AllPermission on
  1036. jdk 1.5
  1037. Bugzilla report 41776
  1038. * Replace task summary output incorrect.
  1039. Bugzilla report 41544
  1040. * Dependset crashes ant when timestamp on files change during Dependset
  1041. execution.
  1042. Bugzilla report 41284
  1043. * Bug in org.apache.tools.ant.types.resources.comparators.Date
  1044. Bugzilla report 41411
  1045. * <junit> in Ant 1.7.0 could throw NPE if no <classpath> was defined.
  1046. Bugzilla report 41422.
  1047. * In Ant 1.7.0, <fileset> in <javadoc> does not by default include only
  1048. **/*.java as the documentation claims and earlier revisions did.
  1049. Bugzilla report 41264.
  1050. * SPI support in jar was broken.
  1051. Bugzilla report 41201.
  1052. * jsch-0.1.30 causes SCP task to hang
  1053. Bugzilla report 41090.
  1054. * Target from imported file listed twice in projecthelp.
  1055. Bugzilla report 41226.
  1056. * <sql> task double-expands properties if expandproperties is true,
  1057. and expands properties if expandproperties is false.
  1058. Bugzilla report 41204.
  1059. * Rolling back Bugzilla 32927 (set a default description for a javadoc tag
  1060. if not set) as it caused a BC problem.
  1061. Bugzilla report 41268.
  1062. * <apt> forks properly and so memory settings are picked up.
  1063. Bug report 41280.
  1064. * Regression: NPE was thrown when using <pathconvert> against a
  1065. (third-party instantiated) fileset with null Project reference.
  1066. * Strip out all -J arguments to non forking rmic adapters, specifically
  1067. the Sun and Weblogic compilers.
  1068. Bug report 41349
  1069. * Synchonization issues in PropertyHelper. Bugzilla 41353.
  1070. * <concat binary="true" append="true"> did not append. Bugzilla 41399.
  1071. * -autoproxy turns Java1.5+ automatic proxy support on. Bugzilla 41904
  1072. * Handle null result of system getProperty(). Bugzilla 42334.
  1073. * Regression: concat fixlastline="true" should not have applied to
  1074. nested text, but did in Ant 1.7.0. Bugzilla 42369.
  1075. * Regression: ant.version was not passed down in <ant>, <subant>.
  1076. This worked in Ant 1.6.5, but not in 1.7.0.
  1077. ant.core.lib (added in 1.7.0) was also not being propagated.
  1078. Bugzilla bug 42263
  1079. * Regression: bzip2 task created corrupted output files for some inputs.
  1080. Bugzilla bug 41596.
  1081. * Regression: <available> with <filepath> did not work.
  1082. Bugzilla 42735.
  1083. * ant script, cd may output to stdout.
  1084. Bugzilla 42739.
  1085. * Modified selector doesn't update the cache if only one file has changed.
  1086. Bugzilla 42802.
  1087. * Regression: Path subclasses that overrode list() stopped working in
  1088. resourceCollection contexts in Ant 1.7.0. Bugzilla 42967.
  1089. * <property> supports loading from xml based property definition.
  1090. Bugzilla 42946
  1091. * <junit> supports collecting and rerunning failed test cases
  1092. (textXXX methods). Bugzilla 42984.
  1093. * War task failed with "No WEB-INF/web.xml file was added" when called
  1094. a second time. Bugzilla 43121.
  1095. * FilterMapper could throw an NPE.
  1096. Bugzilla 43292.
  1097. * Regession nested macrodefs with elements could cause StackOverFlow.
  1098. Bugzilla 43324.
  1099. * Some changes to <junit> broke third party tasks that extend it (like
  1100. Apache Cactus' Ant task). The changes have been modified so that
  1101. subclases should now work again - without any changes to the
  1102. subclass.
  1103. Other changes:
  1104. --------------
  1105. * Various small optimizations speed up common tasks such as <javac> on large
  1106. filesets, reducing both I/O and CPU usage.
  1107. * Profiling logger has been added with basic profiling capabilities.
  1108. * <script> now has basic support for JavaFX scripts
  1109. * SSH task can now take a command parameter containing the commands to execute.
  1110. This allows you to connect to a server and execute a number of commands
  1111. without constantly reconnecting for each command.
  1112. * Upgraded XML API to XML commons version 1.3.04.
  1113. * Upgraded to Xerces 2.9.0
  1114. * <script> can now work with bsf.jar and js.jar in its <classpath>.
  1115. * add errorProperty and updatedProperty to <javac>
  1116. Bugzilla 35637 and 28941.
  1117. * add classpathref attribute to <whichresource>
  1118. Bugzilla 41158.
  1119. * reduce logging noise of <apply skipemptyfilesets="true">
  1120. Bugzilla 29154
  1121. * Show Previous Revision in the tagdiff.xsl stylesheet
  1122. Bugzilla 29143
  1123. * Allow <mapper refid> to refer directly to a FileNameMapper instance.
  1124. * If you try and use a type in a namespace (or an antlib), and the type is not
  1125. recognized but there are other definitions in that namespace, Ant lists what
  1126. the known definitions are. This helps you find spelling errors.
  1127. * Add a <last> resource collection, corresponding to <first>.
  1128. * Add new <truncate> task.
  1129. * <junitreport> xsl stylesheets allow setting the title used in <title> and <h1> tags by
  1130. using <report><param> element. Bugzilla 41742.
  1131. * Add IgnoreDependenciesExecutor for weird cases when the user wants to run
  1132. only the targets explicitly specified.
  1133. * Patternset allows nested inverted patternsets using <invert>.
  1134. * <manifest> checks for validity of attribute names.
  1135. * JUnitVersionHelper.getTestCaseClassName is now public. Bugzilla 42231
  1136. * <string> resource supports nested text. Bugzilla bug 42276
  1137. * <scriptdef> now sources scripts from nested resources/resource collections. This lets you
  1138. define scripts in JARs, remote URLs, or any other supported resource. Bugzilla report 41597.
  1139. * <concat> is now usable as a single-element ResourceCollection.
  1140. * It is now possible to provide the value of a <striplinecomments> filter's
  1141. <comment> nested element as nested text instead of using the 'value'
  1142. attribute.
  1143. * A new logger, BigProjectLogger, lists the project name with every target
  1144. * Default text added to macrodef. Bugzilla report 42301.
  1145. * "rawblobs" attribute added to SQL task.
  1146. * Add new retry task container.
  1147. * <jar> has a new strict attribute that checks if the jar complies with
  1148. the jar packaging version specification.
  1149. * <javac> has a new attribute - includeDestClasses.
  1150. Bugzilla 40776.
  1151. * <fileset> has a new attribute - errorOnMissingDir.
  1152. Bugzilla 11270.
  1153. * <javac> handles package-info.java files, there were repeatedly compiled.
  1154. Bugzilla 43114.
  1155. * SecureInputHandler added to use Java 6 System.console().readPassword()
  1156. when available.
  1157. Changes from Ant 1.6.5 to Ant 1.7.0
  1158. ===================================
  1159. Changes that could break older environments:
  1160. -------------------------------------------
  1161. * Initial support for JDK 6 (JSR 223) scripting.
  1162. <*script*> tasks will now use javax.scripting if BSF is
  1163. not available, or if explicitly requested by using
  1164. a "manager" attribute.
  1165. * Removed launcher classes from nodeps jar.
  1166. * <classconstants> filter reader uses ISO-8859-1 encoding to read
  1167. the java class file. Bugzilla report 33604.
  1168. * Defer reference process. Bugzilla 36955, 34458, 37688.
  1169. This may break build files in which a reference was set in a target which was
  1170. never executed. Historically, Ant would set the reference early on, during parse
  1171. time, so the datatype would be defined. Now it requires the reference to have
  1172. been in a bit of the build file which was actually executed. If you get
  1173. an error about an undefined reference, locate the reference and move it somewhere
  1174. where it is used, or fix the depends attribute of the target in question to
  1175. depend on the target which defines the reference/datatype.
  1176. As a result of testing on real live build scripts, a fall-back mechanism
  1177. was put it place to allow references that are out-of-band to be resolved. If
  1178. this happens a big warning message is logged. This fall-back mechanism will
  1179. be removed in Ant 1.8.0.
  1180. * <script> and <scriptdef> now set the current thread context.
  1181. * Unrestrict the dbvendor names in the websphere element of the ejbjar task.
  1182. Bugzilla Report 40475.
  1183. * <env> nested element in <java>, <exec> and others is now case-insensitive
  1184. for windows OS. Bugzilla Report 28874.
  1185. * Removed support for xalan1 completely. Users of Xalan1 for Ant builds will
  1186. have to stay at ant 1.6.5 or upgrade to xalan2.
  1187. * Use org.apache.log4j.Logger instead of org.apache.log4j.Category.
  1188. Category has been deprecated for ~2 years and has been removed from
  1189. the log4j code. Logger was introduced in log4j 1.2 so users of
  1190. log4j 1.1 and log4j 1.0 need to upgrade to a newer version of log4j.
  1191. Bugzilla Report 31951.
  1192. * build.sysclasspath now also affects the bootclasspath handling of
  1193. spawned Java VMs. If you set build.sysclasspath to anything other
  1194. than "ignore" (or leave it unset, since "ignore" is the default when
  1195. it comes to bootclasspath handling), then the bootclasspath of the
  1196. VM running Ant will be added to the bootclasspath you've specified.
  1197. * The <java fork="false"> now as per default installs a security manager
  1198. using the default permissions. This is now independent of the
  1199. failonerror attribute. Bugzilla report 33361.
  1200. * <signjar> now notices when the jar and signedjar are equal, and switches
  1201. to the same dependency logic as when signedjar is omitted. This may break
  1202. something that depended upon signing in this situation. However, since
  1203. invoking the JDK jarsigner program with -signedjar set to the source jar
  1204. actually crashes the JVM on our (Java1.5) systems, we don't think any
  1205. build files which actually worked will be affected by the change.
  1206. * <signjar> used to ignore a nested fileset when a jar was also provided as an
  1207. attribute, printing a warning message; now it signs files in the fileset.
  1208. * An improved method of handling timestamp granularity differences between
  1209. client and server was added to the <ftp> task. FTP servers typically
  1210. have HH:mm timestamps whereas local filesystems have HH:mm:ss timestamps.
  1211. Previously, this required tweaking with the timediffmillis attribute
  1212. which also was used to handle timezone differences. Now, there is a new
  1213. timestampgranularity attribute. The default value for get operations is 0
  1214. since the user has the more powerful preservelastmodified attribute to work
  1215. with. Since this is not available on put operations the default value
  1216. adds a minute to the server timestamp in order to account for this,
  1217. Scripts which previously used timediffmillis to do this compensation may
  1218. need to be rewritten. timediffmillis has now been deprecated.
  1219. * Support for the XSL:P XML parser has been removed.
  1220. Bugzilla Report 23455.
  1221. * Visual Age for Java optional tasks removed as the required library is no
  1222. longer available.
  1223. * Testlet (test) optional task removed as the required library is no
  1224. longer available.
  1225. * IContract optional task removed as the required library is no
  1226. longer available.
  1227. * Metamata (maudit, mmetrics, and mparse tasks) removed as the required
  1228. library is no longer available.
  1229. * Sitraka (jpcoverage, jpcovmerge, jpcovreport) tasks suppressed as the
  1230. required library is no longer available.
  1231. * <fixcrlf> used \r (Mac) line endings on OS X, whose proper line separator
  1232. is \n (Unix). Bugzilla report 39585.
  1233. * <scp> now optionally supports the sftp protocol, you may need a
  1234. newer jsch.jar. Bugzilla Report 39373.
  1235. * Ant launcher program prints errors to stderr, and exits with a 2 exit code
  1236. value if, for any reason, it cannot actually start Ant proper. This will only
  1237. affect programs/scripts that called the launcher and which did not want to
  1238. receive an error if Ant itself would not start
  1239. * All .NET tasks are now deprecated in favor of the new .NET Antlib:
  1240. http://ant.apache.org/antlibs/dotnet/index.html
  1241. Fixed bugs:
  1242. -----------
  1243. * Directory deletion did not work properly.
  1244. Bugzilla 40972.
  1245. * docletpath attribute of javadoc was ignored.
  1246. Bugzilla 40900.
  1247. * Fixed incorrect recursion in DOMUtil.listChildNodes().
  1248. Bugzilla 40918.
  1249. * CompressedResource.compareTo() did not
  1250. take comparison with another CompressedResource into account.
  1251. Bugzilla 40949.
  1252. * Avoid possible NPE in Jar.java.
  1253. Bugzilla 40847.
  1254. * regression in attribute prefix (+ others) for refid in zipfileset and tarfileset.
  1255. Bugzilla 41004, 30498.
  1256. * dependset failed if the basedir of a target fileset did not exist.
  1257. Bugzilla 40916.
  1258. * Recursive filtering encountered NullPointerExceptions under certain
  1259. circumstances. Bugzilla 41086.
  1260. * XmlProperty overrides previously set property value when handling duplicate
  1261. elements. Bugzilla 41080.
  1262. * Having many tasks causes OOM. Bugzilla 41049.
  1263. * Regression: <path> was evaluating nested content only once, so that it could
  1264. not e.g. pick up files that didn't exist the first time through.
  1265. Bugzilla 41151.
  1266. * OOM caused by IH holding on to classes and thus their classloaders.
  1267. Bugzilla 28283 and 33061.
  1268. * <delete> doesnt delete when defaultexcludes="false" and no includes is set
  1269. fixed. Bugzilla 40313.
  1270. * Behavior change of DirectoryScanner/AbstractFileset when conditional include
  1271. patterns are used. Bugzilla 40722.
  1272. * <javac> fails with NPE when compiling with eclipse ecj 3.1.x.
  1273. Bugzilla 40839.
  1274. * JUnitTestRunner had a NPE when unable to create parser, the exception
  1275. containing the error did not get reported. Bugzilla 36733.
  1276. * <checksum> with file and todir option failed. Bugzilla report 37386.
  1277. * <path location="loc"> was broken (Regression from beta1).
  1278. Bugzilla report 40547.
  1279. * Nested fileset in <cab> did not work. Bugzilla report 39439.
  1280. * The ant wrapper script should now correctly locate the java
  1281. executable in more recent IBM JDKs for AIX as well.
  1282. * URLResource did not close jar files, and also did not disconnect HTTPConnection (s).
  1283. * Error calling junitreport. Bugzilla 40595.
  1284. * <junittask/> created junitvmwatcher*.properties files but did not close and delete them.
  1285. * <xmlproperty> did not create properties for empty leaf elements.
  1286. Bugzilla report 26286.
  1287. * UnknownElement.maybeConfigure always configured.
  1288. Bugzilla report 40641.
  1289. * No check for refid when prefix attribute is set in zipfileset.
  1290. Bugzilla report 30498.
  1291. * Fix for junit4 issue introduced since beta2.
  1292. Bugzilla report 40682.
  1293. * Error in duplicate project name with <import> and <antcall>.
  1294. Bugzilla report 39920.
  1295. * junit4 did not work with fork=no and junit4 in $ANT_HOME/lib.
  1296. Bugzilla report 40697.
  1297. * PathConvert on Windows should process forward and back slashes equivalently.
  1298. Bugzilla report 32884.
  1299. * ant.bat now looks in %USERPROFILE% and %HOMEDRIVE%%HOMEPATH% in addition to
  1300. %HOME% for pre/post batch files. Bugzilla report 39298.
  1301. * The inheritance hierarchy of the legacy <path> type was changed; code built
  1302. against Ant 1.7 would therefore no longer execute on older versions of Ant.
  1303. Since <path> is historically heavily used this was undesirable, and since it
  1304. is also avoidable, the change to <path>'s taxonomy was reverted.
  1305. * <zip filesonly="true"> included empty directories. Bugzilla report 40258.
  1306. * Invalid hash code of Target causes XmlLogger to fail.
  1307. Bugzilla report 40207.
  1308. * Macro element did not include top level Text. Bugzilla report 36803.
  1309. * AntClassLoader did not isolate resources when isolate was set. Bugzilla report 38747.
  1310. * Diagnostics broken when using java 1.4. Bugzilla report 40395.
  1311. * Exception reporting in <copy> was broken. Bugzilla report 40300.
  1312. * Handling of corrupt tar files, TarInputStream.read() never returns EOF.
  1313. Bugzilla report 39924.
  1314. * Some bugs in ReaderInputStream. Bugzilla report 39635.
  1315. * <antlr> did not recognise whether the target is up-to-date for html option.
  1316. Bugzilla report 38451.
  1317. * Documented minimal version of jsch now 0.1.29.
  1318. Bugzilla report 40333.
  1319. * <available> searched parent directories for files.
  1320. Bugzilla report 37148.
  1321. * The build could be halted if a file path contained more ".." components than
  1322. the actual depth of the preceding path. Now such paths are left
  1323. alone (meaning they will likely be treated as nonexistent
  1324. files). Bugzilla Report 40281.
  1325. * Converting a <dirset> to a string was broken. Bugzilla Report 39683.
  1326. * Manifests have improved line length handling, taking care of encoding.
  1327. Bug reports 37548 / 34425.
  1328. * <manifest> now closes the inputstream explicitly. Bug report 39628.
  1329. * <rpm> now also correctly searches the first element of the path.
  1330. Bug report 39345.
  1331. * ant.bat now handles classpath set to "". Bug report 38914.
  1332. * <junit> now supports JUnit 4. Bugzilla Report 38811.
  1333. * <junit> can now work with junit.jar in its <classpath>. Bugzilla
  1334. Report 38799.
  1335. * Some potential NullPointerExceptions, Bugzilla Reports 37765 and 38056.
  1336. * Problem when adding multiple filter files, Bugzilla Report 37341.
  1337. * Problem referencing jars specified by Class-Path attribute in manifest
  1338. of a ant task jar file, when this ant task jar file is located in
  1339. a directory with space, Bugzilla Report 37085.
  1340. * Backward incompatible change in ZipFileSet, Bugzilla Report 35824.
  1341. * Wrong replacement of file separator chars prevens junitbatchtest
  1342. from running correctly on files from a zipfileset. Bugzilla Report 35499.
  1343. * Calling close twice on ReaderInputStream gave a nullpointer exception.
  1344. Bugzilla Report 35544.
  1345. * Memory leak from IntrospectionHelper.getHelper(Class) in embedded
  1346. environments. Bugzilla Report 30162.
  1347. * Translate task does not remove tokens when a key is not found.
  1348. It logs a verbose message. Bugzilla Report 13936.
  1349. * Incorrect task name with invalid "javac" task after a "presetdef".
  1350. Bugzilla reports 31389 and 29499.
  1351. * <manifest> was not printing warnings about invalid manifest elements.
  1352. Bugzilla report 32190.
  1353. * <replace> got out of memory on large files (part of report 32566).
  1354. <replace> can now handle files as long as there is enough disk space
  1355. available.
  1356. * Commandline.describeCommand() methods would attempt to describe
  1357. arguments even when none, other than the executable name, were present.
  1358. * Create signjar's helper ExecTask instance directly rather than by
  1359. typedef discovery mechanisms. Bugzilla report 33433.
  1360. * FileUtils.resolveFile() promised to return absolute files but
  1361. did not always do so.
  1362. * <ftp> failed to retrieve a file when the path towards the file contained
  1363. an element starting with . Bugzilla report 33770.
  1364. * "<rmic> always compiles on Java1.5" bugzilla report=33862. Fixed default
  1365. stub version to always be "compat", even on Java1.5+.
  1366. * The .NET compilation tasks failed if filenames given as references
  1367. contained spaces. Bugzilla Report 27170.
  1368. * SQL task would try access result sets of statements that didn't
  1369. return any, causing problems with Informix IDS 9.2 and IBM DB2 8.1
  1370. FixPak 6 (or later). Bugzilla Reports 27162 and 29954.
  1371. * Task.init() was called twice for most tasks. Bugzilla Report 34411.
  1372. * JavaTest testcases sometimes fail on windows. Bugzilla Report 34502.
  1373. * Targets with identical name work in imported project. Bugzilla Report 34566.
  1374. * DemuxOutputStream now uses a WeakHashMap to store the thread-stream mapping,
  1375. to avoid holding on to thread references after they terminate.
  1376. * <xmlvalidate> and <schemavalidate> create a new parser for every file in a
  1377. fileset, and so validate multiple files properly. Bugzilla Report 32791.
  1378. * <tar> / <untar> now accepts files upto 8GB, <tar> gives an error if larger
  1379. files are to be included. This is the POSIX size limit.
  1380. * <junitreport> removed line-breaks from stack-traces. Bugzilla
  1381. Report 34963.
  1382. * Off-by-one error in environment setup for execution under OpenVMS fixed.
  1383. * Bugzilla report 36171: -noclasspath crashes ant if no system
  1384. classpath is set.
  1385. * <pvcs> used wrong switch for retrieving revisions by label.
  1386. Bugzilla Report 36359.
  1387. * <sshexec> closed System.out, disabling output on second and subsequent
  1388. invocations. Bugzilla report 36302.
  1389. * <cvschangelog> was crashing with CVS versions >= 1.12.x due to change in
  1390. the date format. Bugzilla report 30962.
  1391. * The same IntrospectionHelper instance was continuously added as a listener
  1392. to project. Bugzilla report 37184.
  1393. * FileUtils.toURI() was not encoding non-ASCII characters to ASCII,
  1394. causing impossibility to process XML entities referenced by XML
  1395. documents in non ASCII paths. Bugzilla report 37348.
  1396. * > 1 ssh invocations to a given host would fail. Bugzilla report 36207.
  1397. * EmailTask was eating SMTP error messages. Bugzilla report 37547.
  1398. * PropertySet API setMapper(...) didn't properly set up the Mapper.
  1399. Bugzilla report 37760.
  1400. * Proper return code for ant.bat. Bugzilla report 13655.
  1401. * Project not set on ChainReaderHelpers used by the Redirector.
  1402. Bugzilla report 37958.
  1403. * Copy task would fail on locked (or otherwise uncopyable) files even if
  1404. failonerror set to false. Bugzilla report 38175.
  1405. * <junit> task did not print all the Test names when using forkmode='once'.
  1406. Bugzilla report 37426.
  1407. * <available> could leak resources, Bugzilla Report 38260.
  1408. * Redirector called Thread.sleep in a synchronized block. Bugzilla
  1409. report 37767.
  1410. * CCUnlock's objselect attribute could exhibit unpredictable behavior;
  1411. standardized improperly included objselect and objsel property accessors to
  1412. delegate to the inherited objSelect property accessor. Bugzilla report 37766.
  1413. * <unzip> and <untar> now correctly merge multiple nested patternsets.
  1414. Bugzilla Report 38973.
  1415. * On case-insensitive filesystems, a <move> to change filename case
  1416. erroneously deleted the "destination" file before attempting to rename
  1417. the source file. Bugzilla 37701.
  1418. * <scp> can now handle uris with @s other than the final one denoting the
  1419. domain. Bugzilla 38082.
  1420. * If the class invoked by the <java> task threw a ClassNotFoundException,
  1421. this was misinterpreted as the specified class itself not being found.
  1422. * <echoproperties> setPrefix javadoc claimed null or empty prefix would be
  1423. ignored; instead an error was thrown. Bugzilla report 39954.
  1424. * <get> would fetch files that were up to date, because it used > in a
  1425. remote/local timestamp comparison, not >=. Bugzilla 35607.
  1426. * <xslt> passes the current file (name + directory) to the
  1427. stylesheet/transformation. xsl-parameter name is configurable.
  1428. Bugzilla report 21042.
  1429. * The <zip> API allowed creation of directories in file-only archives; a
  1430. habitual offender was the subclassed <jar>, which included META-INF/ in
  1431. the destination file regardless of whether filesonly was set to true.
  1432. * <rmic> has a new adapter, xnew, to use the -XNew back end on java1.5+.
  1433. By forking rmic, this works on java1.6+. Bugzilla report 38732.
  1434. * Copy of UnknownElement in macroinstance was not recursive.
  1435. Bugzilla report 40238.
  1436. * Mixing of add and addConfigured methods in Mapper/ChainedMapper
  1437. causes incorrect chaining. Bugzilla report 40228.
  1438. Other changes:
  1439. --------------
  1440. * Warn user when a reference in the form "${refid}" cannot be resolved as this
  1441. is a sign they probably meant "refid" (misuse of property expansion syntax).
  1442. * Add dtd to javadoc for junit.
  1443. Bugzilla 40754.
  1444. * Add quiet attribute to loadfile/resource.
  1445. Bugzilla 38249.
  1446. * Make Locator#fromURI also append the drive letter when running under Windows
  1447. with JDK 1.3 or 1.2.
  1448. * Do not uppercase the drive letters systematically in FileUtils#normalize.
  1449. * Java 5 enumerations may now be used as values in XML attributes in place of
  1450. EnumeratedAttribute. Bugzilla 41058.
  1451. * Create a pom file for ant-testutil and add ant-testutil.jar to the ant
  1452. distribution. Bugzilla 40980.
  1453. * Roll back automatic proxy enabling on Java 1.5. It broke things like
  1454. Oracle JDBC drivers, and Ant itself on IBM's JVM on AIX, and didnt
  1455. seem to work to well the rest of the time.
  1456. To enable the feature, use the -autoproxy command line option.
  1457. * Upgraded XML API and parser to Xerces 2.8.1
  1458. * A code review of some threaded logic has tightened up the synchronization
  1459. of Watchdog, ExecuteWatchdog and ExecuteJava, which could reduce the occurence
  1460. of race conditions here, especially on Java1.5+.
  1461. * Allow broken reference build files. The defer reference processing would
  1462. break too many files - so allow them with a warning.
  1463. * Removed dependency on sun.misc.UUEncoder for UUMailer.
  1464. * Added regex attribute to the echoproperties task.
  1465. Bugzilla 40019.
  1466. * <war> task now allows you to omit the web.xml file. as this is optional
  1467. in the servlet 2.5 and Java EE 5 APIs. set needxmlfile="false" to
  1468. avoid a missing web.xml file from halting the build.
  1469. * Diagnostics catches and logs security exceptions when accessing system properties.
  1470. * <javadoc> useexternalfile now applies to all command line arguments
  1471. of javadoc. Bugzilla report 40852.
  1472. * javadoc/tag@description is now set to the name if description is
  1473. not specified. Bugzill report 32927.
  1474. * Some performance improvements, including Bugzilla report 25778.
  1475. * Add <matches> condition. Bugzilla report 28883.
  1476. * Extending JAR-Task for SPI. Bugzilla report 31520.
  1477. * Added <tokens> resource collection for convenient creation of string
  1478. resources from other resources' content. Inspired by Bugzilla 40504.
  1479. * Added <compare> resource selector to select resources based on the
  1480. results of their comparison to other resources.
  1481. * Added outputtoformatters attribute to <junit> to allow suppression
  1482. of noisey tests. Bugzilla report 12817.
  1483. * Log level of message 'Overriding previous definition of reference to'
  1484. set to Verbose. Bugzilla report 17240.
  1485. * Added setbeans attribute to <script> to allow <script>'s to be
  1486. run without referencing all references.
  1487. Bugzilla report 37688.
  1488. * Added classpath attribute and nested element to <script> to allow
  1489. the language jars to be specified in the build script.
  1490. Bugzilla report 29676.
  1491. * Trim the driver attribute on the <sql> task. Bugzilla report 21228.
  1492. * Allow (jar) files as well as directories to be given to jdepend.
  1493. Bugzilla report 28865.
  1494. * Convert SplashTask to use NOT sun internal classes.
  1495. Bugzilla report 35619.
  1496. * Made PatternSet#hasPatterns public to allow custom filesets access.
  1497. Bugzilla report 36772.
  1498. * Added searchparents attribute to <available>. Bugzilla report 39549.
  1499. * Tasks that don't extend Ant's Task class will now get the build file
  1500. location reflected into a method of the signature void setLocation(Location)
  1501. - if such a method exists.
  1502. * Remove needless synchronization in DirectoryScanner.
  1503. Bugzilla report 40237.
  1504. * Improved recursion detection for lines with multiple matches of same token
  1505. on a single line. Bugzilla report 38456.
  1506. * Task will now log correctly even if no project is set.
  1507. Bugzilla report 38458.
  1508. * Use alternative names for the command line arguments in javac. Bugzilla
  1509. Report 37546.
  1510. * The Reference class now has a project field that will get
  1511. used (if set) in preference to the passed in project, when
  1512. dereferencing the reference. Bugzilla Report 25777.
  1513. * On DOS and Netware, filenames beginning with a drive letter
  1514. and followed by a colon but with no directory separator following
  1515. the colon are no longer (incorrectly) accepted as absolute pathnames
  1516. by FileUtils.normalize() and FileUtils.isAbsolutePath(). Netware
  1517. volumes can still be specified without an intervening separator.
  1518. UNC pathnames on Windows must include a server and share name, i.e.
  1519. "\\a\b" to be considered valid absolute paths.
  1520. * A bug in SQLExec would prevent the execution of trailing,
  1521. non-semicolon-delimited statements. Bugzilla Report 37764.
  1522. * InputHandler implementations may now call InputRequest.getDefaultValue()
  1523. if they wish. The default handler uses this also. Bugzilla report 28621.
  1524. * Took in bugzilla report 39320, "Simple code cleanups"
  1525. * Improve compatibility with GNU Classpath and java versions prior to
  1526. 1.5. Bugzilla 39027.
  1527. * ${ant.core.lib} may now be used to refer to the library containing the
  1528. Ant classes, for instance useful when compiling tasks.
  1529. * Minor performance improvements Bugzilla report 37777
  1530. * New task <manifestclasspath> converts a path into a property
  1531. suitable as the value for a manifest's Class-Path attribute.
  1532. * Fixed references to obsoleted CVS web site. Bugzilla Report 36854.
  1533. * Log fine-grained events at verbose level from JUnit. Bugzilla report 31885.
  1534. * <WsdlToDotnet> and <style> are now deprecated in favor of <wsdltodotnet> and
  1535. <xslt>, respectively. Bugzilla report 25832.
  1536. * <echoproperties> now (alphanumerically) sorts the property list
  1537. before echoing. Bugzilla report 18976.
  1538. * A new base class DispatchTask has been added to facilitate elegant
  1539. creation of tasks with multiple actions.
  1540. * Major revision of <wsdltodotnet>. Supports mono wsdl and the microsoft
  1541. wsdl run on mono, as well as most of the .NET WSE2.0 options. Extra
  1542. schemas (files or urls) can be named in the <schema> element.
  1543. Compilers can be selected using the compiler attribute, which defaults
  1544. to "microsoft" on windows, and "mono" on everything else.
  1545. * It is now possible to specify the pattern created/parsed by <checksum>.
  1546. Bugzilla Report 16539.
  1547. * Added a new "failall" value for the onerror attribute of <typedef>.
  1548. Bugzilla report 31685.
  1549. * unzip/unwar/unjar/untar now supports a nested mapper, which lets you unzip
  1550. in useful ways.
  1551. * Junit task -- display suite first.
  1552. Bugzilla report 31962.
  1553. * Added isSigned condition and signedselector selector
  1554. Bugzilla report 32126.
  1555. * Added preserveLastModified attribute to signjar task.
  1556. Bugzilla report 30987.
  1557. * Added <scriptcondition> condition, for inline scripted conditions
  1558. * Added <xor> condition for exclusive-or combining of nested conditions.
  1559. * Added <scriptselector> selector for scripted file selection
  1560. * ant -diagnostics lists contents of ${user.home}/.ant/lib , and
  1561. checks that the java.io.tmpdir directory exists and is writeable.
  1562. * mail task accepts nested header element. Bugzilla report 24713.
  1563. * zip/jar/war/ear supports level attribute for deflate compression level.
  1564. Bugzilla report 25513.
  1565. * Added loginputstring attribute to the redirector type.
  1566. * Tighten security by sending storepass and keypass to signjar
  1567. via the input stream of the forked process.
  1568. * New task <schemavalidate> extends <xmlvalidate> with extra support
  1569. for XML Schema (XSD) files.
  1570. * <fixcrlf> supports a file attribute for easy fixup of a single file.
  1571. * New condition <parsersupports> which can look for XML parser feature or
  1572. property support in the parser Ant is using.
  1573. * fixcrlf can be used in a filterchain.
  1574. * <sync> has a new nested element <preserveInTarget> that can be used
  1575. to protect extra-content in the target directory. Bugzilla Report
  1576. 21832.
  1577. * <signjar> now supports:
  1578. -nested filesets at the same time as the jar attribute
  1579. -a destDir attribute with the appropriate dependency logic, which
  1580. can be used with the jar attribute or nested filesets
  1581. -a mapper to permit filename remapping on signing
  1582. -tsaurl and tsacert attributes for timestamped JAR signing
  1583. -nested <sysproperty> elements, which can be used for proxy setup
  1584. and the like
  1585. * The linecontains and linecontainsregexp filterreaders now support a
  1586. negate attribute to select lines -not- containing specified text.
  1587. Bugzilla Report 34374.
  1588. * <os> condition adds "winnt" as a family which can be tested. This is
  1589. all windows platforms other than the Win9x line or Windows CE.
  1590. * <exec> (and hence, <apply> and any other derived classes) have an OsFamily
  1591. attribute, which can restrict execution to a single OS family.
  1592. * Added "backtrace" attribute to macrodef. Bugzilla report 27219.
  1593. * Ant main provides some diagnostics if it ever sees a -cp or -lib option,
  1594. as this is indicative of a script mismatch. Bugzilla report 34860
  1595. * <junitreport> prints a special message if supplied an empty XML File. This
  1596. can be caused by the test JVM exiting during a test, either via a
  1597. System.exit() call or a JVM crash.
  1598. * Project name is now used for *all* targets so one can write consistent import
  1599. build files. Bugzilla report 28444.
  1600. * New condition <typefound> that can be used to probe for the declaration
  1601. and implementation of a task, type, preset, macro, scriptdef, whatever.
  1602. As it tests for the implementation, it can be used to check for optional
  1603. tasks being available.
  1604. * Check for 1.5.* Ant main class. (weblogic.jar in classpath reports)
  1605. * New condition <isfailure> that tests the return-code of an executable. This
  1606. contains platform-specific logic and is better than comparing the result with
  1607. "0".
  1608. * Added initial support for Resource Collections, including the
  1609. resourcecount task.
  1610. * property attribute of pathconvert is now optional. If omitted the
  1611. result will be written to the log.
  1612. * New mapper, <scriptmapper>, supports scripted mapping of source files/strings
  1613. to destination strings.
  1614. * Add the echoxml task. This will echo nested XML to a file, with
  1615. the normal <?xml ?> processor instruction. UTF-8 encoding only; no-namespace
  1616. support.
  1617. * Try to make subprojects of custom Project subclasses instances of the
  1618. same type. Bugzilla report 17901.
  1619. * <ssh> and <scp> support keyboard-interactive authentication now.
  1620. * <javadoc> now supports -breakiterator for custom doclets if Ant is
  1621. running on JSE 5.0 or higher. Bugzilla Report: 34580.
  1622. * New logger, TimestampedLogger, that prints the wall time that a build
  1623. finished/failed. Use with
  1624. -logger org.apache.tools.ant.listener.TimestampedLogger
  1625. * <junitreport> now generates pages alltests-errors.html and
  1626. alltests-fails.html, that list only the errors and failures, respectively.
  1627. Bugzilla Report: 36226
  1628. * New task <makeurl> that can turn a file reference into an absolute file://
  1629. url; and nested filesets/paths into a (space, comma, whatever) separated
  1630. list of URLs. Useful for RMI classpath setup, amongst other things.
  1631. * <xslt> now accepts nested FileNameMappers e.g. <globmapper>.
  1632. Bugzilla report 37604.
  1633. * New task <loadresource> that accompanies <loadfile> for non file resources.
  1634. * <echo> now supports an encoding when saving to a file.
  1635. * New GreedyInputHandler added.
  1636. * Add textfile attribute to the <filesmatch> condition. When true, the text
  1637. contents of the two files are compared, ignoring line ending differences.
  1638. * New <resourcesmatch> condition.
  1639. * Added the onmissingfiltersfile attribute to filterset. Bugzilla report 19845.
  1640. * Added the inline handler element to the input task.
  1641. * <sql> supports property expansion if you set the expandProperties
  1642. attribute. By default it does not expand properties, something we
  1643. dare not change for fear of breaking complex SQL operations in
  1644. existing files.
  1645. * <javadoc>'s packagenames attribute is now optional and defaults to "*".
  1646. * <javac>'s source and target attributes as well as <javadoc>'s source
  1647. attribute will read default values from the properties
  1648. ant.build.javac.source and ant.build.javac.target.
  1649. * Handling of ' ', '#' in CLASSPATH and '#' in -lib (cannot use ' '
  1650. in -lib on UNIX at the moment). Bugzilla Report 39295.
  1651. * <scp> now optionally supports the sftp protocol. Bugzilla Report 39373.
  1652. * Resources can now be used to indicate the location of the stylesheet to use
  1653. in <xslt>. Bugzilla Report 39407.
  1654. * New <antversion> condition. Bugzilla report 32804.
  1655. * ReplaceTokens should allow properties files. Bugzilla report 39688.
  1656. * FTP Account could not be specified in ant FTP task. Bugzilla report 39720.
  1657. * Minor performance updates. Bugzilla report 39565.
  1658. * New deleteonexit attribute for the <tempfile> task. Bugzilla report 39842.
  1659. Remember that the exit of the JVM can be a long time coming,
  1660. especially under an IDE. Don't rely on this being called.
  1661. * <scriptdef>-created scripts have support for nested text. All text
  1662. passed to a scripted task can be accessed via self.text.
  1663. * <fixcrlf> now supports an outputencoding attribute. Bugzilla report 39697.
  1664. * <junitreport> now supports nested XSL parameters. Bugzilla report 39708.
  1665. * <javacc> has a jdkversion attribute to pass the desired JDK version
  1666. down to javacc. Bugzilla report 38715.
  1667. * <cvs> prints passfile info at -verbose level instead of -info. Bugzilla
  1668. report 35268
  1669. * When <javac> can't find the compiler class, it prints out java.home for
  1670. immediate diagnostics
  1671. * Ant launcher now supports a -main attribute so that you can specify
  1672. an extension class to the built in org.apache.tools.ant.Main
  1673. class. This class must implement the interface AntMain
  1674. Changes from Ant 1.6.4 to Ant 1.6.5
  1675. ===================================
  1676. Changes that could break older environments:
  1677. --------------------------------------------
  1678. Fixed bugs:
  1679. -----------
  1680. * <move> was unable to replace existing files or write into
  1681. existing directories. Bugzilla report 34962.
  1682. * <macrodef> with redefined default values was incorrect. (Fix for
  1683. 31215 had a bug). Bugzilla report 35109.
  1684. * <javadoc> will convert backslashes to forwardslashes when generating file
  1685. list by useexternalfile. Bugzilla report 27814.
  1686. Changes from Ant 1.6.3 to Ant 1.6.4
  1687. ===================================
  1688. Changes that could break older environments:
  1689. --------------------------------------------
  1690. * <ftp> task has had a number of changes. Uptodate calculation previously
  1691. did not call a file uptodate if the source timestamp and the destination
  1692. timestamp were equal. Bugzilla report 34941. Any script that attempted
  1693. to compensate for this by using the timediffmillis attribute might need
  1694. to be tweaked.
  1695. Fixed bugs:
  1696. -----------
  1697. * Sun javah failed with java.lang.NoClassDefFoundError.
  1698. Bugzilla report 34681.
  1699. * DirectoryScanner.slowScan() was broken. Bugzilla report 34722.
  1700. * DirectoryScanner.scan() could throw a NullPointerException on
  1701. case-insensitive filesystems (read Windows or MacOS X).
  1702. * Get w/authentication failed with ArrayOutOfBoundsExceptions.
  1703. Bugzilla report 34734.
  1704. * Granularity attribute for <sync> task was undocumented.
  1705. Bugzilla report 34871.
  1706. * <unzip> and <untar> could leave file handles open on invalid
  1707. archives. Bugzilla report 34893.
  1708. * propertyset threw NPE with nested, mapped propertysets.
  1709. Other changes:
  1710. --------------
  1711. * AntXMLContext.setCurrentTargets() is now public. Bugzilla report 34680.
  1712. Changes from Ant 1.6.2 to Ant 1.6.3
  1713. ===================================
  1714. Changes that could break older environments:
  1715. --------------------------------------------
  1716. * The subant task used the canonical version of a file path. This
  1717. has been changed to use the absolute path. Bugzilla 30438.
  1718. * Tar now writes two EOF blocks rather than one.
  1719. Bugzilla report 28776
  1720. * The Reference object now has a project field which it uses in preference
  1721. to the project passed in. This allows composite references to be
  1722. handled to nested projects.
  1723. Bugzilla report 25777
  1724. * <junit> with filtertrace="true" will now also swallow lines for the
  1725. sun.reflect package. If you need to see them in your stack trace,
  1726. you must set filtertrace to false.
  1727. Bugzilla Report 22758
  1728. * The jikes compiler adapter now supports -bootclasspath, -extdirs and
  1729. -sourcepath and also uses the same logic for debug flags as javac.
  1730. This means, the jikes compiler adapter now requires Jikes 1.15 or later.
  1731. Bugzilla Reports 25868, 26404 and 32609.
  1732. * The gcj compiler adapter used to include the Java runtime classes
  1733. even if includeJavaRuntime was set to false, unless the
  1734. bootclasspath has been specified as well. It will now always adhere
  1735. to includeJavaRuntime, you may need to set it to true explicitly now
  1736. if you relied on the old behavior.
  1737. Other changes:
  1738. --------------
  1739. * <javadoc> can now take an attribute 'executable'. Bugzilla report 30606.
  1740. * New attribute ignorecontents for <different> selector
  1741. * Javadoc fixes for Location, Project, and RuntimeConfigurable
  1742. Bugzilla 30160.
  1743. * Enable to choose the regexp implementation without system property.
  1744. Bugzilla Report 15390.
  1745. * Expose objects and methods in IntrospectionHelper. Bugzilla Report 30794.
  1746. * Allow file attribute of <move> to rename a directory.
  1747. Bugzilla Report 22863.
  1748. * Add xmlcatalog nested element to XmlProperty. Bugzilla report 27053.
  1749. * New attribute alwayslog for <redirector> type.
  1750. * Added <target> nested elements to <ant> and <antcall> to allow
  1751. specification of multiple sub-build targets, which are executed
  1752. with a single dependency analysis.
  1753. * Refactored Target invocation into org.apache.tools.ant.Executor
  1754. implementations. Bugzilla Reports 21421, 29248.
  1755. * <rmic> now also supports Kaffe's rmic version shipping with Kaffe
  1756. 1.1.2 and above.
  1757. * added casesensitive attribute to <globmapper> and <regexpmapper>
  1758. Bugzilla report 16686
  1759. * added handledirsep attribute to <globmapper> and <regexpmapper>
  1760. Bugzilla report 32487
  1761. * added a new mapper <filtermapper>
  1762. * When a BuildListener tried to access System.err or System.out, Ant
  1763. would have thrown an exception - this has been changed. Ant now
  1764. silently ignores the message. BuildListeners still should avoid
  1765. accessing either stream.
  1766. * Added a comment attribute to the zip task.
  1767. Bugzilla report 22793.
  1768. * Overloaded FileUtils.createNewFile with a boolean mkdirs attribute
  1769. to create nonexistent parent directories.
  1770. * <apply> has a new "force" attribute that, when true, disables
  1771. checking of target files.
  1772. * Made the dest attribute of the apply task optional; mapped target
  1773. filenames will be interpreted as absolute pathnames when dest is omitted.
  1774. * Changed default tempdir for <javac> from user.dir to java.io.tmpdir.
  1775. * Added searchpath attribute to <exec> for searching path variable(s)
  1776. when resolveexecutable = true.
  1777. * Added revision and userid attributes to <pvcs> documentation.
  1778. * Added support to the touch task for a mkdirs attribute to create
  1779. nonexistent parent directories before touching new files.
  1780. * Added support to the touch task for a pattern attribute to allow
  1781. alternate datetime formats.
  1782. * Added support to the touch task to map touched files using a nested
  1783. mapper element.
  1784. * Added support to the touch task for a verbose attribute to suppress
  1785. logging of new file creation.
  1786. * bad link in docs to the enhancement page in bugzilla.
  1787. Bugzilla report 33252.
  1788. * Added length task to get strings' and files' lengths.
  1789. * <native2ascii> and <javah> now also support Kaffe's versions.
  1790. * Recursive token expansion in a filterset can now be disabled by
  1791. setting its recurse attribute to false.
  1792. * Pathconvert no longer requires that one of (targetos|pathsep|dirsep)
  1793. be set; platform defaults are used when this is the case.
  1794. * Added preservelastmodified attribute to fixcrlf task. Bugzilla 25770.
  1795. * Added isfileselected condition.
  1796. * Added verbose="true|false" attribute to <subant>. When verbose is enabled,
  1797. the directory name is logged on entry and exit of the sub-build.
  1798. Bugzilla 33787.
  1799. * Added -nouserlib option to allow running ant without automatically loading
  1800. up ${user.home}/.lib/ant. This is useful when compiling ant, and antlibs.
  1801. Modified the build.sh and build.bat to use the option.
  1802. * Added -noclasspath option to allow running ant WITHOUT using CLASSPATH env
  1803. variable. Modified ant.bat to do this so that %CLASSPATH% is not looked at.
  1804. * Add else attribute to the condition task, which specifies an
  1805. optional alternate value to set the property to if the nested
  1806. condition evaluates to false. Bugzilla report 33074.
  1807. * Ant generated jar files should now be detected as jar files by
  1808. Solaris. Bugzilla Report 32649.
  1809. * <rexec> with a single command should now work with unusal login
  1810. dialogs without special read/write pairs. Bugzilla Report 26632.
  1811. * <csc>'s extraoptions can now contain multiple arguments.
  1812. Bugzilla Report 23599.
  1813. * <macrodef> with default values set by properties would be
  1814. seen as new definitions when called twice with different properties.
  1815. This was confusing so the definitions are now treated as similar.
  1816. Bugzilla Report 31215.
  1817. * <javadoc> has a new attribute "includenosourcepackages" that can be
  1818. used to document packages that don't hold source files but a
  1819. package.html file. Bugzilla Report 25339.
  1820. * <rpm> has new attributes failonerror and quiet.
  1821. * Added two tutorials
  1822. - beginner: introduction into Ant
  1823. - task developers: using path, fileset etc
  1824. * a number of new attributes that allow the user to handle non-standard
  1825. server listing formats and time zone differences have been added in
  1826. the <ftp> task.
  1827. Fixed bugs:
  1828. -----------
  1829. * Do not pass on ThreadDeath when halting <java fork="false">. Bugzilla
  1830. 32941.
  1831. * Killing a thread running <java fork="true"> (e.g. from an IDE) would
  1832. not stop the forked process. Bugzilla 31928.
  1833. * Programs run with <java fork="true"> can now accept standard input
  1834. from the Ant console. (Programs run with <java fork="false"> could
  1835. already do so.) Bugzilla 24918.
  1836. * AbstractCvsTask prematurely closed its outputStream and errorStream.
  1837. Bugzilla 30097.
  1838. * Impossible to use implicit classpath for <taskdef>
  1839. when Ant core loader != Java application loader and
  1840. Path.systemClassPath taken from ${java.class.path} Bugzilla 30161.
  1841. * MacroInstance did not clean up nested elements correctly in the execute
  1842. method, causing multiple use of the same macro instance with nested
  1843. elements to fail.
  1844. * checksum fileext property doc wrong. Bugzilla 30787.
  1845. * FTP task, getTimeDiff method was returning wrong value. Bugzilla 30595.
  1846. * make sure that Zip and its derivates call the createEmptyZip method when
  1847. there are no resources to zip/jar/...
  1848. * Zip task was not zipping when only empty directories were found.
  1849. Bugzilla 30365.
  1850. * Jar task was not including manifest files when duplicate="preserve" was
  1851. chosen. Bugzilla 32802.
  1852. * ant.bat was missing runAntNoClasspath label for goto.
  1853. Bugzilla 34510.
  1854. * Classpath was treated in the same way as -lib options. Bugzilla 28046.
  1855. * Manual page for cvsversion contained incorrect attributes and did not
  1856. say since 1.6.1. Bugzilla 31408.
  1857. * Typo in definition of <cvsversion> task causing it not to be defined.
  1858. Bugzilla 31403.
  1859. * Execution of top level tasks in imported files get delayed by targets.
  1860. Bugzilla report 31487.
  1861. * ExecTask executes checkConfiguration() even though os does not match.
  1862. Bugzilla report 31805.
  1863. * Concat task instance could not be run twice.
  1864. Bugzilla report 31814.
  1865. * NPE using XmlLogger and antlib.
  1866. Bugzilla report 31840.
  1867. * Properties.propertyNames() should be used instead of .keys().
  1868. Bugzilla report 27261.
  1869. * Target location is not set for default target.
  1870. Bugzilla report 32267.
  1871. * Incorrect classloader parent in junittask when using with
  1872. ant-junit.jar and junit.jar not in the project classloader. Bugzilla
  1873. report 28474.
  1874. * getResources() on the classloader returned by ClasspathUtils would
  1875. see each resource twice - if the resource is in the project
  1876. classpath and if the classloader is requested with a null path.
  1877. * XMLValidate used URL#getFile rather than the ant method FileUtils#fromURI
  1878. Bugzilla report 32508
  1879. * fixed Regexp-Mapper docs which gave outdated instructions (optional.jar)
  1880. Bugzilla report 28584
  1881. * <scp> using <fileset> didn't work with OpenSSH 3.9 and later.
  1882. Bugzilla report 31939
  1883. * <setproxy> failed to set user/password on some JDKs.
  1884. Bugzilla report 32667
  1885. * untar would go into infinite loop for some invalid tar files.
  1886. Bugzilla report 29877
  1887. * forked <javac> won't pass -source to a JDK 1.1 or 1.2 javac anymore.
  1888. Bugzilla report 32948
  1889. * propertyset references did not handle nested propertyset references.
  1890. * oata.types.Description.getDescription(Project) would throw a
  1891. NullPointerException when the "ant.targets" reference was unset.
  1892. * Wrapper scripts did not detect WINNT value of dynamic OS environment
  1893. variable when logged into workstations using Novell authentication.
  1894. Bugzilla Report 30366.
  1895. * DependScanner.getResource() always returned nonexistent resources,
  1896. even when the resource actually existed. Bugzilla Report 30558.
  1897. * <apply> was broken with classfilesets. Bugzilla Report 30567.
  1898. * <available> returned false positives when checking a file
  1899. passed in with the current basedir leading twice:
  1900. e.g. ${basedir}${file.separator}${basedir}${file.separator}foo .
  1901. * The first file open that took place when using input files with the
  1902. <exec>, <apply>, or <java> tasks was always logged to System.out
  1903. instead of to the managing Task.
  1904. * <telnet> and <rexec> would try to disconnect from servers they never
  1905. connetced to, potentially leading to exceptions in commons-net.
  1906. Bugzilla Report 33618.
  1907. * <zip> would drop files matched by defaultexcludes during updates.
  1908. Bugzilla Report 33412.
  1909. * <zip> couldn't store files with size between 2GB and 4GB (the
  1910. upper limit set by the ZIP format itself). Bugzilla Report 33310.
  1911. * NPE when when <presetdef> tries to configure a task that
  1912. cannot be instantiated. Bugzilla Report 33689.
  1913. * <javac debug="false"> created an invalid command line when running
  1914. the Symantec Java compiler.
  1915. * Get with usetimestamp did not work on Java 1.2.
  1916. * Get with usetimestamp did not work when local timestamp roughly >= now.
  1917. * The framed JUnit report now handles multiple reports for the same
  1918. testcase properly. Bugzilla Report 32745.
  1919. * <cab> didn't work for files with spaces in their names on Windows.
  1920. Bugzilla Report 17182.
  1921. * The VAJ tasks could fail if the project name contained characters
  1922. that need to get URL encoded. Bugzilla Report 23322.
  1923. * TarInputStream#read() wasn't implemented correctly. Bugzilla Report
  1924. 34097.
  1925. * <xslt> failed to process file-hierarchies of more than one level if
  1926. scanincludeddirectories was true. Bugzilla Report 24866.
  1927. * forkmode="perBatch" or "once" would ignore extension attributes that
  1928. had been specified for <formatter>s. Bugzilla Report 32973.
  1929. * The refid attribute of the I/O redirector was not functional.
  1930. Changes from Ant 1.6.1 to Ant 1.6.2
  1931. ===================================
  1932. Changes that could break older environments:
  1933. --------------------------------------------
  1934. * The import task used the canonical version of a file path. This
  1935. has been changed to use the absolute path. Bugzilla 28505.
  1936. * ant-xalan2.jar has been removed since the only class contained in it
  1937. didn't depend on Xalan-J 2 at all. Its sole dependency has always
  1938. been TraX and so it has been merged into ant-trax.jar.
  1939. * All exceptions thrown by tasks are now wrapped in a buildexception
  1940. giving the location in the buildfile of the task.
  1941. * Nested elements for namespaced tasks and types may belong to the
  1942. Ant default namespace as well as the task's or type's namespace.
  1943. * <junitreport> will very likely no longer work with Xalan-J 1.
  1944. Note that Xalan-J 1 has been deprecated for a very long time and we
  1945. highly recommend that you upgrade.
  1946. If you really need to continue using Xalan-J 1, please copy the
  1947. junit-frames-xalan1.xsl from the distribution's etc directory as
  1948. junit-frames.xsl into a new directory and use the task's styledir
  1949. attribute to point to. This is the last version of the XSLT
  1950. stylesheet that is expected to be compatible with Xalan-J 1.
  1951. Fixed bugs:
  1952. -----------
  1953. * eliminate memory leak in AntClassLoader. Bugzilla Report 8689.
  1954. * subant haltonfailure=false did not catch all failures. Bugzilla Report 27007.
  1955. * macrodef @@ escaping was broken. Bugzilla Report 27069.
  1956. * MacroDef did not allow attributes named 'description'. Bugzilla Report 27175.
  1957. * Throw build exception if name attribute missing from patternset#NameEntry.
  1958. Bugzilla Report 25982.
  1959. * Throw build exception if target repeated in build file, but allow targets
  1960. to be repeated in imported files.
  1961. * <apply> didn't compare timestamps of source and targetfiles when
  1962. using a nested <filelist>. Bugzilla Report 26985.
  1963. * tagdiff.xml was broken in ant 1.6.1. Bugzilla Report 27057.
  1964. * if the basedir contained .. or . dirs, and the build file name contained
  1965. .. or ., the basedir was set incorrectly. Bugzilla Report 26765.
  1966. * regression from ant 1.5, exec task outputted two redundant trailing newlines.
  1967. Bugzilla Report 27546.
  1968. * NPE when running commons listener. Bugzilla Report 27373.
  1969. * <java> swallowed the stack trace of exceptions thrown by the
  1970. executed program if run in the same VM.
  1971. * -projecthelp swallowed (configuration) errors silently.
  1972. Bugzilla report 27732.
  1973. * filterset used by filtertask doesn't respect loglevel. Bugzilla Report 27568.
  1974. * wrong compare used in ProjectComponent for logging. Bugzilla Report 28070.
  1975. * failOnAny attribute for <parallel> was broken. Bugzilla Report 28122.
  1976. * If <javac> uses gcj and any of the nested <compilerarg>s implies
  1977. compilation to native code (like -o or --main), Ant will not pass
  1978. the -C switch to gcj. This means you can now compile to native code
  1979. with gcj which has been impossible in Ant < 1.6.2.
  1980. * <import optional="false"> and <import optional="true">
  1981. behaved identically.
  1982. * <xslt> now sets the context classloader if you've specified a nested
  1983. <classpath>. Bugzilla Report 24802.
  1984. * <zip> and friends would delete the original file when trying to update
  1985. a read-only archive. Bugzilla Report 28419.
  1986. * <junit> and <assertions> are working together. Bugzilla report 27218
  1987. * AntClassLoader#getResource could return invalid URLs. Bugzilla
  1988. Report 28060.
  1989. * Ant failed to locate tools.jar if the jre directory name wasn't all
  1990. lowercase. Bugzilla Report 25798.
  1991. * Redirector exhibited inconsistent behavior with regard to split
  1992. output. When sent to file only, files would be created in all
  1993. cases; when split file-property, files were only created if
  1994. writes were performed.
  1995. * fixed case handling of scriptdef attributes and elements.
  1996. * UNC pathnames did not work for ANT_HOME or -lib locations on Windows.
  1997. Bugzilla report 27922.
  1998. * replacestring tokenfilter only replaced the first occurrence.
  1999. * AntLikeTasksAtTopLevelTest failed on cygwin.
  2000. * I/O-intensive processes hung when executed via <exec spawn="true">.
  2001. Bugzilla reports 23893/26852.
  2002. * JDependTask did not close an output file. Bugzilla Report 28557.
  2003. * Using <macrodef> could break XmlLogger. Bugzilla Report 28993.
  2004. * <genkey> no longer requires keytool to be in your PATH. Bugzilla
  2005. Report 29382.
  2006. * <symlink> could create cyclic links. Bugzilla Report 25181.
  2007. * <zip whenempty="skip"> didn't work in a common situation. Bugzilla
  2008. Report 22865.
  2009. * <scp> now properly handles remote files and directories with spaces
  2010. in their names. Bugzilla Report 26097.
  2011. * <scp> now has (local|remote)tofile attributes to rename files on the
  2012. fly. Bugzilla Report 26758.
  2013. * <telnet> and <rexec> didn't close the session. Bugzilla Report 25935.
  2014. * <subant> and XmlLogger didn't play nicley together.
  2015. Other changes:
  2016. --------------
  2017. * doc fix concerning the dependencies of the ftp task
  2018. Bugzilla Report 29334.
  2019. * <xmlvalidate> has now a property nested element,
  2020. allowing to set string properties for the parser
  2021. Bugzilla Report 23395.
  2022. * Docs fixes for xmlvalidate.html, javadoc.html, starteam.
  2023. Bugzilla Reports 27092, 27284, 27554.
  2024. * <pathconvert> now accepts nested <mapper>s. Bugzilla Report 26364.
  2025. * Shipped XML parser is now Xerces-J 2.6.2.
  2026. * Added nested file element to filelist.
  2027. * spelling fixes, occurred. Bugzilla Report 27282.
  2028. * add uid and gid to tarfileset. Bugzilla Report 19120.
  2029. * <scp> has a verbose attribute to get some feedback during the
  2030. transfer and new [local|remote][File|Todir] alternatives to file and
  2031. todir that explicitly state the direction of the transfer.
  2032. * The OS/2 wrapper scripts have been adapted to use the new launcher.
  2033. Bugzilla Report 28226.
  2034. * <sshexec> now also captures stderr output. Bugzilla Report 28349.
  2035. * <xslt> now supports a nested <mapper>. Bugzilla Report 11249.
  2036. * <touch> has filelist support.
  2037. * <nice> task lets you set the priority of the current thread; non-forking
  2038. <java> code will inherit this priority in their main thread.
  2039. * New attribute "negate" on <propertyset> to invert selection criteria.
  2040. * Target now supports a Location member. Bugzilla Report 28599.
  2041. * New "pattern" attribute for <date> selector.
  2042. * <junit> has a new forkmode attribute that controls the number of
  2043. Java VMs that get created when forking tests. This allows you to
  2044. run all tests in a single forked JVM reducing the overhead of VM
  2045. creation a lot. Bugzilla Report 24697.
  2046. * <jar> can now optionally create an index for jars different than the
  2047. one it currently builds as well. See the new <indexjars> element
  2048. for details. Bugzilla Report 14255.
  2049. * Permit building under JDK 1.5. Bugzilla Report 28996.
  2050. * minor Javadoc changes. Bugzilla Report 28998.
  2051. * Misc. corrections in SignJar.java. Bugzilla Report 28999.
  2052. * Remove redundant <hr> from javah.html. Bugzilla Report 28995.
  2053. * Ignore built distributions. Bugzilla Report 28997.
  2054. * A new roundup attribute on <zip> and related task can be used to
  2055. control whether the file modification times inside the archive will
  2056. be rounded up or down (since zips only store modification times with
  2057. a granularity of two seconds). The default remains to round up.
  2058. Bugzilla Report 17934.
  2059. * A binary option has been added to <concat>. Bugzilla Report 26312.
  2060. * Added DynamicConfiguratorNS, an namespace aware version of
  2061. DynamicConfigurator. Bugzilla Report 28436.
  2062. * Add implicit nested element to <macrodef>. Bugzilla Report 25633.
  2063. * Add deleteonexit attribute to <delete>.
  2064. * Added Target.getIf/Unless(). Bugzilla Report 29320.
  2065. * <fail> has a status attribute that can be used to pass an exit
  2066. status back to the command line.
  2067. * <fail> accepts a nested <condition>.
  2068. * <loadproperties> supports loading from a resource.
  2069. Bugzilla Report 28340.
  2070. * Nested file mappers and a container mapper implementation have been
  2071. introduced. Additionally, the <mapper> element now accepts "defined"
  2072. nested FileNameMapper implementations directly, allowing a usage
  2073. comparable to those of <condition>, <filter>, and <selector>.
  2074. * New <redirector> type introduced to provide extreme I/O flexibility.
  2075. Initial support for <exec>, <apply>, and <java> tasks.
  2076. * <apply> has a new ignoremissing attribute (default true for BC)
  2077. which will allow nonexistent files specified via <filelist>s to
  2078. be passed to the executable. Bugzilla Report 29585.
  2079. * <junitreport> now also works with Xalan XSLTC and/or JDK 1.5.
  2080. Bugzilla Report 27541.
  2081. * <jspc> doesn't work properly with Tomcat 5.x. We've implemented a
  2082. work-around but don't intend to support future changes in Tomcat
  2083. 5.x. Please use the jspc task that ships with Tomcat instead of
  2084. Ant's.
  2085. Changes from Ant 1.6.0 to Ant 1.6.1
  2086. =============================================
  2087. Changes that could break older environments:
  2088. --------------------------------------------
  2089. * License is now Apache License 2.0
  2090. see http://www.apache.org/licenses/ for more information
  2091. Fixed bugs:
  2092. -----------
  2093. * Remove a recursive template call in the junit xsls that could trigger a stack
  2094. overflow. It now uses Xalan extensions to call a Java class directly.
  2095. Bugzilla Report 19301
  2096. * Fix spurious infinite loop detection for filters (introduced in ant 1.6.0).
  2097. Bugzilla Report 23154.
  2098. * Fix handling of default ant namespace for nested elements.
  2099. * Fix jboss element of ejb task (introduced in ant 1.6.0).
  2100. * <whichresource> failed to load classes correctly.
  2101. * Ant could fail to start with a NullPointerException if
  2102. ANT_HOME/lib/ant-launcher.jar was part of the system CLASSPATH.
  2103. * presetdef'ed types did not work with the ant-type attribute
  2104. * fixed case handling of macrodef attributes and elements. Bugzilla
  2105. Reports 25687 and 26225.
  2106. * <java> ignored the append attribute, Bugzilla Report 26137.
  2107. * The gcj compiler adapter for <javac> failed if the destination
  2108. directory didn't exist. Bugzilla Report 25856.
  2109. * Ant now fails with a more useful message if a new process will be
  2110. forked in a directory and that directory doesn't exist.
  2111. * <splash> used to break the build on non-GUI environments. Bugzilla
  2112. report 11482.
  2113. * Ant 1.6.0 cannot run build scripts in directories with non-ASCII names.
  2114. Bugzilla Report 26642.
  2115. Other changes:
  2116. --------------
  2117. * Shipped XML parser is now Xerces-J 2.6.1
  2118. * Translate task logs a debug message specifying the number of files
  2119. that it processed. Bugzilla Report 13938.
  2120. * <fixcrlf> has a new attribute - fixlast. Bugzilla Report 23262.
  2121. * <p4submit> has 2 new attributes, needsresolveproperty and changeproperty.
  2122. Bugzilla Report 25711.
  2123. * add description attributes to macrodef attributes and elements.
  2124. Bugzilla Report 24711.
  2125. * Extending ClearCase Tasks :
  2126. - Added an extra option to 'failonerr' to each ClearCase task/command.
  2127. - Extended the functionality of cccheckout. It can check (notco) to see if
  2128. the desired element is already checked out to the current view. Thus it
  2129. won't attempt to check it out again.
  2130. - Added three new ClearCase commands: ccmkattr, ccmkdir, ccmkelem
  2131. Bugzilla Report 26253.
  2132. * added nested text support to <macrodef>
  2133. * added initial support for Java 1.5. Java 1.5 is now correctly
  2134. detected by Ant and treated just like Java 1.4. You can now specify
  2135. source="1.5" in the <javac> task.
  2136. * created new task <cvsversion>
  2137. * added support for branch logging via the tag attribute in <cvschangelog>
  2138. Bugzilla Report 13510.
  2139. * added support the groovy language in the script and scriptdef tasks
  2140. Changes from Ant 1.5.4 to Ant 1.6.0
  2141. ===================================
  2142. Changes that could break older environments:
  2143. --------------------------------------------
  2144. * This version of Ant can not be built with JDK 1.1 and requires at
  2145. least Java 1.2 at runtime as well. Compiling for a 1.1 target is
  2146. still supported.
  2147. * Targets cannot have the empty string as their name any longer.
  2148. * ant.jar's manifest does no longer include a Class-Path entry, so it
  2149. is no longer possible to run Ant via "java -jar ant.jar" without
  2150. manually altering the CLASSPATH. Instead of that a file
  2151. ant-bootstrap.jar is included in the etc directory of the binary
  2152. distribution, copy this to the lib directory and use
  2153. "java -jar ant-bootstrap.jar" instead if you want to run Ant without
  2154. the wrapper script (not recommended).
  2155. * The <script> task now requires Apache BSF instead of the older IBM
  2156. version. See <http://jakarta.apache.org/bsf/>
  2157. * <xmlproperty> will no longer fail if the file to be loaded doesn't exist.
  2158. * XML namespaces are now enabled in the XML parser, meaning XML namespace
  2159. declarations no longer cause errors. However task names containing colons
  2160. will cause errors unless there is a corresponding namespace uri.
  2161. * The <ftp> and <telnet> tasks now require Jakarta Commons Net instead
  2162. of the older ORO Netcomponents version. See
  2163. <http://jakarta.apache.org/commons/net/index.html>.
  2164. * <input> will no longer prompt the user and wait for input if the
  2165. addproperty attribute is set to a property that has already been
  2166. defined in the project. If you rely on the task waiting for input,
  2167. don't use the addproperty attribute.
  2168. * The Class-Path attribute in manifests will no longer merge the
  2169. entries of all manifests found, but will be treated like all other
  2170. manifest attributes - the most recent attribute(s) will be used.
  2171. * New Launch mechanism implemented. This moves some functionality from
  2172. the batch files / shell scripts into Java. This removes environment
  2173. limitations, for command issues, directory depth issues on Windows. Also
  2174. allows a per-user library location to be used if the main Ant install
  2175. is locked down.
  2176. * The Entry nested element of PropertyFile will not any more have its value
  2177. attribute (actually increment) overwritten with the new value of the entry
  2178. after execution.
  2179. * Output stored from a <java> or <exec> task is now exactly as generated. No
  2180. conversion to platform end-of-line characters is performed.
  2181. * <translate> will now preserve line endings.
  2182. * <ftp> followsymlinks="false" in nested fileset definitions is explicitly
  2183. required in order to exclude remote symbolic links (when doing a get, chmod,
  2184. delete, rmdir).
  2185. * The values of the Copy#fileCopyMap variable has changed from String to
  2186. String[]. (In java 1.5 terms it was Hashtable<String, String> and
  2187. is now Hashtable<String, String[]>). This will affect third party code
  2188. that extend Copy and override Copy#doFileOperations.
  2189. * <loadproperties> didn't expand properties while <property file="..."/>
  2190. does, so they were not equivalent. This has been fixed, which means
  2191. that propetries may get expanded twice if you use an
  2192. <expandproperties> filterreader. Bugzilla Report 17782.
  2193. * User defined tasks and typedefs are now handled internally in the
  2194. same way as predefined tasks and typedefs. Also tasks and typedefs
  2195. are resolved at a later stage. This causes some
  2196. differences especially for user defined task containers.
  2197. * <checksum> log message "Calculating checksum ..." has been degraded
  2198. from INFO to VERBOSE.
  2199. Fixed bugs:
  2200. -----------
  2201. * Filter readers were not handling line endings properly. Bugzilla
  2202. Report 18476.
  2203. * Filtersets were also not handling line endings properly.
  2204. * Expand tasks did not behave as expected with PatternSets.
  2205. * <property environment=... /> now works on OS/400.
  2206. * <cab> could hang listcab on large <fileset>s.
  2207. * The starteam stcheckout, stcheckin tasks now correctly compute
  2208. status of files against whatever local tree they are run against
  2209. and, optionally, will not process a file if it is current.
  2210. Previously you had to process everything unless you ran against the
  2211. default folder which wasn't the normal use-case for ant-starteam.
  2212. The stlist task now similarly displays that status correctly making
  2213. it a more generally useful tool.
  2214. * entity includes would cause exceptions if path names included spaces.
  2215. * addConfiguredXXX would not work for TaskAdapter wrapped tasks
  2216. * Fix <ilasm> outputfile testing so that the output file does not need
  2217. to exist beforehand.
  2218. * Ant will now exit with a return code of 1 if it encounters problems
  2219. with the command line arguments.
  2220. * ClassLoader creation changes to use a factory method in Project. A new
  2221. class AntClassLoader2 implemented for 1.2+ specific features including
  2222. Package information and addition of classes specified in the Class-Path
  2223. element of a Jar's manifest.
  2224. * It is now possible in <exec> to resolve the executable to a project
  2225. basedir or execution dir relative executable. The resolveExecutable
  2226. must be used to pick up such executables.
  2227. * splash screen wouldn't disappear when build was finished.
  2228. * <exec> output and error streams can now be redirected independently
  2229. to either a property or a file (or both)
  2230. * TarEntry's File-arg constructor would fail with a
  2231. StringIndexOutOfBoundsException on all OSes where os.name is shorter
  2232. than seven characters. Bugzilla Report 18105.
  2233. * <copy> and <move>'s failonerror didn't apply to filesets pointing to
  2234. non-existant directories. Bugzilla Report 18414.
  2235. * The <stripjavacomments> filter sometimes removed parts of string
  2236. constants. Bugzilla Report 17441.
  2237. * <antlr> will now recompile your grammar if the supergrammar has
  2238. changed. Bugzilla Report 12691.
  2239. * <property env> will now work on Unices with /bin/env instead of
  2240. /usr/bin/env. Bugzilla Report 17642.
  2241. * <jar index="on"> could include multiple index lists. Bugzilla 10262.
  2242. * The index created by <jar> didn't conform to the spec as it didn't
  2243. include the top-level entries. Bugzilla Report 16972.
  2244. * <tar> and <zip> didn't honor the defaultexcludes attribute for the
  2245. implicit fileset. Bugzilla Report 18637.
  2246. * The <replacetokens> filter would throw an exception if the token's
  2247. value was an empty string. Bugzilla Report 18625.
  2248. * Perforce tasks relying on output from the server such as <p4change>
  2249. and <p4label> were hanging. Bugzilla Reports 18129 and 18956.
  2250. * Improve exception and logging behavior of Perforce tasks.
  2251. Bugzilla report 18154.
  2252. * build.sh install had a problem on cygwin (with REALANTHOME).
  2253. Bugzilla Report 17257
  2254. * <replaceregexp> didn't work for multi-byte encodings if byline was false.
  2255. Bugzilla Report 19187.
  2256. * <replaceregexp> was altering unnecessarily the timestamp of the directories
  2257. containing the files to process
  2258. Bugzilla Report 22541.
  2259. * file names that include spaces need to be quoted inside the @argfile
  2260. argument using forked <javac> and (all JDKS). Bugzilla Report 10499.
  2261. NB : a first correction was only introducing quotes for JDK 1.4
  2262. It has been changed to quote for all external compilers when paths
  2263. contain spaces.
  2264. Also the backslashes need to be converted to forward slashes
  2265. Bugzilla Report 17683.
  2266. * Setting filesonly to true in <zip> and related tasks would cause the
  2267. archives to be always recreated. Bugzilla Report 19449.
  2268. * file names that include spaces need to be quoted inside the @argfile
  2269. argument using <javadoc> and JDK 1.4. Bugzilla Report 16871.
  2270. * <junit> didn't work with custom formatters that were only available
  2271. on the user specified classpath when a timeout occurred. Bugzilla
  2272. Report 19953.
  2273. * <different> selector : make ignoreFileTimes effectively default to true
  2274. and fix a bug in the comparison of timestamps. Bugzilla Report 20205.
  2275. * <different> selector can now be nested directly under a fileset
  2276. Bugzilla Report 20220.
  2277. * <cvstagdiff> had a problem with "dd-MM-yy hh:mm:ss" formats
  2278. Bugzilla Report 15995.
  2279. * <cvstagdiff> cvsroot and package attributes added to the root
  2280. element tagdiff of the xml output
  2281. Bugzilla Report 16081.
  2282. * <cvstagdiff> had a problem with aliased modules and with requests for
  2283. multiple modules. Bugzilla Reports 21373 and 22877.
  2284. * <cvstagdiff> could not parse properly the revision number of new files with
  2285. CVS 1.11.9 or higher. Bugzilla Report 24406.
  2286. * <fixcrlf> make fixcrlf create its temporary files in the default directory
  2287. of FileUtils#createTempFile instead of the destination dir of fixcrlf.
  2288. Bugzilla Report 20870.
  2289. * <ejbjar> implementation for Borland.
  2290. Prevent the task from being blocked by error messages coming from java2iiop.
  2291. Bugzilla Report 19385.
  2292. * <unzip>'s and <untar>'s nested patternsets didn't work as documented
  2293. when the pattern ended in a slash or backslash. Bugzilla Report 20969.
  2294. * <fixcrlf> will now create the parent directories for the destination
  2295. files if necessary. Bugzilla Report 20840.
  2296. * <xmlproperty> now handles CDATA sections. BugZilla Report 17195
  2297. * <translate> now translate tokens that are placed close together.
  2298. Bugzilla Report 17297
  2299. * Nested websphere element for ejbjar does not support spaces in file name.
  2300. Bugzilla Report 21298
  2301. * Don't multiply Class-Path attributes when updating jars. Bugzilla
  2302. Report 21170.
  2303. * Do not overwrite the value (increment) attribute of PropertyFile nested
  2304. Entry element. Bugzilla Report 21505.
  2305. * Prevent sysproperties with no key or no value from being added in <junit>.
  2306. Bugzilla Report 21684.
  2307. * Allow references to be properly inherited via antcall
  2308. Bugzilla Report 21724.
  2309. * ftp chmod failed when the remote system was UNIX and local system Windows
  2310. Bugzilla Report 21865.
  2311. * ftp put with chmod failed when the remote system was UNIX and local system
  2312. Windows. Bugzilla Report 23143.
  2313. * ftp did not set the ascii mode explicity, causing problems with ftp servers
  2314. having binary as default
  2315. * ftp was not able to download files when they were pointed to by symbolic
  2316. links. Bugzilla Report 14063.
  2317. * ftp is able to download also directories pointed to by symbolic links.
  2318. * replace would change \r\n into \r\r\n under Windows.
  2319. * junitreport with frames did not display a link for classes without a package
  2320. or in the top package.
  2321. Bugzilla Report 21915.
  2322. * Project.toBoolean(String) now handles null as argument and does not throw a
  2323. NullPointerException any more.
  2324. * The socket condition will now close the socket created to test.
  2325. Bugzilla Report 23040.
  2326. * <junit includeantruntime="true" fork="true"> replaced the CLASSPATH instead
  2327. of adding to it. Bugzilla Report 14971.
  2328. * <splash> could fail on JVMs that use null to indicate the system classloader.
  2329. Bugzilla Report 23320.
  2330. * <xmlcatalog>s only worked when defined inside of tasks. Bugzilla
  2331. Report 20965.
  2332. * <csc> and siblings (<vbc> <jsharpc>) handle large filesets by
  2333. automatic use of response files. Bugzilla report #19630
  2334. Other changes:
  2335. --------------
  2336. * Shipped XML parser is now Xerces 2.6.0
  2337. * All tasks can be used outside of <target>s. Note that some tasks
  2338. will not work at all outside of targets as they would cause infinite
  2339. loops (<antcall> as well as <ant> and <subant> if they invoke the
  2340. current build file).
  2341. * Six new Clearcase tasks added.
  2342. * A new filter reader namely tokenfilter has been added. Bugzilla
  2343. Report 18312.
  2344. * A new attribute named skip is added to the TailFilter and
  2345. HeadFilter filter readers.
  2346. * The filesetmanifest attribute of <jar> has been reenabled.
  2347. * The start and end tokens for <translate> may now be longer than a
  2348. single character.
  2349. * <setproxy> lets you set the username and password for proxies that
  2350. want authentication
  2351. * <loadproperties> has a new encoding attribute.
  2352. * <echoproperties> can now create XML output.
  2353. * <echoproperties> has a new srcfile attribute that can make it read
  2354. properties files and output them instead of Ant's properties.
  2355. * <filterset> will now resolve filters recursively.
  2356. * <input> has a new attribute that allows you to specify a default value.
  2357. * Added <image> task (requires JAI).
  2358. * <image> task has now proportions attribute in the <scale/> nested element
  2359. instead of keepproportions (bringing in more functionality)
  2360. * New condition <isreference>
  2361. * <ftp> now has a preservelastmodified attribute to preserve the
  2362. timestamp of a downloaded file.
  2363. * new rmdir action for <ftp> that removes directories from a fileset.
  2364. * <ftp> has attributes timediffauto and timediffmillis to use together
  2365. with the newer attribute to tell ant to take into account a time difference
  2366. between client and remote side.
  2367. Bugzilla Report 19358.
  2368. * <ftp> has been optimized to go directly to the include patterns.
  2369. This reduces scanning time under UNIX when followsymlinks="true"
  2370. and casesensitive="true" (the default)
  2371. Bugzilla Report 20103.
  2372. * The SOS and VSS tasks will no longer unconditionally prepend a $ to
  2373. vsspath or projectpath.
  2374. * OS/400 now gets detected by the os condition.
  2375. * <arg> has a new attribute pathref that can be used to reference
  2376. previously defined paths.
  2377. * <xmlproperty> has been improved, you can now expand ${properties},
  2378. define ids or paths and use Ant's location magic for filename resolutions
  2379. in the XML file.
  2380. * <xmlcatalog> will now support external catalogs according to the
  2381. OASIS "Open Catalog" standard - if resolver.jar (newer than version
  2382. 1.0) from Apache's xml-commons is in your CLASSPATH.
  2383. * Starteam tasks now have support for revision labels and build labels.
  2384. Checkouts now have the option of using repository timestamps, instead
  2385. of current.
  2386. * new task <symlink> that creates and maintains symbolic links.
  2387. * new tasks <chown> and <chgrp> which are wrappers of the Unix commands.
  2388. * new task <attrib> to change file attributes on Windows systems.
  2389. * <style> has a new attribute reloadstylesheet to work around a
  2390. bug in widespread Xalan versions.
  2391. * <tarfileset> has a new dirmode attribute to specify the permissions
  2392. for directories.
  2393. * <fixcrlf>'s eol attribute now also understands "mac", "unix" and "dos".
  2394. * <classfileset> now picks up dependencies of the form MyClass.class. This
  2395. works for the code generated by the Sun java compiler. It may not work for
  2396. all compilers.
  2397. * a new attribute "globalopts" can be added to all Perforce tasks.
  2398. You can put in it all the strings described by p4 help usage. Refer to
  2399. the docs for more information.
  2400. * new Perforce tasks <p4integrate> , <p4resolve>, and <p4labelsync>
  2401. * <p4submit> will change the property p4.change if the Perforce server
  2402. renumbers the change list.
  2403. It will set the property p4.needsresolve if the submit fails,
  2404. and the message says that file(s) need to be resolved.
  2405. * <replaceregexp> now has an optional encoding attribute to support
  2406. replacing in files that are in a different encoding than the
  2407. platform's default.
  2408. * The <exec> task may now have its input redirected from either a file
  2409. or a string from the build file. The error output can be separated
  2410. to a different file when outut is redirected. standard error may be
  2411. logged to the Ant log when redirecting output to a file
  2412. * The <java> task also supports the input redirection and separate
  2413. error streams introduced to the <exec> task. In addition, it is now
  2414. possible to save the output into a property for use within the build
  2415. file as was possible with <exec> in Ant 1.5
  2416. * The <javadoc> task <tag> subelement has been enhanced to allow files
  2417. with tag mappings to be used.
  2418. * New tasks: <scp> supports file transfers, <sshexec> executes a
  2419. command over SSH. They require jsch, a BSD licensed SSH library that
  2420. can be found at http://www.jcraft.com/jsch/index.html
  2421. * New filterreader <escapeunicode/>.
  2422. * Support for HP's NonStop Kernel (Tandem) OS has been added.
  2423. * <cab>'s basedir attribute is now optional if you specify nested
  2424. filesets. Bugzilla Report 18046.
  2425. * New task <sync> that synchronizes two directory trees.
  2426. * <apply> has new forwardslash attribute that can force filenames to
  2427. use forward slashes (/) as file separators even on platforms with a
  2428. different separator. This is useful if you want to run certain
  2429. ported Unix tools.
  2430. * Copy has a new outputencoding attribute that can be used to change
  2431. the encoding while copying files. Bugzilla Report 18217.
  2432. * The xml formatter for JUnit will now honor test case names set with
  2433. setName. Bugzilla Report 17040.
  2434. * JUnit now has an attribute reloading, which, when set to false,
  2435. makes the task reuse the same class loader for a series of tests.
  2436. * <concat> now supports filtering and can check timestamps before
  2437. overriding a file. Bugzilla Report 18166.
  2438. * <junit> has a new attribute tempdir that controls the placement of
  2439. temporary files. Bugzilla Report 15454.
  2440. * <jdepend> now supports a new nested element <classespath> which is
  2441. the same as <sourcespath> but point to compiled classes (the
  2442. prefered mode of operation for JDepend > 2.5). Additionally, nested
  2443. <exclude> elements can be used to exclude certain packages from
  2444. being parsed. Bugzilla Report 17134.
  2445. * The JProbe tasks now also work with JProbe 4.x. Bugzilla Report 14849.
  2446. * <javacc> and <jjtree> will now autodetect JavaCC 3.x and can use it.
  2447. * <sql> has a new attribute to control escape processing.
  2448. * <sql> is able to display properly several resultsets if you are
  2449. running a compound sql statement. Bugzilla Report 21594.
  2450. * A new <containsregexp> selector has been added, that selects files
  2451. if their content matches a certain regular expression.
  2452. * <antlr>'s debug attribute has been enabled. Bugzilla Report 19051.
  2453. * <mail> has a new attribute charset. Bugzilla Report 15434.
  2454. * <mail> has new attributes user and password for SMTP auth.
  2455. maillogger can also use this.
  2456. The implementation only works with JavaMail (encoding="MIME").
  2457. Implementation with plain mail remains to do.
  2458. Bugzilla Report 5969.
  2459. * <mail> and mailloger support SMTP over TLS/SSL
  2460. Bugzilla Report 19180.
  2461. * <mail> the attributes from, replyto ,tolist, cclist, bcclist
  2462. can now contain email addresses of the form name <address@xyz.com>
  2463. or (name) address@xyz.com
  2464. Bugzilla Report 22474.
  2465. * <mail> (version PlainMail)
  2466. prevent blank headers from being sent,
  2467. make the order of the headers of plain mail messages predictable
  2468. Bugzilla Report 22088.
  2469. * <zipfileset> can now be defined in the main body of a project
  2470. and referred to with refid="xyz". Bugzilla Report 17007.
  2471. * A wrapper script for OS/2 has been added.
  2472. * <unzip> will now detect and successfully extract self-extracting
  2473. archives. Bugzilla Report 16213.
  2474. * <stcheckout> has a new attribute "converteol" that can be used to
  2475. control the automatic line-end conversion performed on ASCII files.
  2476. Bugzilla Report 18884.
  2477. * Users can now modify the list of default excludes using the new
  2478. defaultexcludes task. Bugzilla Report 12700.
  2479. * There is a new data type <propertyset> that can be used to collect
  2480. properties. It is supported by <ant>, <antcall>, <subant>, <java>,
  2481. <echoproperties> and <junit>.
  2482. * <concat> can now control the encoding of the output as well and optionally
  2483. add new-line characters at the end of files that get concatenated but
  2484. don't end in newlines. Bugzilla Report 12511.
  2485. * <rpm> will detect the rpmbuild executable of RedHat 8.0 and newer
  2486. and use that if it is on your PATH. Bugzilla Report 14650.
  2487. * A new task <rexec> has been added that requires commons-net to work.
  2488. Bugzilla Report 19541.
  2489. * <javadoc> now supports a nested <arg> element in addition to the
  2490. additionalparams attribute.
  2491. * You can now determine the order of standard tags in <javadoc> via
  2492. <tag> elements - you must not use the description attribute for them.
  2493. Bugzilla Report 18912.
  2494. * <javadoc> now supports the -noqualifier switch. Bugzilla Report 19288.
  2495. * <javac>'s executable attribute can now also be used to specify the
  2496. executable for jikes, jvc, sj or gcj. Bugzilla Report 13814.
  2497. * <javac> has a new attribute tempdir that can control the placement
  2498. of temporary files. Bugzilla Report 19765.
  2499. * A new magic property build.compiler.jvc.extensions has been added
  2500. that can be used to turn of Microsoft extensions while using the jvc
  2501. compiler. Bugzilla Report 19826.
  2502. * You can now limit the parallelism of <apply> and <chmod> by using the new
  2503. maxparallel attribute.
  2504. * With the new addsourcefile attribute, you can make <apply> ommit the
  2505. source file names from the command line. Bugzilla Report 13654.
  2506. * <apply> and <chmod> now support nested <filelist>s as well as <dirset>s.
  2507. Bugzilla Reports 15929 and 20687.
  2508. * <apply> and <chmod> will display a summary if you set the new
  2509. verbose attribute to true. Bugzilla Report 19883.
  2510. * <copy>/<move>'s failonerror attribute can now also be used to
  2511. continue the build if an I/O error caused a problem. Bugzilla
  2512. Report 12999.
  2513. * new selector <type/> allowing to select only files or only directories.
  2514. Bugzilla Report 20222.
  2515. * <java> and <junit> now support a nested <bootclasspath> element that
  2516. will be ignored if not forking a new VM.
  2517. * <junit>'s nested <formatter> elements now support if/unless clauses.
  2518. * <ejbjar>
  2519. cmpversion attribute added
  2520. jboss element will look for jbosscmp-jdbc.xml descriptor
  2521. if ejbjar has cmpversion="2.0" set
  2522. Bugzilla Reports 14707 and 14709.
  2523. * <pvcs> config attribute added to set the location of a specific PVCS
  2524. .cfg file
  2525. Bugzilla Report 9752
  2526. * <mapper> has an "unpackage" mapper
  2527. Bugzilla Report 18908
  2528. * Added <scriptdef> task allowing tasks to be defined using any BSF-supported
  2529. scripting language.
  2530. * <touch>'s datetime attribute can now accept time with a granularity
  2531. of seconds as well. Bugzilla Report 21014.
  2532. * <checksum> has two new properties: totalproperty and todir.
  2533. * FileUtils#createTempFile will now create temporary files in the
  2534. directory pointed to by the property java.io.tmpdir
  2535. * <unzip> and friends now supports an optional encoding attribute to
  2536. enable it to expand archives created with filenames using an encoding
  2537. other than UTF8. Bugzilla Report 10504.
  2538. * <patch> has a new attribute destfile that can be used to create a new
  2539. file instead of patching files in place.
  2540. * OpenVMS is detected as a valid OS family.
  2541. * DirectoryScanner has been optimized for cases where include patterns do not
  2542. start with wildcards. Bugzilla Report 20103.
  2543. * DirectoryScanner begins to be optimized not to scan excluded directories.
  2544. Bugzilla Report 21941.
  2545. * Added keep-going feature. Bugzilla Report 21144
  2546. * The archives generated by <zip> and friends will now contain CRC and
  2547. size information in the "local file header", thereby providing this
  2548. information to applications that read the archives using
  2549. java.util.ZipInputStream. Bugzilla Report 19195.
  2550. * <copy> and <move> can now handle mappers that return multiple
  2551. mappings per source path. This behaviour is enabled by using
  2552. an enablemultiplemapping attribute. Bugzilla Report 21320.
  2553. * <exec> will now work on OpenVMS (please read the notes in
  2554. <exec>'s manual page). Bugzilla Report 21877.
  2555. * <exec> will now have a new attribute spawn (default false).
  2556. If set to true, the process will be spawned. Bugzilla Report 5907.
  2557. * <java> will now have a new attribute spawn (default false).
  2558. If set to true, the process will be spawned. Bugzilla Report 5907.
  2559. * <parallel> now supports a timeout which can be used to recover
  2560. from deadlocks, etc in the parallel threads. <parallel> also
  2561. now supports a <daemons> nested element. This can be used to
  2562. run tasks in daemon threads which the parallel task will not
  2563. wait for before completing. A new attribute failonany will cause
  2564. <parallel> to throw an exception if any thread fails without
  2565. waiting for all other threads to complete.
  2566. * <zip> and friends will consume far less memory than they used to
  2567. when run with compress="false". Bugzilla Report 21899.
  2568. * <if/> and <unless/> attributes added to <param/> element of <style>
  2569. Bugzilla Report 22044
  2570. * <zip> and friends have a new attribute "keepcompression" that can be
  2571. used to incrementally build an archive mixing compressed and uncompressed
  2572. entries.
  2573. * <junit>'s XML formatter adds a new classname attribute to the <testcase>
  2574. elements.
  2575. * new <permissions> type add permission handling to the code
  2576. this type can be nested in the <java> and <junit> tasks.
  2577. Bugzilla Report 22533.
  2578. * additional shortcuts for ant options (-d --> -debug, -e --> -emacs,
  2579. -h --> -help, -p --> -projecthelp, -s --> -find).
  2580. * new selector <modified>. "cache" was renamed to "modified".
  2581. Bugzilla Report 20474.
  2582. * <stcheckout> and <stlist> have a new asofdate attribute that can be
  2583. used to checkout/list files based on a date instead of a label.
  2584. Bugzilla Report 20578.
  2585. * New filter <concatfilter>. Adds the content of file at the beginning
  2586. or end of a file. Discussion started at
  2587. http://marc.theaimsgroup.com/?l=ant-user&m=106366791228585&w=2
  2588. * New task <import>
  2589. * New task <macrodef>
  2590. * New task <presetdef>
  2591. * Ant libraries that can make use of namespaces to avoid name
  2592. clashes of custom tasks
  2593. * <java> and <junit> now support <assertions>, which let you enable
  2594. and disable Java1.4 assertions on a package or class basis. These
  2595. only work when fork=true, currently.
  2596. * .NET tasks expanded with VB support <vbc> and J#, via <jsharp>,
  2597. <importtypelib> and <ilasm>. <csc> supports nested <src> types,
  2598. <defines> for (potentially conditional) definitions, <reference>
  2599. filesets for references. The executable attribute lets you switch to
  2600. mono or other implementations -<csc> has been tested with Mono on
  2601. Linux and OSX.
  2602. Changes from Ant 1.5.3 to Ant 1.5.4
  2603. ===================================
  2604. Changes that could break older environments:
  2605. --------------------------------------------
  2606. * If the Visual Age tasks used to work for you, they may stop doing so
  2607. now - and we'd like to know about it. The current set of tasks is
  2608. supposed to work with any version of VAJ starting with 3.0.
  2609. Fixed bugs:
  2610. -----------
  2611. * The Visual Age for Java tasks didn't work (at least for versions 3.0
  2612. and higher). Bugzilla Report 10016.
  2613. * URL-encoding in <vaj*port> didn't work properly.
  2614. * VAJRemoteUtil called getAbsolutePath instead of getPath
  2615. causing problems when using a Windows VAJ server from a UNIX server.
  2616. Bugzilla Report 20457.
  2617. * VAJImport task failed with NullPointerException when using DirectoryScanner.
  2618. Bugzilla Report 22080.
  2619. Other changes:
  2620. --------------
  2621. * Shipped XML parser is now Xerces 2.5.0
  2622. * <javah> will invoke oldjavah on JDK 1.4.2. Bugzilla Report 18667.
  2623. * The VAJ tasks now support a haltonfailure attribute to conditionally
  2624. keep building even if they fail.
  2625. * It is now possible to use the latest (versioned or unversioned) edition
  2626. in <vajload> by using special wildcard characters. Also fixes
  2627. Bugzilla Report 2236.
  2628. Changes from Ant 1.5.2 to Ant 1.5.3
  2629. ===================================
  2630. Changes that could break older environments:
  2631. --------------------------------------------
  2632. * The <zip> task and friends have again changed a method signature
  2633. (sorry, was necessary to fix bug 17780). The return type of
  2634. getResourcesToAdd has changed.
  2635. Fixed bugs:
  2636. -----------
  2637. * <zipfileset>'s filemode would get ignored and the dirmode was used
  2638. for the included files as well. As a side effect, WinZIP was unable
  2639. to extract or display the files, so they seemed to be missing from
  2640. the archive. Bugzilla Report 17648.
  2641. * <ftp> could use the wrong path separator when trying to change the
  2642. remote working directory. Bugzilla Report 17735.
  2643. * <jar update="true"> would loose all original files if you didn't
  2644. specify any nested <(zip)fileset>s and the manifest had changed.
  2645. Bugzilla Report 17780.
  2646. * If you used a value starting with \ on Windows for the appxml
  2647. attribute of <ear> or the webxml attribute of <war>, it would be
  2648. ignored. Bugzilla Report 17871.
  2649. * Ant will no longer implicitly add Sun's rt.jar in <javac> when you
  2650. use jvc and don't specify a bootclasspath. Bugzilla Report 18055.
  2651. * The prefix attribute of <zipfileset> would not generate directory
  2652. entries for the prefix itself. Bugzilla Report 18403.
  2653. * starteam checkout can now handle deleted labels. Bugzilla Report 17646.
  2654. * The Unix wrapper script failed if you invoked it as a relative
  2655. symlink and ANT_HOME has not been set. Bugzilla Report 17721.
  2656. Other Changes:
  2657. --------------
  2658. * Added ability to specify manifest encoding for the <jar> and
  2659. <manifest> tasks
  2660. Changes from Ant 1.5.1 to Ant 1.5.2
  2661. =============================================
  2662. Changes that could break older environments:
  2663. --------------------------------------------
  2664. * ANT_OPTS environment variable is now applied at the start of the
  2665. Java command line, allowing position specific parameters of some
  2666. JVMs, such as -classic to be specified.
  2667. * ZipScanner#getIncludedFiles will now return the names of the ZipEntries
  2668. that have been matched instead of the name of the archive.
  2669. * The <zip> task and friends have been heavily modified, almost every
  2670. method signature of the Zip class has changed. If you have subclassed
  2671. Zip (or one of its subclasses), your class will most likely not
  2672. compile against the current code base. If it still compiles, it will
  2673. probably not work as in Ant 1.5.1.
  2674. Fixed bugs:
  2675. -----------
  2676. * <translate> was not ignoring comment lines.
  2677. * <manifest> wouldn't update an existing manifest if only an attribute
  2678. of an existing section changed.
  2679. * ant.bat now supports the ANT_ARGS and JAVACMD environment variables
  2680. again (like Ant 1.5 did).
  2681. * The "plain" <junit> <formatter> could throw a NullPointerException
  2682. if an error occurred in setUp.
  2683. * <junit> will now produce output when a test times out as well.
  2684. * <replace> would count some internal character replacements when
  2685. reporting the number of replaced tokens.
  2686. * <concat> would cause an exception if a <filelist> pointed to files
  2687. that do not exist.
  2688. * <javadoc> will now pass -source to custom doclets as well.
  2689. * <cvstagdiff> would throw a NullPointException if there had been no
  2690. differences.
  2691. * <cvschangelog> could miss today's changes.
  2692. * <concat> could append newline characters between concatenated files.
  2693. * <xmlvalidate> ignored the specified encoding of the files to
  2694. validate.
  2695. * the errorsbeginat attribute of the <http> condition didn't work.
  2696. * Ant will try to force loading of certain packages like com.sun.*
  2697. from the system classloader. The packages are determined by the
  2698. version of the JVM running Ant.
  2699. * Ant didn't find the runtime libraries on IBM's JDK 1.4 for Linux.
  2700. * random component of temporary files is now always a positive integer.
  2701. * Ant could incorrectly try to use the 1.4 regexp implementation even
  2702. if it isn't available if you run the JVM with -Xverify:none.
  2703. * Ant would die with an exception if you used nested <reference>
  2704. elements in Ant and the refid attribute didn't point to an existing
  2705. project reference.
  2706. * The <get> task can now be compiled (and Ant thus bootstrapped) using
  2707. Kaffee.
  2708. * build.sysclasspath will now be honored by more tasks.
  2709. * The signjar keystore attribute has been reverted to a String allowing
  2710. it to once again accept URLs. This should not affect current File based usage
  2711. unless you are extending the Signjar task.
  2712. * <jar update="true"> would remove the original manifest.
  2713. * fix up folder creation in PVCS task
  2714. * <tar>'s up-to-date check didn't work for nested <(tar)fileset>s.
  2715. * Corrected a problem in XMLLogger where it would not associated
  2716. messages with a taskdef'd task
  2717. * <uptodate> now works when using attributes (i.e. not filesets) and pointing
  2718. to the same file
  2719. * Java task (and output system) now stores output which doos not end
  2720. with a line feed.
  2721. * splash screen wouldn't disappear when build was finished.
  2722. * <exec> now supports OS/2.
  2723. * <zip> and friends would only update/recreate existing archives if
  2724. the files to add/update have been newer than the archive.
  2725. * <javadoc>'s <link> element could fail for offline="true" on some JDKs.
  2726. Other changes:
  2727. --------------
  2728. * MailLogger now sets the Date header correctly.
  2729. * Shipped XML parser is now Xerces 2.3.0
  2730. * signjar now accepts a maxmemory attribute to allow the memory allocated to the
  2731. jarsigner tool to be specified. The jarsigner from the JDK's JAVA_HOME bin
  2732. dir is now used rather than the first jarsigner on the path.
  2733. * **/.DS_Store has been added to the list of default pattern excludes.
  2734. * The Created-By header in the default manifest now contains the JVM
  2735. vendor and version according to the jar specification. A new header,
  2736. Ant-Version provides the Ant version used to create the jar.
  2737. * <zip> can now store Unix permissions in a way that can be
  2738. reconstructed by Info-Zip's unzip command.
  2739. Changes from Ant 1.5.1Beta1 to 1.5.1
  2740. ====================================
  2741. Fixed bugs:
  2742. -----------
  2743. * <tstamp>'s prefix attribute failed to apply to nested <format> elements.
  2744. * <junitreport> created an empty junit-noframes.html if no format had
  2745. been specified.
  2746. * <basename> would remove more than it should if the file name
  2747. contained more than one dot.
  2748. * <filterset>s nested into <filterset>s didn't work.
  2749. Other changes:
  2750. --------------
  2751. * Shipped XML parser is now Xerces 2.2.0
  2752. * Filesets now support a 'file' attribute, allowing a single-file
  2753. fileset to be constructed without having to specify its parent
  2754. directory separately.
  2755. * <junit> will now return the result of a call to getName instead of
  2756. "unknown" for Test implementations that don't extend TestCase but have
  2757. a public String getName() method.
  2758. Changes from Ant 1.5 to 1.5.1Beta1
  2759. ==================================
  2760. Fixed bugs:
  2761. -----------
  2762. * Date/time in CvsChangeLog was in local timezone and 12 hour format leading
  2763. to a problem when sorting by time. It is now UTC (GMT) and in 24-hour
  2764. format as per cvs 'specifications'.
  2765. * CvsTagDiff now supports ampersand modules or modules that have a different
  2766. root directory than their name.
  2767. * EjbJar threw NPEs for the Websphere element. The property 'websphere.home'
  2768. was not documented.
  2769. * Mail example in the documentation was not correct.
  2770. * Checksum was broken in the following scenario:
  2771. (using verifyproperty OR in a condition) AND using filesets
  2772. with multiple files.
  2773. * The ExpandProperties filter threw NPEs when defined using
  2774. the <filterreader> format.
  2775. * The sh wrapper script didn't work under Cygwin if ANT_HOME wasn't
  2776. set with a Unix style filename.
  2777. * The sh wrapper script could fail if you started Ant from a directory
  2778. with whitespace in its name.
  2779. * ant -diagnostics was not working properly when the task dependency
  2780. was missing and was just printing the missing dependency.
  2781. * If a task got redefined via <taskdef>, it lost its child elements.
  2782. * <property>'s classpathref attribute was broken.
  2783. * <arg line="''" /> would result in no command line argument, will now
  2784. be a single empty argument. Use <arg value="''"/> if you need the
  2785. quotes literally.
  2786. * <replaceregexp> could append a newline character at the end of the
  2787. file.
  2788. Other changes:
  2789. --------------
  2790. * Appendix E of Java Development with Ant (Loughran/Hatcher) was
  2791. contributed to the docs.
  2792. * <available> will only print deprecration warnings if it is actually
  2793. used to change the value of a property.
  2794. Changes from Ant 1.5beta3 to Ant 1.5
  2795. ====================================
  2796. Changes that could break older environments:
  2797. --------------------------------------------
  2798. * The filesetmanifest attribute added to <jar> after the 1.4.1
  2799. release has been removed for now. This change may affect only
  2800. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  2801. feature back into Ant 1.6.
  2802. Fixed bugs:
  2803. -----------
  2804. * <zip> and friends would always update existing archive if you set
  2805. the update attribute to true.
  2806. * To support backward compatibility with older versions, <pathconvert>
  2807. will once again set the property, even if the result is the empty
  2808. string, unless the new 'setonempty' attribute is set to false|no|off
  2809. (default is "true").
  2810. * The manifest task would crash XmlLogger
  2811. Other changes:
  2812. --------------
  2813. * added **/.svn and **/.svn/** to the default excludes
  2814. Changes from Ant 1.5beta2 to Ant 1.5beta3
  2815. =========================================
  2816. Changes that could break older environments:
  2817. --------------------------------------------
  2818. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  2819. Now it is different from 1.5beta1 and 1.5beta2.
  2820. * <pathconvert> won't set the property if the result is the empty string.
  2821. Fixed bugs:
  2822. -----------
  2823. * <available> could fail to find files or directories that happen to
  2824. start with the name of the project's basedir but are not children of
  2825. the basedir.
  2826. * Nested <property>'s inside <ant> can now be overriden by subsequent
  2827. <ant> and <antcall> tasks.
  2828. * <xslt>'s outputtype attribute wouldn't do anything.
  2829. * <linecontains> filterreader could swallow lines.
  2830. * <sequential> used to configure the tasks (set their attributes)
  2831. before the first task has been executed. This means that properties
  2832. that have been set by nested task seemed to be unset for the other
  2833. tasks in the same <sequential> element.
  2834. * <javac>'s sourcepath setting has been ignored by some compiler
  2835. implementations.
  2836. * <javadoc>'s packagelist attribute didn't work.
  2837. * the plain mailer would always use port 25 in <mail>.
  2838. * Ant's default logger could swallow empty lines.
  2839. * ejbjar's iPlanet nested element now can process multiple descriptors.
  2840. * IPlanetEjbc was looking in the wrong place for four iiop files.
  2841. * <javac> would pass the -source switch to JDK 1.3's javac, even
  2842. though it doesn't support it.
  2843. Other changes:
  2844. --------------
  2845. * <checksum> now uses a buffer (of configurable size).
  2846. * The "Trying to override task definition" warning has been degraded
  2847. to verbose level if the two task definitions only differ in the class
  2848. loader instance that has loaded the definition.
  2849. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  2850. arguments to be provided to the VM runnign ejbc. Document the
  2851. jvmdebuglevel attribute which can be used to avoid warnings about
  2852. interface classess being found on the classpath. Document the new
  2853. <sysproperty> element which allows JVM properties to be defined.
  2854. Added an outputdir attribute to allow the destination to be a
  2855. directory into which the exploded jar is written.
  2856. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  2857. Changes from Ant 1.5beta1 to Ant 1.5beta2
  2858. =========================================
  2859. Changes that could break older environments:
  2860. --------------------------------------------
  2861. * Properties will now be expanded in mail message bodies. This means
  2862. that one $ sign will be stripped if your mail message contains the text $$.
  2863. * org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.
  2864. * Available#setFile now again uses a File argument as it did in 1.4,
  2865. this may break environments that have been adapted to the String
  2866. argument version present in 1.5beta1.
  2867. Fixed bugs:
  2868. -----------
  2869. * When <move> attempts a rename, it deletes the destination file, if it
  2870. exists, before renaming the source file. However, <move> was not
  2871. checking if the destination file was actually a directory before
  2872. trying to delete it.
  2873. * Make CVS Tasks to work under Cygwin.
  2874. * Fix LineContains to handle huge files elegantly without causing
  2875. Stack Overflows.
  2876. * if you ask for the "classic" compiler on Java1.4, you get upgraded to
  2877. "modern" because there is no classic compiler any more.
  2878. * the <http> condition was viewing 404 'not found' exceptions as success. Now
  2879. it defaults to viewing any response >=400 as an error, and has an
  2880. errorsBeginAt attribute you can use if you want a higher or lower value.
  2881. * <get> throws a build exception on an http authorization error, unless you
  2882. have set ignoreerrors to true.
  2883. * <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lower
  2884. case, though the old spelling is retained for anyone who used it.
  2885. * Merging of Manifests in jar now works as documented.
  2886. * paths that have been separated by colons would be incorrectly parsed
  2887. on NetWare.
  2888. * runant.pl now supports NetWare.
  2889. * <tempfile> and <setproxy> tasks were in beta1, but not defined by
  2890. default; They now are. <tempfile> fills a property with the name of a
  2891. temporary file; <setproxy> lets you set the JVM's http, ftp and socks proxy
  2892. settings.
  2893. * <available classname="foo" ignoresystemclasses="true"> failed for
  2894. JDK 1.1 and 1.2, even if the class could be found on the
  2895. user-specified classpath.
  2896. * <property environment=... /> now works on z/OS.
  2897. * forked <javac> failed for the wrong reason on JDK 1.1 - Ant would
  2898. use a temporary file to hold the names of the files to compile under
  2899. some conditons, but 1.1 doesn't support this feature. Ant will no
  2900. longer try this, but you may run into problems with the length of the
  2901. command line now.
  2902. * the refid attribute for <property>s nested into <ant> or <param>s
  2903. nested into <antcall> didn't work.
  2904. * <replaceregexp> didn't work for nested <fileset>s.
  2905. * <javadoc> dropped sourcepath entries if no "interesting" .java
  2906. source files could be found below them. This has been backwards
  2907. incompatible and caused problems with custom doclets like xdoclet.
  2908. * Using the doclet, docletpath or docletpathref attributes of
  2909. <javadoc> may have caused NullPointerExceptions.
  2910. * nested <filesets> of <javadoc> would include too much.
  2911. * <dependset> will no longer choke on <targetfileset>s that point to
  2912. non-existing directories.
  2913. * <patch> didn't work at all.
  2914. * <replace> and <replaceregexp> now fail if the file they are working
  2915. on is locked.
  2916. * <javadoc> would pick up the wrong executable in the combination JDK
  2917. 1.2 and AIX.
  2918. Other changes:
  2919. --------------
  2920. * z/OS now gets detected by the os condition.
  2921. * <fileset> and <dirset> now have an optional followsymlink attribute
  2922. that can prevent Ant from following symbolic links on some platforms.
  2923. * BeanShell is now supported in the <script> task.
  2924. * <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans
  2925. based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta
  2926. this ejbc class has been deprecated. To avoid the deprecation warning use
  2927. ejbcclass="weblogic.ejbc".
  2928. * <ejbjar> will add a manifest to the generated jar based on the naming
  2929. convention in use. This overrides the manifest specified in the
  2930. <ejbjar> attribute
  2931. Changes from Ant 1.4.1 to 1.5beta1
  2932. ==================================
  2933. Changes that could break older environments:
  2934. --------------------------------------------
  2935. * Important: Single $ signs are no longer silently stripped!
  2936. Before you panic that we have broken all your build files, we have kept
  2937. the old "$$" -> "$" behaviour. So only build files which accidentally had
  2938. a $ sign in a string that was being silently stripped may break.
  2939. We added this fix to stop newbie confusion; if you want to write a
  2940. build file which works on ant versions 1.4.1 or earlier, stay with
  2941. the double $$ sign rule.
  2942. * Project.getBuildListeners now returns a clone of the listener
  2943. list. Changes to the returned list will not affect the listeners
  2944. currently attached to the Project. It also means that it is safe to
  2945. iterate over the returned list if listeners are added or removed
  2946. during the traversal.
  2947. * <pvcs> default filenameformat has been different from Ant 1.4.1.
  2948. * Some messages that are printed during startup will not be
  2949. written to the logfile specified via -logfile as they might destroy
  2950. the format of the file for special BuildLoggers (like XmlLogger).
  2951. * The filesetmanifest attribute added to <jar> after the 1.4.1
  2952. release has been removed for now. This change may affect only
  2953. the 1.5Beta/1.6Alpha users. An attempt will be made to add this
  2954. feature back into Ant 1.6.
  2955. * Shipped XML parser is now Xerces 2.0.1 along with the XML Parser APIs.
  2956. XML Parser APIs is a separate jar that contains the necessary
  2957. JAXP/DOM/SAX classes.
  2958. * <telnet> was fixed to expand properties inside nested <read> and
  2959. <write> elements; before this only happened when you assigned the text
  2960. to the string attribute. If you had $ signs in the string, they may
  2961. need escaping.
  2962. * the RegexpMatcher interface has been extended to support case
  2963. insensitive matches and other options - custom implementations of
  2964. this interface won't work any longer. We recommend to use the new
  2965. Regexp interface that also supports substitution instead of the
  2966. RegexpMatcher interface in the future.
  2967. * <gzip> will throw an exception if your src attribute points to a directory.
  2968. * Unjar, Unzip and Unwar will throw an exception if the Src attribute
  2969. represents a directory. Support for nested filesets is provided
  2970. instead.
  2971. * It is no longer possible to overwrite a property using tasks like
  2972. <condition>, <exec>, <pathconvert>, or <tstamp>. In some exceptional
  2973. cases it will generate a warning if you attempt to overwrite an
  2974. existing property.
  2975. * Taskwriters please note: Whenever tasks had any overloaded set* methods,
  2976. Ant's introspection mechanism would select the last overloaded method
  2977. provided to it by the Java Runtime. A modification has now been made such
  2978. that when the Java Runtime provides a method with a String as its argument,
  2979. a check is made to see if there is another overloaded method that takes in
  2980. some other type of argument. If there is one such method, then the method
  2981. that takes in String as an argument is not selected by the Introspector.
  2982. * The pattern definition **/._* has been included into the Default
  2983. Excludes list.
  2984. * <propertyfile>'s <entry> element was modified to remove "never" as a value
  2985. as its behavior was undocumented and flakey.
  2986. * The -projecthelp flag now only prints out targets that include the
  2987. 'description' attribute, unless the -verbose or -debug flag is included
  2988. on the Ant command line.
  2989. * Ant's testcases now require JUnit 3.7 or above, as they now use the new
  2990. assertTrue method instead of assert.
  2991. * If the 'output' attribute of <ant> is set to a simple filename or a
  2992. relative path, the file is created relative to ${basedir}, not ${user.dir}.
  2993. * The default value for build.compiler is now javac1.x with x
  2994. depending on the JDK that is running Ant instead of classic/modern.
  2995. Fixed bugs:
  2996. -----------
  2997. * <available> could fail to find files or directories that happen to
  2998. start with the name of the project's basedir but are not children of
  2999. the basedir.
  3000. * Nested <property>'s inside <ant> can now be overriden by subsequent
  3001. <ant> and <antcall> tasks.
  3002. * <xslt>'s outputtype attribute wouldn't do anything.
  3003. * <linecontains> filterreader could swallow lines.
  3004. * <sequential> used to configure the tasks (set their attributes)
  3005. before the first task has been executed. This means that properties
  3006. that have been set by nested task seemed to be unset for the other
  3007. tasks in the same <sequential> element.
  3008. * <javac>'s sourcepath setting has been ignored by some compiler
  3009. implementations.
  3010. * <javadoc>'s packagelist attribute didn't work.
  3011. * the plain mailer would always use port 25 in <mail>.
  3012. * Ant's default logger could swallow empty lines.
  3013. * ejbjar's iPlanet nested element now can process multiple descriptors.
  3014. * IPlanetEjbc was looking in the wrong place for four iiop files.
  3015. * <javac> would pass the -source switch to JDK 1.3's javac, even
  3016. though it doesn't support it.
  3017. * <zip> and friends would always update existing archive if you set
  3018. the update attribute to true.
  3019. * To support backward compatibility with older versions, <pathconvert>
  3020. will once again set the property, even if the result is the empty
  3021. string, unless the new 'setonempty' attribute is set to false|no|off
  3022. (default is "true").
  3023. * The manifest task would crash XmlLogger
  3024. * A bug existed that prevented generated log files from being deleted as
  3025. part of the build process itself. This has now been fixed.
  3026. * Fixed bug where <move> ignored <filterset>s.
  3027. * Ant works properly with the combination of Java1.4/WindowsXP.
  3028. * Fixed bug where <java> used to sometimes invoke class constructors twice.
  3029. * Fixed bug with 4NT shell support.
  3030. * Fixed bug where ant would not perform ftp without remotedir being
  3031. specified even though this was not mandatory.
  3032. * Fixed bug where ant would not copy system properties into new Project
  3033. in ant/antcall tasks when inheritall="false" is set.
  3034. * <propertyfile> would not close the original property file.
  3035. * <ant> will no longer override a subbuild's basedir with inheritall="true".
  3036. * Fixed problem with the built-in <junit> formatters which assumed
  3037. that only one test could be running at the same time - this is not
  3038. necessarily true, see junit.extensions.ActiveTestSuite.
  3039. * <jar>'s whenEmpty attribute is useless as JARs are never empty, they
  3040. contain at least a manifest file, therefore it will now print a
  3041. warning and do nothing.
  3042. * <typedef> hasn't been all that useful as it couldn't be used outside
  3043. of targets (it can now) and nested "unknown" elements have always
  3044. been considered to be tasks (changed as well).
  3045. * <fixcrlf> would fail for files that contained lines longer than 8kB.
  3046. * Some junit formatters incorrectly assumed that all testcases would
  3047. inherit from junit.framework.TestCase.
  3048. * <fixcrlf> dropped the first characters from Mac files.
  3049. Other changes:
  3050. --------------
  3051. * <checksum> now uses a buffer (of configurable size).
  3052. * The "Trying to override task definition" warning has been degraded
  3053. to verbose level if the two task definitions only differ in the class
  3054. loader instance that has loaded the definition.
  3055. * Add a jvmargs to the ejbjar's weblogic element to allow additional
  3056. arguments to be provided to the VM runnign ejbc. Document the
  3057. jvmdebuglevel attribute which can be used to avoid warnings about
  3058. interface classess being found on the classpath. Document the new
  3059. <sysproperty> element which allows JVM properties to be defined.
  3060. Added an outputdir attribute to allow the destination to be a
  3061. directory into which the exploded jar is written.
  3062. * ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5
  3063. * added **/.svn and **/.svn/** to the default excludes.
  3064. * Selector Elements now provide a way to create filesets based on
  3065. sophisticated selection criteria.
  3066. * Gzip and Bzip2 files can now be constructed in the fly when using
  3067. the tar task without having to create the intermediate tar file on
  3068. disk. The Untar task can also untar GZip and BZip2 files on the fly
  3069. without creating the intermediate tar file.
  3070. * New optional type, <classfileset> added.
  3071. * <ejbjar> now allows control over which additional classes and interfaces
  3072. are added to the generated EJB jars. A new attribute "dependency" can be
  3073. defined which controls what classes are added. The addition of classes now
  3074. uses the Jakarta-BCEL library rather than reflection, meaning bean classes are
  3075. no longer loaded into Ant's JVM. The default dependency analyzer is known as
  3076. the ancestor analyzer. It provides the same behaviour as the 1.4.1 version of
  3077. <ejbjar>. If the BCEL library is not present, a warning will be issued stating
  3078. the ancestor analyzer is not available. In this case <ejbjar> will continue
  3079. to function but will not add super classes to the jar.
  3080. * <available> has a new attribute named ignoreSystemClasses.
  3081. * New task <cvschangelog/> generates an XML report of changes that occur
  3082. on CVS repository.
  3083. * New filter readers: ClassConstants, ExpandProperties, HeadFilter,
  3084. LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens,
  3085. StripJavaComments, StripLineBreaks, StripLineComments, TabsToSpaces,
  3086. TailFilter.
  3087. * <copy>, <loadfile>, <loadproperties>, <move> support FilterChains
  3088. of FilterReaders.
  3089. * New task <loadproperties> to load contents of file as Ant properties,
  3090. with nested <filterchain> elements.
  3091. * New task <loadfile> to load a whole file into a property.
  3092. * New task <echoproperties> to list your current properties to the screen
  3093. or a file.
  3094. * New tasks <bzip2> and <bunzip2> to pack and unpack files using the
  3095. BZip2 alogrithm.
  3096. * New tasks <replaceregexp>, <checksum>, <translate>, <waitfor>,
  3097. <manifest>, <vsscp>, <vssadd>, <vsscreate>, <splash>, <basename>, <dirname>,
  3098. <concat>, <sourceoffsite>, <jarlib-available>, <jarlib-display>,
  3099. <jarlib-manifest>, <jarlib-resolve>.
  3100. * A new combined <mail> task, which replaces the old <mail> and
  3101. <mimemail> tasks, has been added. The <mimemail> task, and
  3102. old SendEmail and MimeMail classes have been deprecated.
  3103. * Mail task allows specification of port number.
  3104. * Users can control what <zip> and <jar> must do when duplicate files
  3105. are found. A new element <zipgroupfileset> allows for multiple zip
  3106. files to be merged into the archive. In addition, <jar> also has
  3107. another new attribute: filesetmanifest. The existing manifest
  3108. attribute of <jar> now also accepts the name of a jar added through
  3109. a fileset.
  3110. * gzip now checks that the zipfile is older than the source file
  3111. before rebuilding the zipfile.
  3112. * TarFileset takes in three new attributes - fullpath, prefix
  3113. and preserveLeadingSlashes.
  3114. * <move> attempts to rename the directory, if everything inside it is
  3115. included, before performing file-by-file moves. This attempt will
  3116. be done only if filtering is off and if mappers are not used. This
  3117. is a performance improvement and there is no change otherwise in
  3118. the functionality of this task.
  3119. * Exec task has extra attribute "resultproperty" to get the return code
  3120. into a property.
  3121. * Exec task prints a message when a timed-out process is killed.
  3122. * Added optional attributes - name, arch and version to the <os> task.
  3123. * Unjar, Untar, Unwar and Unzip now support patternsets to
  3124. select files from an archive for extraction. Filesets may be
  3125. used to select archived files for unarchival.
  3126. * Javac task allows debug levels to be specified. Debug levels
  3127. will have an effect only when the modern compiler or the
  3128. classic compiler (version 1.2 and higher) is used and debugging
  3129. is enabled.
  3130. * Added support for specifying CVS_RSH in the <cvs/> task
  3131. * The attributes zipfile, jarfile, warfile and earfile (from the Zip,
  3132. Jar, War and Ear tasks) have been deprecated and superseded by a
  3133. new attribute "destfile".
  3134. * Added new conditions <isset>, <checksum>, <http>, <socket>, <contains>,
  3135. <filesmatch>.
  3136. * <taskdef> and <typedef> will now emit a warning if a task/type of
  3137. the given name already exists.
  3138. * A new revision of VAJ tasks: The most important new feature
  3139. is the ability to execute VAJ tasks from the command line by
  3140. exploiting the Remote Tool Access feature of VAJ.
  3141. * Improved support for Novell NetWare.
  3142. * Added an optional encoding attribute to <fixcrlf>.
  3143. * <apply> has a new attribute relative that allows users to pass the
  3144. filenames as relative instead of absolute paths on the command line.
  3145. * References can now be copied into the child build by <ant> and
  3146. <antcall> using nested <reference> elements or the new inheritRefs
  3147. attribute.
  3148. * <fail> now supports builds to fail based on conditions via if and
  3149. unless attributes.
  3150. * Ant now comes with two new BuildLogger implementations - one that
  3151. can send emails containing a log of the build process (MailLogger),
  3152. and one that colorizes the output based on message levels, using
  3153. ANSI color code escape sequences (AnsiColorLogger).
  3154. * A "package" mapper type has been added to allow package directory
  3155. names replaced with the dotted form.
  3156. * You can now specify environment variables in the <java> and <junit> tasks
  3157. if the fork attribute has been set to true.
  3158. * -propertyfile command-line option has been added to load an entire
  3159. property file just as -D properties are declared (as user properties).
  3160. -D properties take precedence over -propertyfile specified ones.
  3161. * You can now set an ANT_ARGS environment variable to hold arguments you
  3162. always want passed to the 'ant' command -- for example, if you always
  3163. want to use a different logger or the -find flag.
  3164. * <tstamp> now supports a new "prefix" attribute to prefix properties set.
  3165. * You can now specify the -sourcepath for <javac> explicitly.
  3166. * <javac> now supports a new "listfiles" attribute to list the source
  3167. files it's handing off to the compiler.
  3168. * The compiler implementation for <javac> can now be chosen on a task by
  3169. task basis. The new "compiler" attribute of <javac> can be used to override
  3170. the value of the build.compiler property, if set.
  3171. * <javac> has a new nested element, <compilerarg>, which allows you
  3172. to specify additional args for the specific compiler you're using.
  3173. * <javac>'s "source" attribute is now enabled for jikes as well.
  3174. * <propertyfile>'s <entry> now has a 'unit' attribute to specify the
  3175. increment/decrement unit on date operations.
  3176. * <property> now supports a 'prefix' attribute when loading from a file
  3177. or resource.
  3178. * In Ant 1.4, a feature has been added to the <junit> task that would
  3179. add ant.jar, optional.jar and junit.jar implicitly to the classpath -
  3180. this feature can now be disabled by setting the new includeantruntime
  3181. attribute to false.
  3182. * <style> behaves differently from any other directory-based task, as it
  3183. processes all files that it finds in included directories in
  3184. addition to the files matched by your patterns. There is now a new
  3185. attribute, 'scanincludeddirectories', to suppress this behavior.
  3186. * <javadoc> now supports a <tag> nested element to provide the -tag option
  3187. to the standard Java 1.4 doclet. The element is ignored when not running
  3188. on Java 1.4.
  3189. * <ftp> can now chmod files on a remote server that supports
  3190. "site chmod", as well as set the umask before transferring files, if
  3191. the server supports "site umask".
  3192. * New <serverdeploy> "optional" task.
  3193. * <patternset> now supports nested patternsets.
  3194. * Perforce tasks now support a "failonerror" attribute (defaults to "true").
  3195. * Open Source application server JOnAS support:
  3196. EJB hot deploy and deploy with <serverdeploy> and <ejbjar>
  3197. * Added new DirSet (<dirset>) datatype.
  3198. * <path> now supports nested <dirset> and <filelist> elements.
  3199. * <pathconvert> now supports nested <dirset> and <filelist> elements.
  3200. * <pathconvert>'s "dirsep" and "pathsep" attributes now accept
  3201. multi-character values.
  3202. * <copy> task now has a 'failonerror' attribute to allow keep-going
  3203. behaviour when the file to be copied is not found (defaults to "true").
  3204. * <uptodate> now has a 'srcfile' attribute to allow specifying a
  3205. full-path filename.
  3206. * <exec>, <sql> and <java> now support append attributes to allow
  3207. appending the output to an existing file.
  3208. * <java> now supports a timeout attribute analog to <exec> - it is
  3209. highly recommended to only use it together with fork="true".
  3210. * <javadoc> now supports a source attribute to enable javadoc to
  3211. handle assertions present in JDK 1.4 source code.
  3212. * <replace> supports a new replacefilterfile attribute that
  3213. automatically turns all properties of a given file into
  3214. replacefilters.
  3215. * An alias of <xslt> has been added to refer to the <style> task.
  3216. * The compiler implementation for <rmic> can now be chosen on a task by
  3217. task basis. The new "compiler" attribute of <rmic> can be used to override
  3218. the value of the build.rmic property, if set.
  3219. * <rmic> has a new nested element, <compilerarg>, which allows you
  3220. to specify additional args for the specific compiler you're using.
  3221. * org.apache.tools.ant.XmlLogger now is a BuildLogger, rather than just
  3222. a BuildListener. It can operate in either mode successfully.
  3223. * <junit> has a new attribute "showoutput". If set to true, output
  3224. generated by tests will be sent to Ant's logging system as well as
  3225. to the formatters (instead of sending it to the formatters
  3226. exclusively).
  3227. * Ant has now a pluggable way to prompt users for input, which is used
  3228. by the new <input> task. IDE integrators can provide an
  3229. implementation of the InputHandler interface to decouple Ant's input
  3230. from the console. An implementation that gets its input from a file
  3231. for unattended builds is part of Ant's distribution.
  3232. For more details see docs/manual/inputhandler.html.
  3233. * <patch> has a new attribute that selects the directory in which to
  3234. run the command.
  3235. * <javadoc> now supports two new nested elements, <fileset> and <packageset>.
  3236. Changes from Ant 1.4 to Ant 1.4.1
  3237. ===========================================
  3238. Fixed bugs:
  3239. -----------
  3240. * <ant>'s antfile attribute will now also be considered an absolute path on
  3241. Windows systems, if it starts with a \ and no drive specifier.
  3242. * The fullpath attribute of <zipfileset> has been ignored if you used
  3243. the src attribute at the same time.
  3244. * The manifest file is now always placed as the second entry (after /META-INF)
  3245. in generated jars. This allows the manifest to be read by JarInputStreams
  3246. * Fixed bug in depend task which would fail with a NullPointerException if no
  3247. dependency cache was specified.
  3248. * sql task now handles REM statements correctly so that lines starying with rem
  3249. but which are not comments are actually processed.
  3250. * XMLLogger now uses the task's name rather than the classname
  3251. * <mapper>s will now work as expected if the to pattern expands to an
  3252. absolute pathname.
  3253. * <javac> didn't ignore memory settings in non-fork mode
  3254. * <cab> didn't split the options attribute into several command line
  3255. arguments correctly.
  3256. Other changes:
  3257. --------------
  3258. * New source attribute for <javac> to enable assertion in JDK 1.4
  3259. * XmlLogger and <antstructure> now add an encoding declaration to the
  3260. XML files they generate.
  3261. * <fileset> has a new attribute "casesensitive" to make it match
  3262. filenames in a case insensitive way (if you set it to false) - by
  3263. default filesets remain case sensitive.
  3264. Changes from Ant 1.3 to Ant 1.4
  3265. ===========================================
  3266. Changes that could break older environments:
  3267. --------------------------------------------
  3268. * JUnitReport now uses the xalan redirect extension for multi-output.
  3269. With Xalan 1.2.2 it forces the use of bsf.jar in the classpath.
  3270. (Available in the xalan distribution). It is recommended to switch
  3271. to Xalan 2.x that do not need it.
  3272. * Zip.setWhenempty() has changed its signature.
  3273. * <rmic> is now implemented using a factory. This makes extending
  3274. rmic to use a new compiler a lot easier but may break custom
  3275. versions of this task that rely on the old implementation.
  3276. * several Zip methods have changed their signature as we now use a Zip
  3277. package of our own that handles Unix permissions for directories.
  3278. Furthermore <zip> will now use the platform's default character
  3279. encoding for filenames - this is consistent with the command line
  3280. ZIP tools, but causes problems if you try to open them from within
  3281. Java and your filenames contain non US-ASCII characters. Use the new
  3282. encoding attribute of the task and set it to UTF8 to get the old
  3283. behavior.
  3284. * The <pvcs> task has been moved to a package of its own.
  3285. * JUnitResultFormater has two additional methods that must be
  3286. implemented by custom formatters.
  3287. * Ant will no longer use the canonical version of a path internally -
  3288. this may yield different results on filesystems that support
  3289. symbolic links.
  3290. * The output generated by the xml formatter for <junit> has changed
  3291. again, it doesn't format the numeric value in the time attribute anymore.
  3292. * Pattern matching rules have changes slightly, the pattern foo*
  3293. doesn't match files contained in a directory named foo - use foo/*
  3294. instead.
  3295. * <fixcrlf> will not remove trailing whitespace at the end of lines anymore.
  3296. * The Classloader usage has been changed for the taskdef, property, available
  3297. and sql tasks so that it delegates to the parent classloader. This may cause
  3298. ClassNotFoundExceptions to be thrown if a system class attempts to load a
  3299. class in the taskdef's classpath (typically factory objects).
  3300. * Ant now allows multithreading of tasks and the containment of tasks within
  3301. other tasks. This can break customer listeners which do not expect messages
  3302. from a task before the previous task has finished.
  3303. * Ant now installs its own ouput stream into System.out to route output to the
  3304. task currently executing on the current thread. This also means that all
  3305. output is now routed as Ant message events. Customer listeners and loggers
  3306. should not call System.out at any time. This has always been true but such
  3307. usage now will cause problems due to possible recursion.
  3308. * Invalid manifest files will now cause build failures in the <jar> task.
  3309. * Ant Introspection now looks for methods with method names starting with
  3310. addConfigured. When called these methods are passed an argument after it has
  3311. been configured from the build file. Custom tasks supporting nested elements
  3312. starting with the name configured will no longer function.
  3313. * The environment variable JAVACMD that can be used to specify the
  3314. java executable to Ant's wrapper scripts must not contain additional
  3315. command line parameters any longer - please use the environment
  3316. variable ANT_OPTS for such parameters now.
  3317. * Ant's wrapper scripts now quote the CLASSPATH environment variable, thus
  3318. supporting classpaths which refer to directories containing spaces. This means
  3319. that the CLASSPATH environment variable cannot have quotes. Any quotes should
  3320. be removed. This will not affect the operation of the CLASSPATH environment
  3321. variable in other contexts.
  3322. * A delete task like
  3323. <delete includeEmptyFilesets="true">
  3324. <fileset dir="somedir" />
  3325. </delete>
  3326. will now remove "somedir" as well, unless there are still files left
  3327. in it (matched by the default excludes).
  3328. * The copy task will now fail if the file to be copied is not found.
  3329. * Ant properties defined in properties files now behave the same way as
  3330. properties defined in the build file. In particular the $ character needs
  3331. to be escaped in property values by doubling it to $$. So, to define a
  3332. property with the value $hello, you need to define it in a properties file
  3333. as
  3334. test.prop=$$hello
  3335. This was not the case in Ant 1.3
  3336. Other changes:
  3337. --------------
  3338. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  3339. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset,
  3340. condition, maudit, mmetrics, jpcoverage, jpcovreport, jpcovmerge
  3341. * Ant now uses JAXP 1.1
  3342. * rmic now supports Kaffe's and Weblogic's version of rmic.
  3343. * new magic property build.rmic to chose the rmic implementation
  3344. * <tar> will now add empty directories as well
  3345. * you can now specify a description for <p4change>
  3346. * <touch> can now work on <fileset>s
  3347. * <uptodate> now supports a value attribute
  3348. * <fail> supports nested text
  3349. * <fixcrlf> won't override files that are already in the correct
  3350. format.
  3351. * <sql> now supports REM comments as well as // and --
  3352. * <jar> now has a nested <metainf> element following the same idea as
  3353. <war>'s <webinf>.
  3354. * <pvcs> can now handle multiple projects.
  3355. * <available> now has a "type" attribute you can use in conjunction
  3356. with the "file" attribute to specify whether the "file" you're
  3357. looking for is a file or a directory.
  3358. * New <junit> formatter named "brief"
  3359. * <ejbjar> changes
  3360. * Add support for Borland Application Server to the <ejbjar> task using
  3361. a <borland> nested element.
  3362. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  3363. includes some iPlanet utility tasks
  3364. * Add support for JBoss Application Server to the <ejbjar> task.
  3365. * Add a naming attribute to control the naming scheme that
  3366. ejbjar uses to name the generated EJB jars.
  3367. * Weblogic element now sets the compiler class for EJB 2.0 beans
  3368. * <dtd> elements can be specified at the <ejbjar> level for building generic
  3369. beans
  3370. * <dtd> elements can now be URLs
  3371. * Allow the manifest to be specified for the generated jars
  3372. * The weblogic element now supprts an attribte noEJBC to skip the processing
  3373. of the jar by ejbc. The ejbc step will then occur at deployment
  3374. * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to
  3375. jikes. It can be restored to the default, javac, operation if desired.
  3376. * Allow the <sql> Delimiter to be set in the so that Oracle stored procs may be
  3377. entered
  3378. * <execon> and <apply> can now optionally skip empty filesets.
  3379. * <javadoc> has a new useexternalfile attribute that makes it use a
  3380. temporary file for sourcefile and package names - helps to defeat
  3381. command line length limitations.
  3382. * Data types like <path> can now be defined inside of <target>s
  3383. * you can now specify a classpath for <style> - the XSLZ processor
  3384. will be loaded from this path
  3385. * added a force attribute to <style> to support dependencies that the
  3386. task cannot determine itself (dependency on parameters, not file
  3387. modification times for example)
  3388. * added vmlauncher attribute to exec tasks. This defaults to true. If
  3389. it is set to false, the VM's ability to launch commands in bypassed
  3390. and the OS shell, either directly or through the auxillary antRun
  3391. scripts is used.
  3392. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  3393. * New filesonly attribute for <zip> and friends to suppress directory
  3394. entries.
  3395. * New update attribute for <zip> and friends - update an existing
  3396. archive instead of creating a new one.
  3397. * <apply> and <execon> have been merged into a single task.
  3398. * added vssver.scc to the default excludes
  3399. * <available> has a new filepath attribute/nested element that allows
  3400. you top search for a file in a given path.
  3401. * <junit> can now optionally set a property on test failure.
  3402. * <taskdef> can now define several tasks at once, reading the
  3403. name/classname pairs from a property file or resource.
  3404. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  3405. defaults to true. If set to false, files that are newer than the
  3406. files in the archive will not be replaced.
  3407. * <patternset> and <fileset> now support nested <in/excludesfile>
  3408. elements - using these you can have more than one in/excludes file
  3409. per <patternset>.
  3410. * Three new supported compilers for javac: kjc for kopi, gcj for the
  3411. gcc frontend and sj for Symantec's compiler.
  3412. In addition extJavac or the new fork attribute can be
  3413. used to run the JDK's javac in a JVM separate from Ant.
  3414. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  3415. between 2 and 80.
  3416. * The .NET tasks have been adapted to the beta2 release of the framework.
  3417. * <move> will now try to rename() files before copying them byte by
  3418. byte - only if filtering is of, of course.
  3419. * <ant> and <antcall> tasks now support a new attribute inheritAll. When set to
  3420. false, only user properties are passed through to the target Ant instance.
  3421. This includes properties set on the command line and properties explicitly
  3422. passed
  3423. * <javadoc> now skips off line links if the package list cannot be found.
  3424. * <wlrun> now allows the security policy file to exist outside the weblogic
  3425. directory.
  3426. * <java> task will set the Thread contextClassLoader under JDKs 1.2+ to the
  3427. classloader for the class being executed.
  3428. * Introduce the concept of a TaskContainer - a task or element which can contain
  3429. Ant Tasks.
  3430. * Add new tasks implementing the TaskContainer interface <parallel> and
  3431. <sequential> which allow parallel execution of tasks to be specified.
  3432. * <depend> task will now take into account dependencies on jar files and class
  3433. files from a given classpath.
  3434. * <jar> manifest entries may now be specified in the build file either
  3435. completely or to be merged with a manifest file.
  3436. * <tstamp> task custom formats now support locales.
  3437. * Added a listner which will forward events to Log4J. The log4j configuration
  3438. file should be in the directory from which Ant is run or passed as a system
  3439. property using a JVM argument.
  3440. * Introduced the concept of <filtersets> to allow for more control in which
  3441. filters get applied in a <copy> or <move> operation.
  3442. * Added nowarn attribute to javac and deprecated the Jikes-magic property
  3443. build.compiler.warnings.
  3444. * The <depend> task cache format has changed and all dependency information is
  3445. now stored in a single file.
  3446. Fixed bugs:
  3447. -----------
  3448. * Testcases have been made independent of current working directory.
  3449. * Input ZIP-Files will be closed when using a <zipfileset>.
  3450. * p4 tasks now don't fail if user, port or client have been omitted
  3451. (and this is acceptable for the context of the command).
  3452. * <javah>'s outputfile attribute will be resolved as relative to the
  3453. projects basedir.
  3454. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  3455. and omit tasks it fails to load.
  3456. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  3457. * <style>'s style attribute no handles absolute paths correctly.
  3458. * <delete includeemptydirs="true"> now deletes more than just the leaf
  3459. directories.
  3460. * You can now specify a <fileset> for a directory that doesn't exist at
  3461. declaration time but will created before the fileset gets used for the
  3462. first time.
  3463. * If the quiet attribute has been set, <delete> will handle <fileset>s
  3464. with non-existing directories gracefully.
  3465. * Output written by testcases will now be captured by the <junit> task
  3466. and passed to the formatters.
  3467. * Quote the -group parameter to Javadoc as per the specification
  3468. * Initialise classes when loaded through the AntClassLoader - that is, run
  3469. static initializers
  3470. * Implement getResource() and getResources() in AntClassLoader
  3471. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  3472. as a single line. Avoids problems with paths which contain spaces.
  3473. * <ejbjar> now fails when the weblogic ejbc compiler reports an error.
  3474. * Make the AntClassLoader load resources in the same order as it currently
  3475. loads classes.
  3476. * Handle classpaths with spaces
  3477. * Make sure XSLT processors close their output files in <style>.
  3478. * perform proper uptodate check in <rmic> when compiling for IIOP.
  3479. * <jjtree>'s uptodate test works even if outputdirectory is not the
  3480. parent dir of target
  3481. * <copy> will remove target file (if it exists) before writing to it -
  3482. this avoids problems with links on filesystems that support them.
  3483. * <ftp> now properly recurses remote directories.
  3484. * <ftp> closes remote connection when it's done.
  3485. * <junit> tries to include all necessary classes for the task itself
  3486. to the classpath when running in fork mode - doesn't work for JDK 1.1
  3487. * <apply> and <execon> do now execute the command only once, if you
  3488. specify the parallel attribute - instead of once per fileset.
  3489. * directory based tasks and fileset could miss some included files in
  3490. directories that have been excluded
  3491. * <fixcrlf> failed for large files.
  3492. * <move> removed files you tried to move to themselves.
  3493. * <sql> task will not trty to print the result set unless the query succeeded.
  3494. * Ant classloader will now ignore paths which are invalid relative to the
  3495. project base
  3496. * <ejbjar> weblogic elements check for jar file changes has been fixed.
  3497. Previously some changes would not be included.
  3498. * properties loaded from properties files are now resolved internally. This
  3499. removes the spurious warnings about usage of properties which have not been
  3500. set.
  3501. * <jar> task and friends now process the JAR manifest to ensure it is valid.
  3502. * The task finished event now includes any exception thrown by the task.
  3503. * <java> task now supports a jvmVersion attribute so that if another JVM is
  3504. being used, Ant can determine which options to use for features such as the
  3505. VM memory limits
  3506. Changes from Ant 1.2 to Ant 1.3
  3507. ===========================================
  3508. Changes that could break older environments:
  3509. --------------------------------------------
  3510. * Ant doesn't search for the buildfile anymore, unless you use the new
  3511. -find argument.
  3512. * <perforce> has been replaced by a number of new tasks.
  3513. * <javac> is now implemented using a factory. This makes extending
  3514. javac to use a new compiler a lot easier but may break custom
  3515. versions of this task that rely on the old implementation.
  3516. * The output generated by the xml formatter for <junit> has changed a
  3517. little, it doesn't append " sec" in the time attribute anymore.
  3518. Other changes:
  3519. --------------
  3520. * A GUI Frontend: Antidote. This is currently in development. At this
  3521. time, this is not part of the Ant release, although the source is
  3522. included if you are interested.
  3523. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  3524. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  3525. * Added output attribute to <java>.
  3526. * Added nested zipfileset element to <zip>
  3527. * Changed <sql> so that printing is at the task level rather than
  3528. the statement level.
  3529. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  3530. given. If the doclet does not accept the -d flag then omit the destdir
  3531. attribute.
  3532. * <cab> can work on non-Windows platforms with the help of libcabinet.
  3533. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  3534. * <ftp> now supports passive mode.
  3535. * New <mapper> data type that can be used to get influence on the
  3536. target files for some tasks like <copy> or enable new types of tasks
  3537. like <apply>.
  3538. * <execon> provides more control over the command line now, the names
  3539. of the source files are no longer required to be at the end of the
  3540. command.
  3541. * Style tasks will now support TraX compliant XSL processors if one is present
  3542. in your classpath.
  3543. * Added a failonerror to the javac task. If set to false, the build will
  3544. continue even if there are compilation errors.
  3545. * Added nested format elements to the tstamp task allowing additional time
  3546. formats to be defined for arbitrary properties.
  3547. * Added classpath attribute and nested classpath element to <property>
  3548. to make the resource attribute more powerful.
  3549. * ${} property expansion will now be performed on the patterns read
  3550. from files specified as includesfile or excludesfile attributes.
  3551. * The <tar> and <untar> tasks now support GNU format for handling paths
  3552. which are greater than 100 characters in length. In addition the <tar>
  3553. task now supports nested filesets through which the file permissions
  3554. may be controlled.
  3555. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  3556. * The MPasre task has been updated to work with MParse 2.0
  3557. * The documentation has been significantly updated.
  3558. Fixed bugs:
  3559. -----------
  3560. * <signjar> no longer uses deprecated methods.
  3561. * javadoc's failonerror attribute works again
  3562. * javadoc's additionalparam attribute will now be split into separate
  3563. parameters (on spaces) to allow for more than one parameter.
  3564. * Changed <sql> task so that printing result sets works on Oracle
  3565. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  3566. keppgenerated in ejbc can now be turned off
  3567. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  3568. CMP files are included by parsing the weblogic deployment descriptor rather
  3569. than relying on the naming convention used in ant 1.2
  3570. * ejbjar includes super classes and super interfaces into the generated ejb
  3571. jar files. The <support> nested element allows support classes to be
  3572. included in the EJB jar. The toplink element should now correctly locate
  3573. the toplink descriptor.
  3574. * <vssget> now correctly deals with spaces in arguments
  3575. * <jar> fails early if a given manifest file doesn't exist
  3576. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  3577. set to 1.2.
  3578. * <rmic> uses the the same classpath to verify a class can be rmic'd
  3579. as it passes to the compiler.
  3580. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  3581. handle SMTP servers sending multi line responses.
  3582. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  3583. nested into <target> as well.
  3584. * <property> and <available> will search for the resource "foo" instead
  3585. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  3586. name foo.
  3587. * Handle build files in directories whose name contained a "#" character
  3588. * <junit> can now log to files whose name contains a comma as well.
  3589. * The AntClassLoader now refers to the loader which loaded it, any
  3590. requests it does not handle itself. Previously these went to the
  3591. primordial loader.
  3592. Changes from Ant 1.1 to Ant 1.2
  3593. ===============================
  3594. Changes that could break older environments:
  3595. --------------------------------------------
  3596. * Semantics of <property> has changed again in the hope to be more
  3597. intuitive. ${} expansion now happens at runtime and <property> tags
  3598. living inside of targets only take effect if they are visited at
  3599. runtime.
  3600. As a side effect of this change, task's attributes get set at runtime
  3601. not at parser time as well, which might change the results of
  3602. <script>s or other custom tasks that reference other tasks by their id
  3603. attribute.
  3604. * copying of support files in <javac> has been removed - as well as
  3605. the filtering attribute.
  3606. * the <expand> and <keysubst> tasks have been removed.
  3607. * the ignore and items attributes of directory based tasks have been removed.
  3608. * the command line switches _not_ starting with - have been removed.
  3609. * Path and EnumeratedAttribute have been moved from
  3610. org.apache.tools.ant to org.apache.tools.ant.types.
  3611. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  3612. have been removed.
  3613. * the src attribute of <chmod> has been removed.
  3614. * <patch> and <javadoc> have lost some of their attributes.
  3615. * <java> and <cvs> have lost some undocumented attributes.
  3616. * the Unix antRun script would search for command.sh in the directory
  3617. it changed to and invoke this instead of command if present. This
  3618. behavior has been dropped.
  3619. * <ejbjar> task syntax has been changed significantly
  3620. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  3621. Custom tasks that rely on Project.createTask("exec") to return an
  3622. instance of this class are going to fail.
  3623. * nested <include> and <exclude> elements expect the value of their
  3624. name attribute to be a single pattern, they don't accept multiple
  3625. patterns anymore. Split them into multiple elements of the same type.
  3626. * <delete dir="somedir" /> will now delete the directory itself as
  3627. well as all included files. If you just want to clean out the
  3628. directory and keep the empty one, use a nested fileset.
  3629. Other changes:
  3630. --------------
  3631. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  3632. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  3633. native2ascii, copy, move, mparse.
  3634. * copydir, copyfile, deltree and rename are now deprecated. They
  3635. should be replaced with the new copy, delete and move tasks.
  3636. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  3637. specified.
  3638. * <style> will create the necessary target directories and reprocess
  3639. all files if the stylesheet changes.
  3640. * New data types fileset and patternset - expected to get a broader use.
  3641. They, as well as PATH like structures, can now be defined on a global
  3642. level and later be referenced by their id attribute.
  3643. * You can specify environment variables to <exec>.
  3644. * <get> can check whether a remote file is actually newer than a local
  3645. copy before it starts a download (HTTP only).
  3646. * Added a -logger option to allow the class which performs logging to be
  3647. specified on the command line.
  3648. * Added a -emacs option to tell the logger to leave out taskname adornments
  3649. on log output.
  3650. * <chmod> works on all files in parallel and supports multiple filesets.
  3651. * <replace> can now use tokens and/or values that cross line boundaries.
  3652. * build.compiler supports now jvc as well.
  3653. * project specific help can now be obtained with the -projecthelp option.
  3654. * Added a -debug option to make -verbose less verbose (and more useful)
  3655. * Ant will now search for a file named build.xml in the parent directory
  3656. and above (towards the root of the filesystem) if you didn't specify
  3657. -buildfile and there is no build.xml in the current directory.
  3658. * <echo> can now write to a file and accepts nested text.
  3659. Fixed bugs:
  3660. -----------
  3661. * <chmod> didn't work when used as a directory based task.
  3662. * Path, Available, Property didn't resolve relative filenames with
  3663. respect to the Project's basedir.
  3664. * Project didn't interpret the basedir attribute correctly in all
  3665. cases.
  3666. * Nested <src> in <javac> caused NullPointerException.
  3667. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  3668. * many more fixes we've forgotten to document here ...
  3669. * The packagelistloc attribute of <javadoc>'s <link> child will be
  3670. resolved as a file (i.e. it is either absolute or relative to
  3671. basedir).