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

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