📄 whatsnew
字号:
Changes from Ant 1.6.0 to Ant 1.6.1===================================Changes that could break older environments:--------------------------------------------* License is now Apache Software License 2.0 see http://www.apache.org/licenses/ for more informationFixed bugs:-----------* Fix handling of default ant namespace for nested elements.* Fix jboss element of ejb task (introduced in ant 1.6.0).* <whichresource> failed to load classes correctly.* Ant could fail to start with a NullPointerException if ANT_HOME/lib/ant-launcher.jar was part of the system CLASSPATH.* Fix spurious infinite loop detection for filters (introduced in ant 1.6.0). Bugzilla Report 23154.* presetdef'ed types did not work with the ant-type attribute* fixed case handling of macrodef attributes and elements. Bugzilla Reports 25687 and 26225.* <java> ignored the append attribute, Bugzilla Report 26137.* The gcj compiler adapter for <javac> failed if the destination directory didn't exist. Bugzilla Report 25856.* Ant now fails with a more useful message if a new process will be forked in a directory and that directory doesn't exist.* junitreport was failing for long string litterals Bugzilla Report 19301.* <splash> used to break the build on non-GUI environments. Bugzilla report 11482.Other changes:--------------* Shipped XML parser is now Xerces-J 2.6.1* upgrade to xml-apis.jar from Xerces-J 2.6.1.* <fixcrlf> has a new attribute - fixlast. Bugzilla Report 23262.* <p4submit> has 2 new attributes, needsresolveproperty and changeproperty. Bugzilla Report 25711.* Extending ClearCase Tasks : - Added an extra option to 'failonerr' to each ClearCase task/command. - Extended the functionality of cccheckout. It can check (notco) to see if the desired element is already checked out to the current view. Thus it won't attempt to check it out again. - Added three new ClearCase commands: ccmkattr, ccmkdir, ccmkelem Bugzilla Report 26253.* add description attributes to macrodef attributes and elements. Bugzilla Report 24711.* added nested text support to <macrodef> * added initial support for Java 1.5. Java 1.5 is now correctly detected by Ant and treated just like Java 1.4. You can now specify source="1.5" in the <javac> task.* created new task <cvsversion>* added support for branch logging via the tag attribute in <cvschangelog> Bugzilla Report 13510.* added support the groovy language in the script and scriptdef tasks.Changes from Ant 1.6.B3 to Ant 1.6.0====================================Changes that could break older environments:--------------------------------------------* Attempts to read input in <java> and <exec> tasks will now receive an EOF rather than blocking. If you run such a process and rely on it blocking, as it would do in Ant 1.5, you may have problem.* <checksum> message "calculating checksum" downgraded to MSG_VERBOSE to limit output in case of large filesets. Bugzilla Report 25607.* Change logging level of captured standard error output from MSG_ERR to MSG_WARN. Previous some standard error was output as MSG_ERR and some as MSG_WARN (namely standard error from exec and forked jvms).Fixed bugs:-----------* <xmlcatalog>s only worked when defined inside of tasks. Bugzilla Report 20965.* <xmlcatalog> Wrong file location to URL conversion in XMLCatalog. Bugzilla Report 23913.* <checksum> was throwing a null pointer exception, when used with nested filesets and totalproperty attribute not set. Bugzilla Report 25606.Other changes:--------------Changes from Ant 1.6.B2 to Ant 1.6.B3=====================================Changes that could break older environments:--------------------------------------------* Changed namespace processing. The namespace uri of nested elements of a type or a task are now the same as the type or task. Previously the namespace uri of nested elements was ant's namespace uri. This change will affect users of ant 1.6b1 and ant 1.6b2.* <csc>'s executable attribute defaults to mcs on non-Windows platforms.Fixed bugs:-----------* the <java> task checks that the Main method of the class to be executed is static, and fails with a decent BuildException if it is not the case* a space at the end of the Ant-Version line of the default manifest has been removed* better debugging support for ApacheCatalogResolver Bugzilla Report 24070.* better report of exceptions in the renaming of the old file in <zip update="true"/> and the derived classes <jar>, ...* use of <parallel> and xmlns:prefix="antlib:package"* user and new arguments were swapped in PropertyHelper setNew and setUser. Bugzilla Report 23966.* <style/> be able to resolve entities inside stylesheets.* <csc> and other .NET tasks : fixed Error when compiling many source files. Bugzilla Report 19630.* <junit> Make properties available in timed-out tests. Bugzilla Report 23935.* <junit> Pull ant-launcher.jar in the runtime as well.* <telnet> : better support for people debugging timed out reads.* <ssh> : parse properly return codes from server. Also fix for Bugzilla Report 23986.* <scp> If remotedir has been omitted, make it default to "." . Bugzilla Report 23987.* starteam tasks : insure proper disconnect from the server. Bugzilla Report 24110.* <script>, <scriptdef> fix problem : script task cannot cope with undefined task/type elements in buildfile Bugzilla Report 23915.* <cvstagdiff> had a problem with aliased modules and with requests for multiple modules. Bugzilla Reports 21373 and 22877.* <cvstagdiff> could not parse properly the revision number of new files with CVS 1.11.9 or higher. Bugzilla Report 24406.* <ftp> null pointer exception when attempting rmdir in an empty directory. Bugzilla Report 24440.* <scp> could corrupt files when transfering lots of files. Bugzilla Report 24449.* <jdepend> Fix NPE Bugzilla Report 24344.Other changes:--------------* Attributes in the template bodies of <macrodef> are now denoted by @{attribute} instead of ${attribute}* <concat> will expand properties entered in the text of the tag* <exec> resolution behavior (resolveexecutable attribute) has been improved* running.html has been augmented with a list of the magic properties* welcome.html documentation has been updated* Change default uri from ant:core to antlib:org.apache.tools.ant* upgrade to xml-apis.jar from Xerces-J 2.6.0.* Shipped XML parser is now Xerces 2.6.0* set project for created targets.* make sure that the checkstyle stylesheets make their way into the distribution.* improve ant's own build file concerning the sources which depend upon bsf (rhino).* a number of documentation corrections. Bugzilla reports 24059, 24060, 24069, 24074.* replacement of accentuated characters in the source code (actually in JavaDoc comments) by UNICODE escapes. Bugzilla report 23919.* load all xml resources for typedef not just the first Bugzilla report 24024* <presetdef> fix so that the preset attributes are optional and may be overridded (previosly the attributes were set twice)* provide stack for errors using import, ant, antcall, subant and macros* import task uses the FileUtils#resolveFile method to resolve the imported file, in order to avoid trouble on Windows or Netware* ignore attributes from different URIS* <jdepend> fix timeout attribute of jdepend add unit tests add includeruntime to allow unittests to run checkstyleChanges from Ant 1.6.B1 to Ant 1.6.B2=====================================Changes that could break older environments:--------------------------------------------Fixed bugs:-----------* fix usage of mixed case names of add(typedef) introspection. fix by moving the tolower method from unknownelement to introspectionhelper.* documentation added for -lib option used when starting ant via launcher Bugzilla Report 23454.* user-friendly messages added for incorrect use of -lib option Bugzilla Report 23454.* make <input/> be skipped when a property is already set Bugzilla Report 19967.* improved cleanup of temporary files this concerns <javadoc/>, <replace/>, <zip/>, <javac/>, <cvstagdiff/>, <cab/>, <replaceregexp/>, <junit/>, metamata tasks, sitraka tasks, <symlink/> temporary files are now marked with deleteOnExit Bugzilla Report 17512.* Reuse the resolution logic of <property> inside <loadproperties>. So <expandproperties/> is not needed any more together with <loadproperties/> Bugzilla Report 17782.* Comparison of TemplateElement(s) and Attribute(s) fixed inside macrodef.* Don't silently swallow exceptions when something is wrong with adding or removing shutdown hooks , Bugzilla Report 23609.* noinform attribute for Websphere element of <ejbjar/> Bugzilla Report 23535.* <junit/> (JunitTestRunner) Don't mask arbitrary exceptions when looking for a suite method. Bugzilla Report 23033.* <ftp/> fix problem with relative remotedir Bugzilla Report 23833.* ssh tasks : make .ssh/known_hosts optional* <vssget/> was sending a wrong command line prefix for labels -VL-Lsome.label this change fixes it to -VLsome.label instead* <zipfileset/> allow it to refer to a fileset, to which zipfileset specific attributes are added this solves one frequent use case in the <war/> taskOther changes:--------------* add an optional attribute to <import/>* upgrade protected access to public for setMacroDef for macroinstance objectChanges from Ant 1.5.4 to Ant 1.6=================================Changes that could break older environments:--------------------------------------------* This version of Ant can not be built with JDK 1.1 and requires at least Java 1.2 at runtime as well. Compiling for a 1.1 target is still supported.* Targets cannot have the empty string as their name any longer.* ant.jar's manifest does no longer include a Class-Path entry, so it is no longer possible to run Ant via "java -jar ant.jar" without manually altering the CLASSPATH. Instead of that a file ant-bootstrap.jar is included in the etc directory of the binary distribution, copy this to the lib directory and use "java -jar ant-bootstrap.jar" instead if you want to run Ant without the wrapper script (not recommended).* The <script> task now requires Apache BSF instead of the older IBM version. See <http://jakarta.apache.org/bsf/>* <xmlproperty> will no longer fail if the file to be loaded doesn't exist.* XML namespaces are now enabled in the XML parser, meaning XML namespace declarations no longer cause errors. However task names containing colons will cause errors unless there is a corresponding namespace uri.* The <ftp> and <telnet> tasks now require Jakarta Commons Net instead of the older ORO Netcomponents version. See <http://jakarta.apache.org/commons/net/index.html>.* <input> will no longer prompt the user and wait for input if the addproperty attribute is set to a property that has already been defined in the project. If you rely on the task waiting for input, don't use the addproperty attribute.* The Class-Path attribute in manifests will no longer merge the entries of all manifests found, but will be treated like all other manifest attributes - the most recent attribute(s) will be used.* New Launch mechanism implemented. This moves some functionality from the batch files / shell scripts into Java. This removes environment limitations, for command issues, directory depth issues on Windows. Also allows a per-user library location to be used if the main Ant install is locked down.* The Entry nested element of PropertyFile will not any more have its value attribute (actually increment) overwritten with the new value of the entry after execution.* Output stored from a <java> or <exec> task is now exactly as generated. No conversion to platform end-of-line characters is performed.* <translate> will now preserve line endings.* <ftp> followsymlinks="false" in nested fileset definitions is explicitly required in order to exclude remote symbolic links (when doing a get, chmod, delete, rmdir).* The values of the Copy#fileCopyMap variable has changed from String to String[]. (In java 1.5 terms it was Hashtable<String, String> and is now Hashtable<String, String[]>). This will affect third party code that extend Copy and override Copy#doFileOperations.* <loadproperties> didn't expand properties while <property file="..."/> does, so they were not equivalent. This has been fixed, which means that propetries may get expanded twice if you use an
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -