📄 whatsnew
字号:
* Project.getBuildListeners now returns a clone of the listener list. Changes to the returned list will not affect the listeners currently attached to the Project. It also means that it is safe to iterate over the returned list if listeners are added or removed during the traversal.* <pvcs> default filenameformat has been different from Ant 1.4.1. Now it is different from 1.5beta1 and 1.5beta2.* Some messages that are printed during startup will not be written to the logfile specified via -logfile as they might destroy the format of the file for special BuildLoggers (like XmlLogger).Fixed bugs:-----------* <available> could fail to find files or directories that happen to start with the name of the project's basedir but are not children of the basedir.* Nested <property>'s inside <ant> can now be overriden by subsequent <ant> and <antcall> tasks.* <xslt>'s outputtype attribute wouldn't do anything.* <linecontains> filterreader could swallow lines.* <sequential> used to configure the tasks (set their attributes) before the first task has been executed. This means that properties that have been set by nested task seemed to be unset for the other tasks in the same <sequential> element.* <javac>'s sourcepath setting has been ignored by some compiler implementations.* <javadoc>'s packagelist attribute didn't work.* the plain mailer would always use port 25 in <mail>.* Ant's default logger could swallow empty lines.* ejbjar's iPlanet nested element now can process multiple descriptors.* IPlanetEjbc was looking in the wrong place for four iiop files.* <javac> would pass the -source switch to JDK 1.3's javac, even though it doesn't support it.Other changes:--------------* <checksum> now uses a buffer (of configurable size).* The "Trying to override task definition" warning has been degraded to verbose level if the two task definitions only differ in the class loader instance that has loaded the definition.* Add a jvmargs to the ejbjar's weblogic element to allow additional arguments to be provided to the VM runnign ejbc. Document the jvmdebuglevel attribute which can be used to avoid warnings about interface classess being found on the classpath. Document the new <sysproperty> element which allows JVM properties to be defined. Added an outputdir attribute to allow the destination to be a directory into which the exploded jar is written.* ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5Changes from Ant 1.5beta1 to Ant 1.5beta2=========================================Changes that could break older environments:--------------------------------------------* Properties will now be expanded in mail message bodies. This meansthat one $ sign will be stripped if your mail message contains the text$$.* org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.* Available#setFile now again uses a File argument as it did in 1.4,this may break environments that have been adapted to the Stringargument version present in 1.5beta1.Fixed bugs:-----------* When <move> attempts a rename, it deletes the destination file, if it exists, before renaming the source file. However, <move> was not checking if the destination file was actually a directory before trying to delete it.* Make CVS Tasks to work under Cygwin.* Fix LineContains to handle huge files elegantly without causingStack Overflows.* if you ask for the "classic" compiler on Java1.4, you get upgraded to"modern" because there is no classic compiler any more.* the <http> condition was viewing 404 'not found' exceptions as success. Nowit defaults to viewing any response >=400 as an error, and has an errorsBeginAtattribute you can use if you want a higher or lower value.* <get> throws a build exception on an http authorization error, unless youhave set ignoreerrors to true.* <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lowercase, though the old spelling is retained for anyone who used it.* Merging of Manifests in jar now works as documented.* paths that have been separated by colons would be incorrectly parsedon NetWare.* runant.pl now supports NetWare.* <tempfile> and <setproxy> tasks were in beta1, but not defined bydefault; They now are. <tempfile> fills a property with the name of atemporary file; <setproxy> lets you set the JVM's http, ftp and socks proxysettings.* <available classname="foo" ignoresystemclasses="true"> failed forJDK 1.1 and 1.2, even if the class could be found on theuser-specified classpath.* <property environment=... /> now works on z/OS.* forked <javac> failed for the wrong reason on JDK 1.1 - Ant woulduse a temporary file to hold the names of the files to compile undersome conditons, but 1.1 doesn't support this feature. Ant will nolonger try this, but you may run into problems with the length of thecommand line now.* the refid attribute for <property>s nested into <ant> or <param>snested into <antcall> didn't work.* <replaceregexp> didn't work for nested <fileset>s.* <javadoc> dropped sourcepath entries if no "interesting" .javasource files could be found below them. This has been backwardsincompatible and caused problems with custom doclets like xdoclet.* Using the doclet, docletpath or docletpathref attributes of<javadoc> may have caused NullPointerExceptions.* nested <filesets> of <javadoc> would include too much.* <dependset> will no longer choke on <targetfileset>s that point tonon-existing directories.* <patch> didn't work at all.* <replace> and <replaceregexp> now fail if the file they are workingon is locked.* <javadoc> would pick up the wrong executable in the combination JDK1.2 and AIX.Other changes:--------------* z/OS now gets detected by the os condition.* <fileset> and <dirset> now have an optional followsymlink attributethat can prevent Ant from following symbolic links on some platforms.* BeanShell is now supported in the <script> task.* <ejbjar> under Weblogic attempts to use the ejbc20 compiler for 2.0 beans based on the deployment descriptor's DTD reference. Under weblogic 7.00 Beta this ejbc class has been deprecated. To avoid the deprecation warning use ejbcclass="weblogic.ejbc".* <ejbjar> will add a manifest to the generated jar based on the naming convention in use. This overrides the manifest specified in the <ejbjar> attributeChanges from Ant 1.4.1 to 1.5beta1==================================Changes that could break older environments:--------------------------------------------* Important: Single $ signs are no longer silently stripped!* The filesetmanifest attribute added to <jar> after the 1.4.1 release has been removed for now. This change may affect only the 1.5Beta/1.6Alpha users. An attempt will be made to add this feature back into Ant 1.6.Fixed bugs:-----------* <zip> and friends would always update existing archive if you set the update attribute to true.* To support backward compatibility with older versions, <pathconvert> will once again set the property, even if the result is the empty string, unless the new 'setonempty' attribute is set to false|no|off (default is "true").* The manifest task would crash XmlLoggerOther changes:--------------* added **/.svn and **/.svn/** to the default excludesChanges from Ant 1.5beta2 to Ant 1.5beta3=========================================Changes that could break older environments:--------------------------------------------* Project.getBuildListeners now returns a clone of the listener list. Changes to the returned list will not affect the listeners currently attached to the Project. It also means that it is safe to iterate over the returned list if listeners are added or removed during the traversal.* <pvcs> default filenameformat has been different from Ant 1.4.1. Now it is different from 1.5beta1 and 1.5beta2.* Some messages that are printed during startup will not be written to the logfile specified via -logfile as they might destroy the format of the file for special BuildLoggers (like XmlLogger).* <pathconvert> won't set the property if the result is the empty string.Fixed bugs:-----------* <available> could fail to find files or directories that happen to start with the name of the project's basedir but are not children of the basedir.* Nested <property>'s inside <ant> can now be overriden by subsequent <ant> and <antcall> tasks.* <xslt>'s outputtype attribute wouldn't do anything.* <linecontains> filterreader could swallow lines.* <sequential> used to configure the tasks (set their attributes) before the first task has been executed. This means that properties that have been set by nested task seemed to be unset for the other tasks in the same <sequential> element.* <javac>'s sourcepath setting has been ignored by some compiler implementations.* <javadoc>'s packagelist attribute didn't work.* the plain mailer would always use port 25 in <mail>.* Ant's default logger could swallow empty lines.* ejbjar's iPlanet nested element now can process multiple descriptors.* IPlanetEjbc was looking in the wrong place for four iiop files.* <javac> would pass the -source switch to JDK 1.3's javac, even though it doesn't support it.Other changes:--------------* <checksum> now uses a buffer (of configurable size).* The "Trying to override task definition" warning has been degraded to verbose level if the two task definitions only differ in the class loader instance that has loaded the definition.* Add a jvmargs to the ejbjar's weblogic element to allow additional arguments to be provided to the VM runnign ejbc. Document the jvmdebuglevel attribute which can be used to avoid warnings about interface classess being found on the classpath. Document the new <sysproperty> element which allows JVM properties to be defined. Added an outputdir attribute to allow the destination to be a directory into which the exploded jar is written.* ejbjar now supports Borland Enterprise Server 5 and Jonas 2.5Changes from Ant 1.5beta1 to Ant 1.5beta2=========================================Changes that could break older environments:--------------------------------------------* Properties will now be expanded in mail message bodies. This meansthat one $ sign will be stripped if your mail message contains the text$$.* org.apache.tools.ant.taskdefs.Expand no longer extends MatchingTask.* Available#setFile now again uses a File argument as it did in 1.4,this may break environments that have been adapted to the Stringargument version present in 1.5beta1.Fixed bugs:-----------* When <move> attempts a rename, it deletes the destination file, if it exists, before renaming the source file. However, <move> was not checking if the destination file was actually a directory before trying to delete it.* Make CVS Tasks to work under Cygwin.* Fix LineContains to handle huge files elegantly without causingStack Overflows.* if you ask for the "classic" compiler on Java1.4, you get upgraded to"modern" because there is no classic compiler any more.* the <http> condition was viewing 404 'not found' exceptions as success. Nowit defaults to viewing any response >=400 as an error, and has an errorsBeginAtattribute you can use if you want a higher or lower value.* <get> throws a build exception on an http authorization error, unless youhave set ignoreerrors to true.* <wsdltodotnet> was spelt in Wintel case: <WsdlToDotnet>. It is now lowercase, though the old spelling is retained for anyone who used it.* Merging of Manifests in jar now works as documented.* paths that have been separated by colons would be incorrectly parsedon NetWare.* runant.pl now supports NetWare.* <tempfile> and <setproxy> tasks were in beta1, but not defined bydefault; They now are. <tempfile> fills a property with the name of atemporary file; <setproxy> lets you set the JVM's http, ftp and socks proxysettings.* <available classname="foo" ignoresystemclasses="true"> failed forJDK 1.1 and 1.2, even if the class could be found on theuser-specified classpath.* <property environment=... /> now works on z/OS.* forked <javac> failed for the wrong reason on JDK 1.1 - Ant woulduse a temporary file to hold the names of the files to compile undersome conditons, but 1.1 doesn't support this feature. Ant will nolonger try this, but you may run into problems with the length of thecommand line now.* the refid attribute for <property>s nested into <ant> or <param>snested into <antcall> didn't work.* <replaceregexp> didn't work for nested <fileset>s.* <javadoc> dropped sourcepath entries if no "interesting" .javasource files could be found below them. This has been backwardsincompatible and caused problems with custom doclets like xdoclet.* Using the doclet, docletpath or docletpathref attributes of<javadoc> may have caused NullPointerExceptions.* nested <filesets> of <javadoc> would include too much.* <dependset> will no longer choke on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -