📄 whatsnew
字号:
* <sql> is able to display properly several resultsets if you are running a compound sql statement. Bugzilla Report 21594.* A new <containsregexp> selector has been added, that selects files if their content matches a certain regular expression.* <antlr>'s debug attribute has been enabled. Bugzilla Report 19051.* <mail> has a new attribute charset. Bugzilla Report 15434.* <mail> has new attributes user and password for SMTP auth. maillogger can also use this. The implementation only works with JavaMail (encoding="MIME"). Implementation with plain mail remains to do. Bugzilla Report 5969.* <mail> and mailloger support SMTP over TLS/SSL Bugzilla Report 19180.* <mail> the attributes from, replyto ,tolist, cclist, bcclist can now contain email addresses of the form name <address@xyz.com> or (name) address@xyz.com Bugzilla Report 22474.* <mail> (version PlainMail) prevent blank headers from being sent, make the order of the headers of plain mail messages predictable Bugzilla Report 22088.* <zipfileset> can now be defined in the main body of a project and referred to with refid="xyz". Bugzilla Report 17007.* A wrapper script for OS/2 has been added.* <unzip> will now detect and successfully extract self-extracting archives. Bugzilla Report 16213.* <stcheckout> has a new attribute "converteol" that can be used to control the automatic line-end conversion performed on ASCII files. Bugzilla Report 18884.* Users can now modify the list of default excludes using the new defaultexcludes task. Bugzilla Report 12700.* There is a new data type <propertyset> that can be used to collect properties. It is supported by <ant>, <antcall>, <subant>, <java>, <echoproperties> and <junit>.* <concat> can now control the encoding of the output as well and optionally add new-line characters at the end of files that get concatenated but don't end in newlines. Bugzilla Report 12511.* <rpm> will detect the rpmbuild executable of RedHat 8.0 and newer and use that if it is on your PATH. Bugzilla Report 14650.* A new task <rexec> has been added that requires commons-net to work. Bugzilla Report 19541.* <javadoc> now supports a nested <arg> element in addition to the additionalparams attribute.* You can now determine the order of standard tags in <javadoc> via <tag> elements - you must not use the description attribute for them. Bugzilla Report 18912.* <javadoc> now supports the -noqualifier switch. Bugzilla Report 19288.* <javac>'s executable attribute can now also be used to specify the executable for jikes, jvc, sj or gcj. Bugzilla Report 13814.* <javac> has a new attribute tempdir that can control the placement of temporary files. Bugzilla Report 19765.* A new magic property build.compiler.jvc.extensions has been added that can be used to turn of Microsoft extensions while using the jvc compiler. Bugzilla Report 19826.* You can now limit the parallelism of <apply> and <chmod> by using the new maxparallel attribute.* With the new addsourcefile attribute, you can make <apply> ommit the source file names from the command line. Bugzilla Report 13654.* <apply> and <chmod> now support nested <filelist>s as well as <dirset>s. Bugzilla Reports 15929 and 20687.* <apply> and <chmod> will display a summary if you set the new verbose attribute to true. Bugzilla Report 19883.* <copy>/<move>'s failonerror attribute can now also be used to continue the build if an I/O error caused a problem. Bugzilla Report 12999.* new selector <type/> allowing to select only files or only directories. Bugzilla Report 20222.* <java> and <junit> now support a nested <bootclasspath> element that will be ignored if not forking a new VM.* <junit>'s nested <formatter> elements now support if/unless clauses.* <ejbjar> cmpversion attribute added jboss element will look for jbosscmp-jdbc.xml descriptor if ejbjar has cmpversion="2.0" set Bugzilla Reports 14707 and 14709.* <pvcs> config attribute added to set the location of a specific PVCS .cfg file Bugzilla Report 9752* <mapper> has an "unpackage" mapper Bugzilla Report 18908* Added <scriptdef> task allowing tasks to be defined using any BSF-supported scripting language.* <touch>'s datetime attribute can now accept time with a granularity of seconds as well. Bugzilla Report 21014.* <checksum> has two new properties: totalproperty and todir.* FileUtils#createTempFile will now create temporary files in the directory pointed to by the property java.io.tmpdir* <unzip> and friends now supports an optional encoding attribute to enable it to expand archives created with filenames using an encoding other than UTF8. Bugzilla Report 10504.* <patch> has a new attribute destfile that can be used to create a new file instead of patching files in place.* OpenVMS is detected as a valid OS family.* DirectoryScanner has been optimized for cases where include patterns do not start with wildcards. Bugzilla Report 20103.* DirectoryScanner begins to be optimized not to scan excluded directories. Bugzilla Report 21941.* Added keep-going feature. Bugzilla Report 21144* The archives generated by <zip> and friends will now contain CRC and size information in the "local file header", thereby providing this information to applications that read the archives using java.util.ZipInputStream. Bugzilla Report 19195.* <copy> and <move> can now handle mappers that return multiple mappings per source path. This behaviour is enabled by using an enablemultiplemapping attribute. Bugzilla Report 21320.* <exec> will now work on OpenVMS (please read the notes in <exec>'s manual page). Bugzilla Report 21877.* <exec> will now have a new attribute spawn (default false). If set to true, the process will be spawned. Bugzilla Report 5907.* <java> will now have a new attribute spawn (default false). If set to true, the process will be spawned. Bugzilla Report 5907.* <parallel> now supports a timeout which can be used to recover from deadlocks, etc in the parallel threads. <parallel> also now supports a <daemons> nested element. This can be used to run tasks in daemon threads which the parallel task will not wait for before completing. A new attribute failonany will cause <parallel> to throw an exception if any thread fails without waiting for all other threads to complete.* <zip> and friends will consume far less memory than they used to when run with compress="false". Bugzilla Report 21899.* <if/> and <unless/> attributes added to <param/> element of <style> Bugzilla Report 22044* <zip> and friends have a new attribute "keepcompression" that can be used to incrementally build an archive mixing compressed and uncompressed entries.* <junit>'s XML formatter adds a new classname attribute to the <testcase> elements.* new <permissions> type add permission handling to the code this type can be nested in the <java> and <junit> tasks. Bugzilla Report 22533.* additional shortcuts for ant options (-d --> -debug, -e --> -emacs, -h --> -help, -p --> -projecthelp, -s --> -find).* new selector <modified>. "cache" was renamed to "modified". Bugzilla Report 20474.* <stcheckout> and <stlist> have a new asofdate attribute that can be used to checkout/list files based on a date instead of a label. Bugzilla Report 20578.* New filter <concatfilter>. Adds the content of file at the beginning or end of a file. Discussion started at http://marc.theaimsgroup.com/?l=ant-user&m=106366791228585&w=2* New task <import>* New task <macrodef>* New task <presetdef>* Ant libraries that can make use of namespaces to avoid name clashes of custom tasks* <java> and <junit> now support <assertions>, which let you enable and disable Java1.4 assertions on a package or class basis. These only work when fork=true, currently.* .NET tasks expanded with VB support <vbc> and J#, via <jsharp>, <importtypelib> and <ilasm>. <csc> supports nested <src> types, <defines> for (potentially conditional) definitions, <reference> filesets for references. The executable attribute lets you switch to mono or other implementations -<csc> has been tested with Mono on Linux and OSX.Changes from Ant 1.5.3 to Ant 1.5.4===================================Changes that could break older environments:--------------------------------------------* If the Visual Age tasks used to work for you, they may stop doing so now - and we'd like to know about it. The current set of tasks is supposed to work with any version of VAJ starting with 3.0.Fixed bugs:-----------* The Visual Age for Java tasks didn't work (at least for versions 3.0 and higher). Bugzilla Report 10016.* URL-encoding in <vaj*port> didn't work properly.* VAJRemoteUtil called getAbsolutePath instead of getPath causing problems when using a Windows VAJ server from a UNIX server. Bugzilla Report 20457.* VAJImport task failed with NullPointerException when using DirectoryScanner. Bugzilla Report 22080.Other changes:--------------* Shipped XML parser is now Xerces 2.5.0* <javah> will invoke oldjavah on JDK 1.4.2. Bugzilla Report 18667.* The VAJ tasks now support a haltonfailure attribute to conditionally keep building even if they fail.* It is now possible to use the latest (versioned or unversioned) edition in <vajload> by using special wildcard characters. Also fixes Bugzilla Report 2236.Changes from Ant 1.5.2 to Ant 1.5.3===================================Changes that could break older environments:--------------------------------------------* The <zip> task and friends have again changed a method signature (sorry, was necessary to fix bug 17780). The return type of getResourcesToAdd has changed.Fixed bugs:-----------* <zipfileset>'s filemode would get ignored and the dirmode was used for the included files as well. As a side effect, WinZIP was unable to extract or display the files, so they seemed to be missing from the archive. Bugzilla Report 17648.* <ftp> could use the wrong path separator when trying to change the remote working directory. Bugzilla Report 17735.* <jar update="true"> would loose all original files if you didn't specify any nested <(zip)fileset>s and the manifest had changed. Bugzilla Report 17780.* If you used a value starting with \ on Windows for the appxml attribute of <ear> or the webxml attribute of <war>, it would be ignored. Bugzilla Report 17871.* Ant will no longer implicitly add Sun's rt.jar in <javac> when you use jvc and don't specify a bootclasspath. Bugzilla Report 18055.* The prefix attribute of <zipfileset> would not generate directory entries for the prefix itself. Bugzilla Report 18403.* starteam checkout can now handle deleted labels. Bugzilla Report 17646.* The Unix wrapper script failed if you invoked it as a relative symlink and ANT_HOME has not been set. Bugzilla Report 17721.Other Changes:--------------* Added ability to specify manifest encoding for the <jar> and <manifest> tasksChanges from Ant 1.5.1 to Ant 1.5.2=============================================Changes that could break older environments:--------------------------------------------* ANT_OPTS environment variable is now applied at the start of the Java command line, allowing position specific parameters of some JVMs, such as -classic to be specified.* ZipScanner#getIncludedFiles will now return the names of the ZipEntries that have been matched instead of the name of the archive.* The <zip> task and friends have been heavily modified, almost every method signature of the Zip class has changed. If you have subclassed Zip (or one of its subclasses), your class will most likely not compile against the current code base. If it still compiles, it will probably not work as in Ant 1.5.1.Fixed bugs:-----------* <translate> was not ignoring comment lines.* <manifest> wouldn't update an existing manifest if only an attribute of an existing section changed.* ant.bat now supports the ANT_ARGS and JAVACMD environment variables again (like Ant 1.5 did).* The "plain" <junit> <formatter> could throw a NullPointerException if an error occured in setUp.* <junit> will now produce output when a test times out as well.* <replace> would count some internal character replacements when reporting the number of replaced tokens.* <concat> would cause an exception if a <filelist> pointed to files that do not exist.* <javadoc> will now pass -source to custom doclets as well.* <cvstagdiff> would throw a NullPointException if there had been no differences.* <cvschangelog> could miss today's changes.* <concat> could append newline characters between concatenated files.* <xmlvalidate> ignored the specified encoding of the files to validate.* the errorsbeginat attribute of the <http> condition didn't work.* Ant will try to force loading of certain packages like com.sun.* from the system classloader. The packages are determined by the version of the JVM running Ant.* Ant didn't find the runtime libraries on IBM's JDK 1.4 for Linux.* random component of temporary files is now always a positive integer.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -