Changes from Ant 1.3 to Ant 1.4 =========================================== Changes that could break older environments: -------------------------------------------- * Zip.setWhenempty() has changed its signature. * is now implemented using a factory. This makes extending rmic to use a new compiler a lot easier but may break custom versions of this task that rely on the old implementation. * several Zip methods have changed their signature as we now use a Zip package of our own that handles Unix permissions for directories. Furthermore will now use the platform's default character encoding for filenames - this is consistent with the command line ZIP tools, but causes problems if you try to open them from within Java and your filenames contain non US-ASCII characters. Use the new encoding attribute of the task and set it to UTF8 to get the old behavior. * The task has been move to a package of its own. * JUnitResultFormater has two additional methods that must be implemented by custom formatters. * Ant will no longer use the canonical version of a path internally - this may yield different results on filesystems that support symbolic links. * The output generated by the xml formatter for has changed again, it doesn't format the numeric value in the time attribute anymore. * Pattern matching rules have changes slightly, the pattern foo* doesn't match files contained in a directory named foo - use foo/* instead. * will not remove trailing whitespace at the end of lines anymore. * The Classloader usage has been changed for the taskdef, property, available and sql tasks so that it delegates to the parent classloader. This may cause ClassNotFoundExceptions to be thrown if a system class attempts to load a class in the taskdef's classpath (typically factory objects). * Ant now allows multithreading of tasks and the containment of tasks within other tasks. This can break customer listeners which do not expect messages from a task before the previous task has finished. * Ant now installs its own ouput stream into System.out to route output to the task currently executing on the current thread. This also means that all output is now routed as Ant message events. Customer listeners and loggers should not call System.out at any time. This has always been true but such usage now will cause problems due to possible recursion. * Invalid manifest files will now cause build failures in the task. * Ant Introspection now looks for methods with method names starting with addConfigured. When called these methods are passed an argument after it has been configured from the build file. Custom tasks supporting nested elements starting with the name configured will no longer function. Other changes: -------------- * New tasks: ear, p4counter, record, cvspass, vsscheckin, vsscheckout, typedef, sleep, mimemail, set of tasks for Continuus/Synergy, dependset, condition * Ant now uses JAXP 1.1 * rmic now supports Kaffe's and Weblogic's version of rmic. * new magic property build.rmic to chose the rmic implementation * will now add empty directories as well * you can now specify a description for * can now work on s * now supports a value attribute * supports nested text * won't override files that are already in the correct format. * now supports REM comments as well as // and -- * now has a nested element following the same idea as 's . * can now handle multiple projects. * now has a "type" attribute you can use in conjunction with the "file" attribute to specify whether the "file" you're looking for is a file or a directory. * New formatter named "brief" * changes * Add support for Borland Application Server to the task using a nested element. * Add support for iPlanet Application Server to the task. Also includes some iPlanet utility tasks * Add support for JBoss Application Server to the task. * Add a naming attribute to control the naming scheme that ejbjar uses to name the generated EJB jars. * Weblogic element now sets the compiler class for EJB 2.0 beans * elements can be specified at the level for building generic beans * elements can now be URLs * Allow the manifest to be specified for the generated jars * The weblogic element now supprts an attribte noEJBC to skip the processing of the jar by ejbc. The ejbc step will then occur at deployment * weblogic will tell ejbc to use Jikes compiler if build.compiler is set to jikes. It can be restored to the default, javac, operation if desired. * Allow the Delimiter to be set in the so that Oracle stored procs may be entered * and can now optionally skip empty filesets. * has a new useexternalfile attribute that makes it use a temporary file for sourcefile and package names - helps to defeat command line length limitations. * Data types like can now be defined inside of s * you can now specify a classpath for