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

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