📄 whatsnew
字号:
<expandproperties> filterreader. Bugzilla Report 17782.* User defined tasks and typedefs are now handled internally in the same way as predefined tasks and typedefs. Also tasks and typedefs are resolved at a later stage. This causes some differences especially for user defined task containers.Fixed bugs:-----------* Filter readers were not handling line endings properly. Bugzilla Report 18476.* Filtersets were also not handling line endings properly.* Expand tasks did not behave as expected with PatternSets.* <property environment=... /> now works on OS/400.* <cab> could hang listcab on large <fileset>s.* The starteam stcheckout, stcheckin tasks now correctly compute status of files against whatever local tree they are run against and, optionally, will not process a file if it is current. Previously you had to process everything unless you ran against the default folder which wasn't the normal use-case for ant-starteam. The stlist task now similarly displays that status correctly making it a more generally useful tool.* entity includes would cause exceptions if path names included spaces.* addConfiguredXXX would not work for TaskAdapter wrapped tasks* Fix <ilasm> outputfile testing so that the output file does not need to exist beforehand.* Ant will now exit with a return code of 1 if it encounters problems with the command line arguments.* ClassLoader creation changes to use a factory method in Project. A new class AntClassLoader2 implemented for 1.2+ specific features including Package information and addition of classes specified in the Class-Path element of a Jar's manifest.* It is now possible in <exec> to resolve the executable to a project basedir or execution dir relative executable. The resolveExecutable must be used to pick up such executables.* splash screen wouldn't disappear when build was finished.* <exec> output and error streams can now be redirected independently to either a property or a file (or both)* TarEntry's File-arg constructor would fail with a StringIndexOutOfBoundsException on all OSes where os.name is shorter than seven characters. Bugzilla Report 18105.* <copy> and <move>'s failonerror didn't apply to filesets pointing to non-existant directories. Bugzilla Report 18414.* The <stripjavacomments> filter sometimes removed parts of string constants. Bugzilla Report 17441.* <antlr> will now recompile your grammar if the supergrammar has changed. Bugzilla Report 12691.* <property env> will now work on Unices with /bin/env instead of /usr/bin/env. Bugzilla Report 17642.* <jar index="on"> could include multiple index lists. Bugzilla 10262.* The index created by <jar> didn't conform to the spec as it didn't include the top-level entries. Bugzilla Report 16972.* <tar> and <zip> didn't honor the defaultexcludes attribute for the implicit fileset. Bugzilla Report 18637.* The <replacetokens> filter would throw an exception if the token's value was an empty string. Bugzilla Report 18625.* Perforce tasks relying on output from the server such as <p4change> and <p4label> were hanging. Bugzilla Reports 18129 and 18956.* Improve exception and logging behavior of Perforce tasks. Bugzilla report 18154.* build.sh install had a problem on cygwin (with REALANTHOME). Bugzilla Report 17257* <replaceregexp> didn't work for multi-byte encodings if byline was false. Bugzilla Report 19187.* <replaceregexp> was altering unnecessarily the timestamp of the directories containing the files to process Bugzilla Report 22541.* file names that include spaces need to be quoted inside the @argfile argument using forked <javac> and (all JDKS). Bugzilla Report 10499. NB : a first correction was only introducing quotes for JDK 1.4 It has been changed to quote for all external compilers when paths contain spaces. Also the backslashes need to be converted to forward slashes Bugzilla Report 17683.* Setting filesonly to true in <zip> and related tasks would cause the archives to be always recreated. Bugzilla Report 19449.* file names that include spaces need to be quoted inside the @argfile argument using <javadoc> and JDK 1.4. Bugzilla Report 16871.* <junit> didn't work with custom formatters that were only available on the user specified classpath when a timeout occured. Bugzilla Report 19953.* <different> selector : make ignoreFileTimes effectively default to true and fix a bug in the comparison of timestamps. Bugzilla Report 20205.* <different> selector can now be nested directly under a fileset Bugzilla Report 20220.* <cvstagdiff> had a problem with "dd-MM-yy hh:mm:ss" formats Bugzilla Report 15995.* <cvstagdiff> cvsroot and package attributes added to the root element tagdiff of the xml output Bugzilla Report 16081.* <fixcrlf> make fixcrlf create its temporary files in the default directory of FileUtils#createTempFile instead of the destination dir of fixcrlf. Bugzilla Report 20870.* <ejbjar> implementation for Borland. Prevent the task from being blocked by error messages coming from java2iiop. Bugzilla Report 19385.* <unzip>'s and <untar>'s nested patternsets didn't work as documented when the pattern ended in a slash or backslash. Bugzilla Report 20969.* <fixcrlf> will now create the parent directories for the destination files if necessary. Bugzilla Report 20840.* <xmlproperty> now handles CDATA sections. BugZilla Report 17195* <translate> now translate tokens that are placed close together. Bugzilla Report 17297* Nested websphere element for ejbjar does not support spaces in file name. Bugzilla Report 21298* Don't multiply Class-Path attributes when updating jars. Bugzilla Report 21170.* Do not overwrite the value (increment) attribute of PropertyFile nested Entry element. Bugzilla Report 21505.* Prevent sysproperties with no key or no value from being added in <junit>. Bugzilla Report 21684.* Allow references to be properly inherited via antcall Bugzilla Report 21724.* ftp chmod failed when the remote system was UNIX and local system Windows Bugzilla Report 21865.* ftp put with chmod failed when the remote system was UNIX and local system Windows Bugzilla Report 23143.* ftp did not set the ascii mode explicity, causing problems with ftp servers having binary as default* ftp was not able to download files when they were pointed to by symbolic links Bugzilla Report 14063.* ftp is able to download also directories pointed to by symbolic links.* replace would change \r\n into \r\r\n under Windows.* junitreport with frames did not display a link for classes without a package or in the top package. Bugzilla Report 21915.* Project.toBoolean(String) now handles null as argument and does not throw a NullPointerException any more.* The socket condition will now close the socket created to test. Bugzilla Report 23040.* <junit includeantruntime="true" fork="true"> replaced the CLASSPATH instead of adding to it. Bugzilla Report 14971.* <splash> could fail on JVMs that use null to indicate the system classloader. Bugzilla Report 23320.* <xmlcatalog>s only worked when defined inside of tasks. Bugzilla Report 20965.* <csc> and siblings (<vbc> <jsharpc>) handle large filesets byautomatic use of response files. Bugzilla report #19630Other changes:--------------* All tasks can be used outside of <target>s. Note that some tasks will not work at all outside of targets as they would cause infinite loops (<antcall> as well as <ant> and <subant> if they invoke the current build file).* Six new Clearcase tasks added.* A new filter reader namely tokenfilter has been added. Bugzilla Report 18312.* A new attribute named skip is added to the TailFilter and HeadFilter filter readers.* The filesetmanifest attribute of <jar> has been reenabled.* The start and end tokens for <translate> may now be longer than a single character.* <setproxy> lets you set the username and password for proxies that want authentication* <loadproperties> has a new encoding attribute.* <echoproperties> can now create XML output.* <echoproperties> has a new srcfile attribute that can make it read properties files and output them instead of Ant's properties.* <filterset> will now resolve filters recursively.* <input> has a new attribute that allows you to specify a default value.* Added <image> task (requires JAI).* <image> task has now proportions attribute in the <scale/> nested element instead of keepproportions (bringing in more functionality)* New condition <isreference>* <ftp> now has a preservelastmodified attribute to preserve the timestamp of a downloaded file.* new rmdir action for <ftp> that removes directories from a fileset.* <ftp> has attributes timediffauto and timediffmillis to use together with the newer attribute to tell ant to take into account a time difference between client and remote side. Bugzilla Report 19358.* <ftp> has been optimized to go directly to the include patterns. This reduces scanning time under UNIX when followsymlinks="true" and casesensitive="true" (the default) Bugzilla Report 20103.* The SOS and VSS tasks will no longer unconditionally prepend a $ to vsspath or projectpath.* OS/400 now gets detected by the os condition.* <arg> has a new attribute pathref that can be used to reference previously defined paths.* <xmlproperty> has been improved, you can now expand ${properties}, define ids or paths and use Ant's location magic for filename resolutions in the XML file.* <xmlcatalog> will now support external catalogs according to the OASIS "Open Catalog" standard - if resolver.jar (newer than version 1.0) from Apache's xml-commons is in your CLASSPATH.* Starteam tasks now have support for revision labels and build labels. Checkouts now have the option of using repository timestamps, instead of current.* new task <symlink> that creates and maintains symbolic links.* new tasks <chown> and <chgrp> which are wrappers of the Unix commands.* new task <attrib> to change file attributes on Windows systems.* <style> has a new attribute reloadstylesheet to work around a bug in widespread Xalan versions.* <tarfileset> has a new dirmode attribute to specify the permissions for directories.* <fixcrlf>'s eol attribute now also understands "mac", "unix" and "dos".* <classfileset> now picks up dependencies of the form MyClass.class. This works for the code generated by the Sun java compiler. It may not work for all compilers.* a new attribute "globalopts" can be added to all Perforce tasks. You can put in it all the strings described by p4 help usage. Refer to the docs for more information.* new Perforce tasks <p4integrate> , <p4resolve>, and <p4labelsync>* <p4submit> will change the property p4.change if the Perforce server renumbers the change list. It will set the property p4.needsresolve if the submit fails, and the message says that file(s) need to be resolved.* <replaceregexp> now has an optional encoding attribute to support replacing in files that are in a different encoding than the platform's default.* The <exec> task may now have its input redirected from either a file or a string from the build file. The error output can be separated to a different file when outut is redirected. standard error may be logged to the Ant log when redirecting output to a file* The <java> task also supports the input redirection and separate error streams introduced to the <exec> task. In addition, it is now possible to save the output into a property for use within the build file as was possible with <exec> in Ant 1.5* The <javadoc> task <tag> subelement has been enhanced to allow files with tag mappings to be used.* New tasks: <scp> supports file transfers, <sshexec> executes a command over SSH. They require jsch, a BSD licensed SSH library that can be found at http://www.jcraft.com/jsch/index.html* New filterreader <escapeunicode/>.* Support for HP's NonStop Kernel (Tandem) OS has been added.* <cab>'s basedir attribute is now optional if you specify nested filesets. Bugzilla Report 18046.* New task <sync> that synchronizes two directory trees.* <apply> has new forwardslash attribute that can force filenames to use forward slashes (/) as file separators even on platforms with a different separator. This is useful if you want to run certain ported Unix tools.* Copy has a new outputencoding attribute that can be used to change the encoding while copying files. Bugzilla Report 18217.* The xml formatter for JUnit will now honor test case names set with setName. Bugzilla Report 17040.* JUnit now has an attribute reloading, which, when set to false, makes the task reuse the same class loader for a series of tests.* <concat> now supports filtering and can check timestamps before overriding a file. Bugzilla Report 18166.* <junit> has a new attribute tempdir that controls the placement of temporary files. Bugzilla Report 15454.* <jdepend> now supports a new nested element <classespath> which is the same as <sourcespath> but point to compiled classes (the prefered mode of operation for JDepend > 2.5). Additionally, nested <exclude> elements can be used to exclude certain packages from being parsed. Bugzilla Report 17134.* The JProbe tasks now also work with JProbe 4.x. Bugzilla Report 14849.* <javacc> and <jjtree> will now autodetect JavaCC 3.x and can use it.* <sql> has a new attribute to control escape processing.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -