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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947
  1. Changes from Ant 1.4.1 to current CVS version
  2. ==============================================
  3. Changes that could break older environments:
  4. --------------------------------------------
  5. * <telnet> was fixed to expand properties inside nested <read> and
  6. <write> elements; before this only happened when you assigned the text
  7. to the string attribute. If you had $ signs in the string, they may
  8. need escaping.
  9. * the RegexpMatcher interface has been extended to support case
  10. insensitive matches and other options - custom implementations of
  11. this interface won't work any longer. We recommend to use the new
  12. Regexp interface that also supports substitution instead of the
  13. RegexpMatcher interface in the future.
  14. * <gzip> will throw an exception if your src attribute points to a directory.
  15. * Unjar, Unzip and Unwar will throw an exception if the Src attribute
  16. represents a directory. Support for nested filesets is provided
  17. instead.
  18. * It is no longer possible to overwrite a property using tasks like
  19. <condition>, <exec>, <pathconvert>, or <tstamp>. In some exceptional
  20. cases it will generate a warning if you attempt to overwrite an
  21. existing property.
  22. * Taskwriters please note: Whenever tasks had any overloaded set* methods,
  23. Ant's introspection mechanism would select the last overloaded method
  24. provided to it by the Java Runtime. A modification has now been made such
  25. that when the Java Runtime provides a method with a String as its argument,
  26. a check is made to see if there is another overloaded method that takes in
  27. some other type of argument. If there is one such method, then the method
  28. that takes in String as an argument is not selected by the Introspector.
  29. * The pattern definition **/._* has been included into the Default
  30. Excludes list.
  31. * <propertyfile>'s <entry> element was modified to remove "never" as a value
  32. as its behavior was undocumented and flakey.
  33. * The -projecthelp flag now only prints out targets that include the
  34. 'description' attribute, unless the -verbose or -debug flag is included
  35. on the Ant command line.
  36. * Ant's testcases now require JUnit 3.7 or above, as they now use the new
  37. assertTrue method instead of assert.
  38. * If the 'output' attribute of <ant> is set to a simple filename or a
  39. relative path, the file is created relative to ${basedir}, not ${user.dir}.
  40. Fixed bugs:
  41. -----------
  42. * A bug existed that prevented generated log files from being deleted as
  43. part of the build process itself. This has now been fixed.
  44. * Fixed bug where <move> ignored <filterset>s.
  45. * Ant works properly with the combination of Java1.4/WindowsXP.
  46. * Fixed bug where <java> used to sometimes invoke class constructors twice.
  47. * Fixed bug with 4NT shell support.
  48. * Fixed bug where ant would not perform ftp without remotedir being
  49. specified even though this was not mandatory.
  50. * Fixed bug where ant would not copy system properties into new Project
  51. in ant/antcall tasks when inheritall="false" is set.
  52. * <propertyfile> would not close the original property file.
  53. * <ant> will no longer override a subbuild's basedir with inheritall="true".
  54. * Fixed problem with the built-in <junit> formatters which assumed
  55. that only one test could be running at the same time - this is not
  56. necessarily true, see junit.extensions.ActiveTestSuite.
  57. * <jar>'s whenEmpty attribute is useless as JARs are never empty, they
  58. contain at least a manifest file, therefore it will now print a
  59. warning and do nothing.
  60. * <typedef> hasn't been all that useful as it couldn't be used outside
  61. of targets (it can now) and nested "unknown" elements have always
  62. been considered to be tasks (changed as well).
  63. * <fixcrlf> would fail for files that contained lines longer than 8kB.
  64. * Some junit formatters incorrectly assumed that all testcases would
  65. inherit from junit.framework.TestCase.
  66. * <fixcrlf> dropped the first characters from Mac files.
  67. Other changes:
  68. --------------
  69. * New optional type, <classfileset> added.
  70. * <ejbjar> now allows control over which additional classes and interfaces
  71. are added to the generated EJB jars. A new attribute "dependency" can be
  72. defines which classes are added. The addition of classes now uses
  73. the Jakarta-BCEL library rather than reflection, meaning bean classes are
  74. no longer loaded into Ant's JVM.
  75. * <available> has a new attribute named ignoreSystemClasses.
  76. * New task <cvschangelog/> generates an XML report of changes that occur
  77. on CVS repository.
  78. * New filter readers: ClassConstants, ExpandProperties, HeadFilter,
  79. LineContains, LineContainsRegExp, PrefixLines, ReplaceTokens,
  80. StripJavaComments, StripLineBreaks, StripLineComments, TabsToSpaces,
  81. TailFilter.
  82. * <copy>, <loadfile>, <loadproperties>, <move> support FilterChains
  83. of FilterReaders.
  84. * New task <loadproperties> to load contents of file as Ant properties,
  85. with nested <filterchain> elements.
  86. * New task <loadfile> to load a whole file into a property.
  87. * New task <echoproperties> to list your current properties to the screen
  88. or a file.
  89. * New tasks <bzip2> and <bunzip2> to pack and unpack files using the
  90. BZip2 alogrithm.
  91. * New tasks <replaceregexp>, <checksum>, <translate>, <waitfor>, <input>,
  92. <manifest>, <vsscp>, <vssadd>, <vsscreate>, <splash>, <basename>, <dirname>,
  93. <concat>.
  94. * A new combined <mail> task, which replaces the old <mail> and
  95. <mimemail> tasks, has been added. The <mimemail> task, and
  96. old SendEmail and MimeMail classes have been deprecated.
  97. * Mail task allows specification of port number.
  98. * Users can control what <zip> and <jar> must do when duplicate files
  99. are found. A new element <zipgroupfileset> allows for multiple zip
  100. files to be merged into the archive. In addition, <jar> also has
  101. another new attribute: filesetmanifest. The existing manifest
  102. attribute of <jar> now also accepts the name of a jar added through
  103. a fileset.
  104. * gzip now checks that the zipfile is older than the source file
  105. before rebuilding the zipfile.
  106. * TarFileset takes in three new attributes - fullpath, prefix
  107. and preserveLeadingSlashes.
  108. * <move> attempts to rename the directory, if everything inside it is
  109. included, before performing file-by-file moves. This attempt will
  110. be done only if filtering is off and if mappers are not used. This
  111. is a performance improvement and there is no change otherwise in
  112. the funtionality of this task.
  113. * Exec task has extra attribute "resultproperty" to get the return code
  114. into a property.
  115. * Exec task prints a message when a timed-out process is killed.
  116. * Added optional attributes - name, arch and version to the <os> task.
  117. * Unjar, Untar, Unwar and Unzip now support patternsets to
  118. select files from an archive for extraction. Filesets may be
  119. used to select archived files for unarchival.
  120. * Javac task allows debug levels to be specified. Debug levels
  121. will have an effect only when the modern compiler or the
  122. classic compiler (version 1.2 and higher) is used and debugging
  123. is enabled.
  124. * Added support for specifying CVS_RSH in the <cvs/> task
  125. * The attributes zipfile, jarfile, warfile and earfile (from the Zip,
  126. Jar, War and Ear tasks) have been deprecated and superseded by a
  127. new attribute "destfile".
  128. * Added new conditions <isset>, <checksum>, <http>, <socket>, <contains>,
  129. <filesmatch>.
  130. * <taskdef> and <typedef> will now emit a warning if a task/type of
  131. the given name already exists.
  132. * A new revision of VAJ tasks: The most important new feature
  133. is the ability to execute VAJ tasks from the command line by
  134. exploiting the Remote Tool Access feature of VAJ.
  135. * Improved support for Novell NetWare.
  136. * Added an optional encoding attribute to <fixcrlf>.
  137. * <apply> has a new attribute relative that allows users to pass the
  138. filenames as relative instead of absolute paths on the command line.
  139. * References can now be copied into the child build by <ant> and
  140. <antcall> using nested <reference> elements or the new inheritRefs
  141. attribute.
  142. * <fail> now supports builds to fail based on conditions via if and
  143. unless attributes.
  144. * Ant now comes with two new BuildLogger implementations - one that
  145. can send emails containing a log of the build process (MailLogger),
  146. and one that colorizes the output based on message levels, using
  147. ANSI color code escape sequences (AnsiColorLogger).
  148. * A "package" mapper type has been added to allow package directory
  149. names replaced with the dotted form.
  150. * You can now specify environment variables in the <java> and <junit> tasks
  151. if the fork attribute has been set to true.
  152. * -propertyfile command-line option has been added to load an entire
  153. property file just as -D properties are declared (as user properties).
  154. -D properties take precedence over -propertyfile specified ones.
  155. * You can now set an ANT_ARGS environment variable to hold arguments you
  156. always want passed to the 'ant' command -- for example, if you always
  157. want to use a different logger or the -find flag.
  158. * <tstamp> now supports a new "prefix" attribute to prefix properties set.
  159. * You can now specify the -sourcepath for <javac> explicitly.
  160. * <javac> now supports a new "listfiles" attribute to list the source
  161. files it's handing off to the compiler.
  162. * The compiler implementation for <javac> can now be chosen on a task by
  163. task basis. The new "compiler" attribute of <javac> can be used to override
  164. the value of the build.compiler property, if set.
  165. * <javac> has a new nested element, <compilerarg>, which allows you
  166. to specify additional args for the specific compiler you're using.
  167. * <javac>'s "source" attribute is now enabled for jikes as well.
  168. * <propertyfile>'s <entry> now has a 'unit' attribute to specify the
  169. increment/decrement unit on date operations.
  170. * <property> now supports a 'prefix' attribute when loading from a file
  171. or resource.
  172. * In Ant 1.4, a feature has been added to the <junit> task that would
  173. add ant.jar, optional.jar and junit.jar implicitly to the classpath -
  174. this feature can now be disabled by setting the new includeantruntime
  175. attribute to false.
  176. * <style> behaves differently from any other directory-based task, as it
  177. processes all files that it finds in included directories in
  178. addition to the files matched by your patterns. There is now a new
  179. attribute, 'scanincludeddirectories', to suppress this behavior.
  180. * <javadoc> now supports a <tag> nested element to provide the -tag option
  181. to the standard Java 1.4 doclet. The element is ignored when not running
  182. on Java 1.4.
  183. * <ftp> can now chmod files on a remote server that supports
  184. "site chmod", as well as set the umask before transferring files, if
  185. the server supports "site umask".
  186. * New <serverdeploy> "optional" task.
  187. * <patternset> now supports nested patternsets.
  188. * Perforce tasks now support a "failonerror" attribute (defaults to "true").
  189. * Open Source application server JOnAS support:
  190. EJB hot deploy and deploy with <serverdeploy> and <ejbjar>
  191. * Added new DirSet (<dirset>) datatype.
  192. * <path> now supports nested <dirset> and <filelist> elements.
  193. * <pathconvert> now supports nested <dirset> and <filelist> elements.
  194. * <pathconvert>'s "dirsep" and "pathsep" attributes now accept
  195. multi-character values.
  196. * <copy> task now has a 'failonerror' attribute to allow keep-going
  197. behaviour when the file to be copied is not found (defaults to "true").
  198. * <uptodate> now has a 'srcfile' attribute to allow specifying a
  199. full-path filename.
  200. * <exec>, <sql> and <java> now support append attributes to allow
  201. appending the output to an existing file.
  202. * <java> now supports a timeout attribute analog to <exec> - it is
  203. highly recommended to only use it together with fork="true".
  204. * <javadoc> now supports a source attribute to enable javadoc to
  205. handle assertions present in JDK 1.4 source code.
  206. * <replace> supports a new replacefilterfile attribute that
  207. automatically turns all properties of a given file into
  208. replacefilters.
  209. Changes from Ant 1.4 to Ant 1.4.1
  210. ===========================================
  211. Fixed bugs:
  212. -----------
  213. * <ant>'s antfile attribute will now also be considered an absolute path on
  214. Windows systems, if it starts with a \ and no drive specifier.
  215. * The fullpath attribute of <zipfileset> has been ignored if you used
  216. the src attribute at the same time.
  217. * The manifest file is now always placed as the second entry (after /META-INF)
  218. in generated jars. This allows the manifest to be read by JarInputStreams
  219. * Fixed bug in depend task which would fail with a NullPointerException if no
  220. dependency cache was specified.
  221. * sql task now handles REM statements correctly so that lines starying with rem
  222. but which are not comments are actually processed.
  223. * XMLLogger now uses the task's name rather than the classname
  224. * <mapper>s will now work as expected if the to pattern expands to an
  225. absolute pathname.
  226. * <javac> didn't ignore memory settings in non-fork mode
  227. * <cab> didn't split the options attribute into several command line
  228. arguments correctly.
  229. Other changes:
  230. --------------
  231. * New source attribute for <javac> to enable assertion in JDK 1.4
  232. * XmlLogger and <antstructure> now add an encoding declaration to the
  233. XML files they generate.
  234. * <fileset> has a new attribute "casesensitive" to make it match
  235. filenames in a case insensitive way (if you set it to false) - by
  236. default filesets remain case sensitive.
  237. Changes from Ant 1.3 to Ant 1.4
  238. ===========================================
  239. Changes that could break older environments:
  240. --------------------------------------------
  241. * JUnitReport now uses the xalan redirect extension for multi-output.
  242. With Xalan 1.2.2 it forces the use of bsf.jar in the classpath.
  243. (Available in the xalan distribution). It is recommended to switch
  244. to Xalan 2.x that do not need it.
  245. * Zip.setWhenempty() has changed its signature.
  246. * <rmic> is now implemented using a factory. This makes extending
  247. rmic to use a new compiler a lot easier but may break custom
  248. versions of this task that rely on the old implementation.
  249. * several Zip methods have changed their signature as we now use a Zip
  250. package of our own that handles Unix permissions for directories.
  251. Furthermore <zip> will now use the platform's default character
  252. encoding for filenames - this is consistent with the command line
  253. ZIP tools, but causes problems if you try to open them from within
  254. Java and your filenames contain non US-ASCII characters. Use the new
  255. encoding attribute of the task and set it to UTF8 to get the old
  256. behavior.
  257. * The <pvcs> task has been moved to a package of its own.
  258. * JUnitResultFormater has two additional methods that must be
  259. implemented by custom formatters.
  260. * Ant will no longer use the canonical version of a path internally -
  261. this may yield different results on filesystems that support
  262. symbolic links.
  263. * The output generated by the xml formatter for <junit> has changed
  264. again, it doesn't format the numeric value in the time attribute anymore.
  265. * Pattern matching rules have changes slightly, the pattern foo*
  266. doesn't match files contained in a directory named foo - use foo/*
  267. instead.
  268. * <fixcrlf> will not remove trailing whitespace at the end of lines anymore.
  269. * The Classloader usage has been changed for the taskdef, property, available
  270. and sql tasks so that it delegates to the parent classloader. This may cause
  271. ClassNotFoundExceptions to be thrown if a system class attempts to load a
  272. class in the taskdef's classpath (typically factory objects).
  273. * Ant now allows multithreading of tasks and the containment of tasks within
  274. other tasks. This can break customer listeners which do not expect messages
  275. from a task before the previous task has finished.
  276. * Ant now installs its own ouput stream into System.out to route output to the
  277. task currently executing on the current thread. This also means that all
  278. output is now routed as Ant message events. Customer listeners and loggers
  279. should not call System.out at any time. This has always been true but such
  280. usage now will cause problems due to possible recursion.
  281. * Invalid manifest files will now cause build failures in the <jar> task.
  282. * Ant Introspection now looks for methods with method names starting with
  283. addConfigured. When called these methods are passed an argument after it has
  284. been configured from the build file. Custom tasks supporting nested elements
  285. starting with the name configured will no longer function.
  286. * The environment variable JAVACMD that can be used to specify the
  287. java executable to Ant's wrapper scripts must not contain additional
  288. command line parameters any longer - please use the environment
  289. variable ANT_OPTS for such parameters now.
  290. * Ant's wrapper scripts now quote the CLASSPATH environment variable, thus
  291. supporting classpaths which refer to directories containing spaces. This means
  292. that the CLASSPATH environment variable cannot have quotes. Any quotes should
  293. be removed. This will not affect the operation of the CLASSPATH environment
  294. variable in other contexts.
  295. * A delete task like
  296. <delete includeEmptyFilesets="true">
  297. <fileset dir="somedir" />
  298. </delete>
  299. will now remove "somedir" as well, unless there are still files left
  300. in it (matched by the default excludes).
  301. * The copy task will now fail if the file to be copied is not found.
  302. * Ant properties defined in properties files now behave the same way as
  303. properties defined in the build file. In particular the $ character needs
  304. to be escaped in property values by doubling it to $$. So, to define a
  305. property with the value $hello, you need to define it in a properties file
  306. as
  307. test.prop=$$hello
  308. This was not the case in Ant 1.3
  309. Other changes:
  310. --------------
  311. * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout,
  312. typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset,
  313. condition, maudit, mmetrics, jpcoverage, jpcovreport, jpcovmerge
  314. * Ant now uses JAXP 1.1
  315. * rmic now supports Kaffe's and Weblogic's version of rmic.
  316. * new magic property build.rmic to chose the rmic implementation
  317. * <tar> will now add empty directories as well
  318. * you can now specify a description for <p4change>
  319. * <touch> can now work on <fileset>s
  320. * <uptodate> now supports a value attribute
  321. * <fail> supports nested text
  322. * <fixcrlf> won't override files that are already in the correct
  323. format.
  324. * <sql> now supports REM comments as well as // and --
  325. * <jar> now has a nested <metainf> element following the same idea as
  326. <war>'s <webinf>.
  327. * <pvcs> can now handle multiple projects.
  328. * <available> now has a "type" attribute you can use in conjunction
  329. with the "file" attribute to specify whether the "file" you're
  330. looking for is a file or a directory.
  331. * New <junit> formatter named "brief"
  332. * <ejbjar> changes
  333. * Add support for Borland Application Server to the <ejbjar> task using
  334. a <borland> nested element.
  335. * Add support for iPlanet Application Server to the <ejbjar> task. Also
  336. includes some iPlanet utility tasks
  337. * Add support for JBoss Application Server to the <ejbjar> task.
  338. * Add a naming attribute to control the naming scheme that
  339. ejbjar uses to name the generated EJB jars.
  340. * Weblogic element now sets the compiler class for EJB 2.0 beans
  341. * <dtd> elements can be specified at the <ejbjar> level for building generic
  342. beans
  343. * <dtd> elements can now be URLs
  344. * Allow the manifest to be specified for the generated jars
  345. * The weblogic element now supprts an attribte noEJBC to skip the processing
  346. of the jar by ejbc. The ejbc step will then occur at deployment
  347. * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to
  348. jikes. It can be restored to the default, javac, operation if desired.
  349. * Allow the <sql> Delimiter to be set in the so that Oracle stored procs may be
  350. entered
  351. * <execon> and <apply> can now optionally skip empty filesets.
  352. * <javadoc> has a new useexternalfile attribute that makes it use a
  353. temporary file for sourcefile and package names - helps to defeat
  354. command line length limitations.
  355. * Data types like <path> can now be defined inside of <target>s
  356. * you can now specify a classpath for <style> - the XSLZ processor
  357. will be loaded from this path
  358. * added a force attribute to <style> to support dependencies that the
  359. task cannot determine itself (dependency on parameters, not file
  360. modification times for example)
  361. * added vmlauncher attribute to exec tasks. This defaults to true. If
  362. it is set to false, the VM's ability to launch commands in bypassed
  363. and the OS shell, either directly or through the auxillary antRun
  364. scripts is used.
  365. * regexp mapper now supports the java.util.regex package of JDK 1.4.
  366. * New filesonly attribute for <zip> and friends to suppress directory
  367. entries.
  368. * New update attribute for <zip> and friends - update an existing
  369. archive instead of creating a new one.
  370. * <apply> and <execon> have been merged into a single task.
  371. * added vssver.scc to the default excludes
  372. * <available> has a new filepath attribute/nested element that allows
  373. you top search for a file in a given path.
  374. * <junit> can now optionally set a property on test failure.
  375. * <taskdef> can now define several tasks at once, reading the
  376. name/classname pairs from a property file or resource.
  377. * <unzip/unjar/unwar> and <untar> now have an overwrite attribute that
  378. defaults to true. If set to false, files that are newer than the
  379. files in the archive will not be replaced.
  380. * <patternset> and <fileset> now support nested <in/excludesfile>
  381. elements - using these you can have more than one in/excludes file
  382. per <patternset>.
  383. * Three new supported compilers for javac: kjc for kopi, gcj for the
  384. gcc frontend and sj for Symantec's compiler.
  385. In addition extJavac or the new fork attribute can be
  386. used to run the JDK's javac in a JVM separate from Ant.
  387. * <fixrlf> can now with CR only line-ends and can use an arbitraty
  388. between 2 and 80.
  389. * The .NET tasks have been adapted to the beta2 release of the framework.
  390. * <move> will now try to rename() files before copying them byte by
  391. byte - only if filtering is of, of course.
  392. * <ant> and <antcall> tasks now support a new attribute inheritAll. When set to
  393. false, only user properties are passed through to the target Ant instance.
  394. This includes properties set on the command line and properties explicitly
  395. passed
  396. * <javadoc> now skips off line links if the package list cannot be found.
  397. * <wlrun> now allows the security policy file to exist outside the weblogic
  398. directory.
  399. * <java> task will set the Thread contextClassLoader under JDKs 1.2+ to the
  400. classloader for the class being executed.
  401. * Introduce the concept of a TaskContainer - a task or element which can contain
  402. Ant Tasks.
  403. * Add new tasks implementing the TaskContainer interface <parallel> and
  404. <sequential> which allow parallel execution of tasks to be specified.
  405. * <depend> task will now take into account dependencies on jar files and class
  406. files from a given classpath.
  407. * <jar> manifest entries may now be specified in the build file either
  408. completely or to be merged with a manifest file.
  409. * <tstamp> task custom formats now support locales.
  410. * Added a listner which will forward events to Log4J. The log4j configuration
  411. file should be in the directory from which Ant is run or passed as a system
  412. property using a JVM argument.
  413. * Introduced the concept of <filtersets> to allow for more control in which
  414. filters get applied in a <copy> or <move> operation.
  415. * Added nowarn attribute to javac and deprecated the Jikes-magic property
  416. build.compiler.warnings.
  417. * The <depend> task cache format has changed and all dependency information is
  418. now stored in a single file.
  419. Fixed bugs:
  420. -----------
  421. * Testcases have been made independent of current working directory.
  422. * Input ZIP-Files will be closed when using a <zipfileset>.
  423. * p4 tasks now don't fail if user, port or client have been omitted
  424. (and this is acceptable for the context of the command).
  425. * <javah>'s outputfile attribute will be resolved as relative to the
  426. projects basedir.
  427. * <antstructure> should create a valid DTD for propertyfile.operation.entry
  428. and omit tasks it fails to load.
  429. * won't try to pass a -bootclasspath flag to javac 1.1 anymore
  430. * <style>'s style attribute no handles absolute paths correctly.
  431. * <delete includeemptydirs="true"> now deletes more than just the leaf
  432. directories.
  433. * You can now specify a <fileset> for a directory that doesn't exist at
  434. declaration time but will created before the fileset gets used for the
  435. first time.
  436. * If the quiet attribute has been set, <delete> will handle <fileset>s
  437. with non-existing directories gracefully.
  438. * Output written by testcases will now be captured by the <junit> task
  439. and passed to the formatters.
  440. * Quote the -group parameter to Javadoc as per the specification
  441. * Initialise classes when loaded through the AntClassLoader - that is, run
  442. static initializers
  443. * Implement getResource() and getResources() in AntClassLoader
  444. * Create the <ejbjar> weblogic command line as a set of arguments rather than
  445. as a single line. Avoids problems with paths which contain spaces.
  446. * <ejbjar> now fails when the weblogic ejbc compiler reports an error.
  447. * Make the AntClassLoader load resources in the same order as it currently
  448. loads classes.
  449. * Handle classpaths with spaces
  450. * Make sure XSLT processors close their output files in <style>.
  451. * perform proper uptodate check in <rmic> when compiling for IIOP.
  452. * <jjtree>'s uptodate test works even if outputdirectory is not the
  453. parent dir of target
  454. * <copy> will remove target file (if it exists) before writing to it -
  455. this avoids problems with links on filesystems that support them.
  456. * <ftp> now properly recurses remote directories.
  457. * <ftp> closes remote connection when it's done.
  458. * <junit> tries to include all necessary classes for the task itself
  459. to the classpath when running in fork mode - doesn't work for JDK 1.1
  460. * <apply> and <execon> do now execute the command only once, if you
  461. specify the parallel attribute - instead of once per fileset.
  462. * directory based tasks and fileset could miss some included files in
  463. directories that have been excluded
  464. * <fixcrlf> failed for large files.
  465. * <move> removed files you tried to move to themselves.
  466. * <sql> task will not trty to print the result set unless the query succeeded.
  467. * Ant classloader will now ignore paths which are invalid relative to the
  468. project base
  469. * <ejbjar> weblogic elements check for jar file changes has been fixed.
  470. Previously some changes would not be included.
  471. * properties loaded from properties files are now resolved internally. This
  472. removes the spurious warnings about usage of properties which have not been
  473. set.
  474. * <jar> task and friends now process the JAR manifest to ensure it is valid.
  475. * The task finished event now includes any exception thrown by the task.
  476. * <java> task now supports a jvmVersion attribute so that if another JVM is
  477. being used, Ant can determine which options to use for features such as the
  478. VM memory limits
  479. Changes from Ant 1.2 to Ant 1.3
  480. ===========================================
  481. Changes that could break older environments:
  482. --------------------------------------------
  483. * Ant doesn't search for the buildfile anymore, unless you use the new
  484. -find argument.
  485. * <perforce> has been replaced by a number of new tasks.
  486. * <javac> is now implemented using a factory. This makes extending
  487. javac to use a new compiler a lot easier but may break custom
  488. versions of this task that rely on the old implementation.
  489. * The output generated by the xml formatter for <junit> has changed a
  490. little, it doesn't append " sec" in the time attribute anymore.
  491. Other changes:
  492. --------------
  493. * A GUI Frontend: Antidote. This is currently in development. At this
  494. time, this is not part of the Ant release, although the source is
  495. included if you are interested.
  496. * New tasks: stylebook, propertyfile, depend, antlr, telnet, csc,
  497. ilasm, apply, javah, several clearcase tasks, junitreport, sound
  498. * Added output attribute to <java>.
  499. * Added nested zipfileset element to <zip>
  500. * Changed <sql> so that printing is at the task level rather than
  501. the statement level.
  502. * javadoc task will pass -d flag to any doclet if the destDir attribute is
  503. given. If the doclet does not accept the -d flag then omit the destdir
  504. attribute.
  505. * <cab> can work on non-Windows platforms with the help of libcabinet.
  506. See http://trill.cis.fordham.edu/~barbacha/cabinet_library/.
  507. * <ftp> now supports passive mode.
  508. * New <mapper> data type that can be used to get influence on the
  509. target files for some tasks like <copy> or enable new types of tasks
  510. like <apply>.
  511. * <execon> provides more control over the command line now, the names
  512. of the source files are no longer required to be at the end of the
  513. command.
  514. * Style tasks will now support TraX compliant XSL processors if one is present
  515. in your classpath.
  516. * Added a failonerror to the javac task. If set to false, the build will
  517. continue even if there are compilation errors.
  518. * Added nested format elements to the tstamp task allowing additional time
  519. formats to be defined for arbitrary properties.
  520. * Added classpath attribute and nested classpath element to <property>
  521. to make the resource attribute more powerful.
  522. * ${} property expansion will now be performed on the patterns read
  523. from files specified as includesfile or excludesfile attributes.
  524. * The <tar> and <untar> tasks now support GNU format for handling paths
  525. which are greater than 100 characters in length. In addition the <tar>
  526. task now supports nested filesets through which the file permissions
  527. may be controlled.
  528. * wlrun, wlstop and ejbjar now support Weblogic 6.0
  529. * The MPasre task has been updated to work with MParse 2.0
  530. * The documentation has been significantly updated.
  531. Fixed bugs:
  532. -----------
  533. * <signjar> doesn't use deprectated methods anymore.
  534. * javadoc's failonerror attribute works again
  535. * javadoc's additionalparam attribute will now be split into separate
  536. parameters (on spaces) to allow for more than one parameter.
  537. * Changed <sql> task so that printing result sets works on Oracle
  538. * Changes to ddcreator and ejbc helper to respect the descriptor hierarchy
  539. keppgenerated in ejbc can now be turned off
  540. * ejbjar now correctly ignores <ejb-ref> elements in the deployment descriptor.
  541. CMP files are included by parsing the weblogic deployment descriptor rather
  542. than relying on the naming convention used in ant 1.2
  543. * ejbjar includes super classes and super interfaces into the generated ejb
  544. jar files. The <support> nested element allows support classes to be
  545. included in the EJB jar. The toplink element should now correctly locate
  546. the toplink descriptor.
  547. * <vssget> now correctly deals with spaces in arguments
  548. * <jar> fails early if a given manifest file doesn't exist
  549. * <rmic> doesn't search for the _Skel file anymore when stubversion is
  550. set to 1.2.
  551. * <rmic> uses the the same classpath to verify a class can be rmic'd
  552. as it passes to the compiler.
  553. * org.apache.tools.mail.MailMessage (and therefore <mail>) can now
  554. handle SMTP servers sending multi line responses.
  555. * nested <classpath> elements of <taskdef> now work for <taskdef>s not
  556. nested into <target> as well.
  557. * <property> and <available> will search for the resource "foo" instead
  558. of "/org/apache/tools/ant/taskdefs/foo" when given a relative resource
  559. name foo.
  560. * Handle build files in directories whose name contained a "#" character
  561. * <junit> can now log to files whose name contains a comma as well.
  562. * The AntClassLoader now refers to the loader which loaded it, any
  563. requests it does not handle itself. Previously these went to the
  564. primordial loader.
  565. Changes from Ant 1.1 to Ant 1.2
  566. ===============================
  567. Changes that could break older environments:
  568. --------------------------------------------
  569. * Semantics of <property> has changed again in the hope to be more
  570. intuitive. ${} expansion now happens at runtime and <property> tags
  571. living inside of targets only take effect if they are visited at
  572. runtime.
  573. As a side effect of this change, task's attributes get set at runtime
  574. not at parser time as well, which might change the results of
  575. <script>s or other custom tasks that reference other tasks by their id
  576. attribute.
  577. * copying of support files in <javac> has been removed - as well as
  578. the filtering attribute.
  579. * the <expand> and <keysubst> tasks have been removed.
  580. * the ignore and items attributes of directory based tasks have been removed.
  581. * the command line switches _not_ starting with - have been removed.
  582. * Path and EnumeratedAttribute have been moved from
  583. org.apache.tools.ant to org.apache.tools.ant.types.
  584. * the class attributes of <available>, <java>, <rmic> and <taskdef>
  585. have been removed.
  586. * the src attribute of <chmod> has been removed.
  587. * <patch> and <javadoc> have lost some of their attributes.
  588. * <java> and <cvs> have lost some undocumented attributes.
  589. * the Unix antRun script would search for command.sh in the directory
  590. it changed to and invoke this instead of command if present. This
  591. behavior has been dropped.
  592. * <ejbjar> task syntax has been changed significantly
  593. * <exec> is no longer implemented by org.apache.tool.ant.taskdefs.Exec.
  594. Custom tasks that rely on Project.createTask("exec") to return an
  595. instance of this class are going to fail.
  596. * nested <include> and <exclude> elements expect the value of their
  597. name attribute to be a single pattern, they don't accept multiple
  598. patterns anymore. Split them into multiple elements of the same type.
  599. * <delete dir="somedir" /> will now delete the directory itself as
  600. well as all included files. If you just want to clean out the
  601. directory and keep the empty one, use a nested fileset.
  602. Other changes:
  603. --------------
  604. * New tasks: antstructure, cab, execon, fail, ftp, genkey, jlink,
  605. junit, sql, javacc, jjtree, starteam, war, unwar, uptodate,
  606. native2ascii, copy, move, mparse.
  607. * copydir, copyfile, deltree and rename are now deprecated. They
  608. should be replaced with the new copy, delete and move tasks.
  609. * <java> uses a ClassLoader of its own in no-fork mode if a classpath is
  610. specified.
  611. * <style> will create the necessary target directories and reprocess
  612. all files if the stylesheet changes.
  613. * New data types fileset and patternset - expected to get a broader use.
  614. They, as well as PATH like structures, can now be defined on a global
  615. level and later be referenced by their id attribute.
  616. * You can specify environment variables to <exec>.
  617. * <get> can check whether a remote file is actually newer than a local
  618. copy before it starts a download (HTTP only).
  619. * Added a -logger option to allow the class which performs logging to be
  620. specified on the command line.
  621. * Added a -emacs option to tell the logger to leave out taskname adornments
  622. on log output.
  623. * <chmod> works on all files in parallel and supports multiple filesets.
  624. * <replace> can now use tokens and/or values that cross line boundaries.
  625. * build.compiler supports now jvc as well.
  626. * project specific help can now be obtained with the -projecthelp option.
  627. * Added a -debug option to make -verbose less verbose (and more useful)
  628. * Ant will now search for a file named build.xml in the parent directory
  629. and above (towards the root of the filesystem) if you didn't specify
  630. -buildfile and there is no build.xml in the current directory.
  631. * <echo> can now write to a file and accepts nested text.
  632. Fixed bugs:
  633. -----------
  634. * <chmod> didn't work when used as a directory based task.
  635. * Path, Available, Property didn't resolve relative filenames with
  636. respect to the Project's basedir.
  637. * Project didn't interpret the basedir attribute correctly in all
  638. cases.
  639. * Nested <src> in <javac> caused NullPointerException.
  640. * Corrupt Zip- and Jar-files ar now deleted if the task fails.
  641. * many more fixes we've forgotten to document here ...
  642. * The packagelistloc attribute of <javadoc>'s <link> child will be
  643. resolved as a file (i.e. it is either absolute or relative to
  644. basedir).