Commit a9f067b5 authored by Leonid Bushuev's avatar Leonid Bushuev
Browse files

Downgrade Ant from version 1.10.5 to 1.9.13

parent 112aa0a6
Branches unavailable Tags unavailable
No related merge requests found
Showing with 530 additions and 179 deletions
+530 -179
......@@ -287,7 +287,6 @@ Nico Seessle
Nigel Magnay
Oliver Merkel
Oliver Rossmueller
Olivier Parent
Ondra Medek
Omer Shapira
Oystein Gisnas
......
For installation instructions see the manual by opening manual/index.html
or see it online at <http://ant.apache.org/manual/index.html>.
For installation instructions see the manual in the docs subdirectory
or online at <http://ant.apache.org/manual/index.html>.
Apache Ant
A N T
What is it?
......@@ -52,13 +52,10 @@
Documentation
-------------
Documentation is available in HTML format, in the manual/ directory.
Documentation is available in HTML format, in the docs/ directory.
For information about building and installing Ant, see
manual/install.html
The manual for the latest release of Ant is available online at
<https://ant.apache.org/manual/index.html>.
The latest version of the manual is available online at
<https://rawgit.com/apache/ant/master/manual/index.html>.
docs/manual/index.html
Licensing
---------
......
Changes from Ant 1.10.4 TO Ant 1.10.5
Changes from Ant 1.9.12 TO Ant 1.9.13
=====================================
Fixed bugs:
......@@ -15,12 +15,7 @@ Fixed bugs:
root.
Bugzilla Report 62502
Other changes:
--------------
* Java task now accepts a "sourcefile" attribute to allow single file
source program execution, a feature that is introduced in Java 11.
Changes from Ant 1.10.3 TO Ant 1.10.4
Changes from Ant 1.9.11 TO Ant 1.9.12
=====================================
Changes that could break older environments:
......@@ -50,15 +45,6 @@ Fixed bugs:
* The junit task when used with includeantruntime="no" was incorrectly
printing a warning about multiple versions of ant detected in path
* <cab> died with a NullPointerException since Ant 1.10.2.
Bugzilla Report 62335
* The <depend> task would fail with
"java.lang.ClassFormatError: Invalid Constant Pool entry Type 19" while
parsing a module-info.class. The task is compatible with
Java bytecode version 53 now.
Bug reported by Simon IJskes https://issues.apache.org/jira/browse/NETBEANS-781
* Default and SecureInputHandler will now raise an error when then
end of the input stream (usually System.in or System.console) are
reached before a valid input has been read.
......@@ -70,9 +56,6 @@ Fixed bugs:
Other changes:
--------------
* AntAssert is deprecated, assertThat from JUnit 4.4+, Hamcrest matchers and/or
ExpectedException rule provide equivalent functionality
* PumpStreamHandler now explicitly verifies the streams for output
and error are not null and will throw an exception if they
are. This way creating a PumpStreamHandler will fail early as
......@@ -85,11 +68,6 @@ Other changes:
availableProcessors, freeMemory, maxMemory and totalMemory methods
of the Java Runtime class.
* linecontains filter now has a new "matchAny" attribute which when
set to "true" allows any (instead of all) of the user-specified
strings to be present in the line.
Bugzilla Report 62313
* <resourcelist> has a new basedir attribute that can be used to
resolve relative names and provides a root for the FileResources
generated.
......@@ -100,15 +78,7 @@ Other changes:
can be used to specify the file's encoding.
Bugzilla Report 62379
* New file selectors, posixGroup and posixPermissions, are available.
The new selectors and related ownedBy selector have "followSymlinks"
attribute that defaults to "true" for consistency.
Bugzilla Report 22370
* The junitlauncher task now has a "printSummary" attribute which when
set to "true" will print the test execution summary to System.out.
Changes from Ant 1.10.2 TO Ant 1.10.3
Changes from Ant 1.9.10 TO Ant 1.9.11
=====================================
Changes that could break older environments:
......@@ -120,23 +90,12 @@ Changes that could break older environments:
and no longer throws an exception.
ant-dev list https://www.mail-archive.com/dev@ant.apache.org/msg46634.html
* Reverted the signature change of various clone method
implementation in Ant's data-types introduced with 1.10.2 as they
broke subclasses of said data-types which tried to override clone.
Fixed bugs:
-----------
* Fixed NullPointerException in ChainedMapper
Bugzilla Report 62086
* Fixed NullPointerException when a mappedresource is used in pathconvert
Bugzilla Report 62076
* Fixed an issue where a string, when used as a resource collection, within
tokens, would be replaced by property values
Bugzilla Report 62147
* Added a workaround for a bug in the jarsigner tool to <verifyjar>
which requires the -storepass command line argument when verifying
signatures using -strict together with a PKCS12 keystore. Unlike
......@@ -150,48 +109,16 @@ Fixed bugs:
Other changes:
--------------
* Allow Saxon to be used for junitreport XSL transformation
Github Pull Request #57
* when running on Java 11+ rmic will fail early if iiop or idl are
requested. Java11 removes support for CORBA and the switches have
been removed from the rmic tool.
* A new junitlauncher task which support JUnit 5 test framework.
Bugzilla Report 61796
Changes from Ant 1.10.1 TO Ant 1.10.2
=====================================
Changes that could break older environments:
-------------------------------------------
* updated the dependency of BCEL to 6.2.
Bugzilla Report 61196
* delete task previously would silently accept wildcard (*)
value for the "file" attribute. That's no longer the case
and an exception could get thrown by the underlying filesystem
for such use. Usage like:
<delete file="/foo/bar/*.something"/>
should instead be changed to use resource collections like:
<delete>
<fileset dir="/foo/bar/" includes="*.something"/>
</delete>
* Commons Net 3.6 is binary-code, but not source compatible;
see change list of Commons Net 3.0 for details
Changes from Ant 1.9.9 TO Ant 1.9.10
====================================
* The Log4jListener is marked as deprecated as the required log4j library
(in version 1.x) is not maintained any more.
* Image task is marked as deprecated as the required JAI library is not
maintained any more and internal APIs that JAI depended on are no longer
available in Java 9.
Fixed bugs:
-----------
......@@ -199,9 +126,6 @@ Fixed bugs:
value.
Bugzilla Report 60767
* bootstrapping Ant on Windows failed
Bugzilla Report 61027
* Fixed the issue where the SCP based tasks would try to change
the permissions on the parent directory of a transferred file,
instead of changing it on the transferred file itself.
......@@ -212,11 +136,6 @@ Fixed bugs:
the same source file (symlinked back to itself).
Bugzilla Report 60644
* Fixed the issue where symlink creation with "overwrite=false",
on existing symlink whose target was a directory, would end
up creating a new symlink under the target directory.
Bugzilla Report 58683
* Improvement to the Zip task for reduced memory usage in certain
cases. Thanks to Glen Lewis for reporting the issue and
suggesting the fix.
......@@ -238,23 +157,9 @@ Other changes:
values always get quoted.
Github Pull Request #32
* Added <encoding> attributes to various script related tasks and a
compiled attribute to scriptdef.
Github Pull Request #30
* Added support for jarsigner's -tsadigestalg to <signjar>.
Bugzilla Report 60665
* added "regexp" attribute to <linecontainsregexp>
Bugzilla Report 60968
* reduced GC pressure by replacing all usage of FileInputStream and
FileOutputStream.
* Task can now also use attribute setters that expect a
java.nio.file.Path argument.
Bugzilla Report 61042
* added a new magic property ant.tstamp.now that can be used to
override the current time/date used by <tstamp>.
Bugzilla Report 61079
......@@ -284,21 +189,20 @@ Other changes:
* Updated Maven Ant Tasks, Jakarta Regexp and JUnit 4 to the latest
stable version (2.1.3, 1.4, and 4.12 respectively); updated
JRuby to the latest Java 5 compatible version (1.6.8); added
resolve target for AntUnit to facilitate updates.
Java Mail API, JRuby and Jython to the latest Java 5 compatible
version (1.5.6, 1.6.8 and 2.5.3, respectively); added resolve targets
for Ivy and AntUnit to facilitate releases and updates, respectively.
Github Pull Request #50
* Updated Java Mail API, Jython, Rhino and Commons Net to the latest
stable version (1.6.0, 2.7.0, 1.7.7.2 and 3.6, respectively).
Github Pull Request #53
* Updated Commons Net to the latest Java 5 compatible version (2.2).
Changes from Ant 1.10.0 TO Ant 1.10.1
=====================================
Changes from Ant 1.9.8 TO Ant 1.9.9
===================================
Fixed bugs:
-----------
* Ant 1.10.0 made Path#systemClasspath final which broke the Eclipse
* Ant 1.9.8 made Path#systemClasspath final which broke the Eclipse
integration.
Bugzilla Report 60582
......@@ -308,36 +212,17 @@ Fixed bugs:
newlines present in command line arguments.
Bugzilla Report 60562
Other changes:
--------------
* new tasks <xz> and <unxz> and resource <xzresource> for XZ
compression. Also the compression attribute of <tar>/<untar> now
accepts "xz" as valid value.
The tasks and type are contained in the new ant-xz.jar and require
the library XZ for Java to be on the CLASSPATH.
Bugzilla Report 60350
Changes from Ant 1.9.7 TO Ant 1.10.0
====================================
Changes from Ant 1.9.7 TO Ant 1.9.8
===================================
Changes that could break older environments:
-------------------------------------------
* Ant 1.10.x requires Java8 or newer at compile or build time.
The 1.9.x series wil stay compatible with Java5.
* The <apt> task has been removed since apt itself has been removed
with Java8.
* <fileset>/<zipfileset>/<tarfileset> exhibited undefined
behavior when both the dir and file attribute have been used on the
same instance. This will now cause the build to fail.
Bugzilla Report 59402
* <native2ascii> will default to the builtin implementation on Java8
as well (sun isn't available for Java9+ anyway).
* The ant.java.version property will now hold the value "9" rather
than "1.9" if running on Java 9.
......@@ -345,9 +230,6 @@ Changes that could break older environments:
be used when running on Java 9 since this option has been removed.
Bugzilla Report 59906
* <javah> will default to the "forking" implementation on Java8
as well.
Fixed bugs:
-----------
......@@ -395,11 +277,6 @@ Fixed bugs:
Other changes:
--------------
* New file selectors <executable>, <symlink> and <ownedBy>.
* New task <setpermissions> that provides the ability to set POSIX
compatible permssions via NIO's PosixFilePermission
* <junit> now initializes the cause of the AssertionFailedError when
converting from AssertionError.
Bugzilla Report 58982
......@@ -437,9 +314,6 @@ Other changes:
* it is now possible to use references to Ant types and classloaders
built around Ant <path>s as values for TraX factory attributes.
* AntClassLoader and its subclasses register themselves as parallel
capable.
* <junitreport> now enables the feature
http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions
when run on Java 9 so the redirect extension function can be used
......
......@@ -38,10 +38,6 @@
<first>Adam</first>
<last>Bryzak</last>
</name>
<name>
<first>Adam</first>
<last>Retter</last>
</name>
<name>
<first>Adam</first>
<last>Sotona</last>
......@@ -1172,10 +1168,6 @@
<first>Oliver</first>
<last>Rossmueller</last>
</name>
<name>
<first>Olivier</first>
<last>Parent</last>
</name>
<name>
<first>Omer</first>
<last>Shapira</last>
......
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
=======================================================================
Build file to fetch optional libraries for Apache Ant
=======================================================================
-->
<project name="fetch" default="all" basedir=".">
<description>
This build file downloads JAR files that optional Ant tasks use,
and installs them in a location that is accessible the next time Ant runs.
You can choose three locations, by going -Ddest=LOCATION on the command line
-Ddest=user user lib dir ${user.home}/.ant/lib
-Ddest=system ant lib dir ${ant.home}/lib
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
You may also need to set proxy settings. On Java 1.5, Ant tries to get
this from the OS, unless you use the -noproxy option.
Proxies can be configured manually setting the JVM proxy values in the
ANT_OPTS environment variable.
For example, to set the proxy up in the tcsh shell, the command would
be something like:
For csh/tcsh:
setenv ANT_OPTS "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
For bash:
export ANT_OPTS="-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
For Windows, set the environment variable in the appropriate dialog box
and open a new console. or, by hand
set ANT_OPTS = -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
</description>
<!-- Give user a chance to override without editing this file
(and without typing -D each time it compiles it) -->
<property file="${user.home}/.ant/ant.properties"/>
<property name="lib.dir" location="lib"/>
<property name="optional.dir" location="${lib.dir}/optional"/>
<property name="userlib.dir" location="${user.home}/.ant/lib"/>
<!-- Load in our properties table -->
<property file="${lib.dir}/libraries.properties"/>
<!-- Temporary cache for working files -->
<property name="temp.dir" location="${user.home}/.ant/tempcache"/>
<property name="keep.temp.dir" value="true"/>
<import file="get-m2.xml"/>
<target name="pick-dest">
<fail>
<condition>
<not>
<isset property="dest"/>
</not>
</condition>ERROR
Set -Ddest=LOCATION on the command line
-Ddest=user user lib dir ${user.home}/.ant/lib
-Ddest=system ant lib dir ${ant.home}/lib
-Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
</fail>
<condition property="dest.dir"
value="${lib.dir}">
<equals arg1="${dest}" arg2="system"/>
</condition>
<condition property="dest.dir"
value="${optional.dir}">
<equals arg1="${dest}" arg2="optional"/>
</condition>
<condition property="dest.dir"
value="${userlib.dir}">
<equals arg1="${dest}" arg2="user"/>
</condition>
<fail unless="dest.dir">Unknown destination : ${dest}</fail>
<echo>Downloading to ${dest.dir}</echo>
<property name="m2.dest.dir" value="${dest.dir}"/>
</target>
<target name="macros" depends="pick-dest,get-m2"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<fail>
Cannot execute multiple targets due to the bug in Maven Ant tasks
<condition>
<contains string="${ant.project.invoked-targets}" substring=","/>
</condition>
</fail>
<macrodef name="f2">
<attribute name="project"/>
<attribute name="archive" default="@{project}"/>
<attribute name="repository" default="${m2.repo}"/>
<attribute name="id" default="central"/>
<sequential>
<fail>
Unknown archive @{archive} -no property @{archive}.version defined in ${lib.dir}/libraries.properties.
<condition>
<not>
<isset property="@{archive}.version"/>
</not>
</condition>
</fail>
<artifact:dependencies pathID="@{archive}.path" useScope="runtime">
<dependency groupId="@{project}"
artifactId="@{archive}"
version="${@{archive}.version}">
<!-- exclude dependencies of ant-antunit (they should be in optional scope) -->
<exclusion groupId="org.apache.ant" artifactId="ant"/>
<exclusion groupId="org.apache.ant" artifactId="ant-launcher"/>
</dependency>
<artifact:remoteRepository url="@{repository}" id="@{id}"/>
</artifact:dependencies>
<!-- now we are left with the problem of getting the files into our directory -->
<copy todir="${dest.dir}">
<path refid="@{archive}.path"/>
<flattenmapper/>
</copy>
</sequential>
</macrodef>
</target>
<target name="nonm2-macros" depends="pick-dest">
<macrodef name="get-ftp-file">
<attribute name="host"/>
<attribute name="port" default="21"/>
<attribute name="remotedir"/>
<attribute name="filename"/>
<attribute name="localdir" default="${dest.dir}"/>
<attribute name="user" default="anonymous"/>
<attribute name="pw" default="anonymous"/>
<sequential>
<ftp server="@{host}" port="@{port}" userid="@{user}" password="@{pw}" passive="true"
remotedir="@{remotedir}" action="get" depends="true" preserveLastModified="true"
skipFailedTransfers="true">
<fileset dir="@{localdir}">
<include name="@{filename}"/>
</fileset>
</ftp>
</sequential>
</macrodef>
</target>
<!-- any init stuff -->
<target name="init" depends="macros"/>
<target name="init-no-m2" depends="nonm2-macros"/>
<target name="init-cache">
<available property="temp.cache.already.exists" file="${temp.dir}" type="dir"/>
<condition property="user.wants.temp.cache">
<and>
<isset property="keep.temp.dir"/>
<not>
<or>
<equals arg1="${keep.temp.dir}" arg2="false" casesensitive="false"/>
<equals arg1="${keep.temp.dir}" arg2="no" casesensitive="false"/>
<equals arg1="${keep.temp.dir}" arg2="off" casesensitive="false"/>
</or>
</not>
</and>
</condition>
<condition property="delete.temp.cache">
<and>
<not>
<isset property="temp.cache.already.exists"/>
</not>
<not>
<isset property="user.wants.temp.cache"/>
</not>
</and>
</condition>
</target>
<target name="-setup-temp-cache" depends="init-cache" unless="temp.cache.already.exists"
description="Set up temporary cache for downloaded files">
<mkdir dir="${temp.dir}"/>
</target>
<target name="-cleanup-temp-cache" depends="init-cache" if="delete.temp.cache"
description="Get rid of the temporary cache directory">
<delete dir="${temp.dir}"/>
</target>
<target name="diag" depends="init">
<echoproperties/>
</target>
<target name="antunit"
description="load AntUnit library"
depends="init">
<f2 project="org.apache.ant" archive="ant-antunit"/>
</target>
<target name="ivy"
description="load Ivy dependency manager"
depends="init">
<f2 project="org.apache.ivy" archive="ivy"/>
</target>
<target name="logging"
description="load logging libraries (Commons and Log4j)"
depends="init">
<f2 project="log4j"/>
<f2 project="commons-logging" archive="commons-logging-api"/>
</target>
<target name="junit"
description="load JUnit libraries"
depends="init">
<f2 project="junit"/>
<f2 project="org.hamcrest" archive="hamcrest-library"/>
</target>
<target name="xml"
description="load full XML libraries (Xalan and xml-resolver)"
depends="init">
<f2 project="xalan"/>
<f2 project="xml-resolver"/>
</target>
<target name="networking"
description="load networking libraries (commons-net and JSch)"
depends="init">
<f2 project="commons-net"/>
<f2 project="com.jcraft" archive="jsch"/>
</target>
<target name="regexp"
description="load regexp libraries"
depends="init">
<f2 project="jakarta-regexp"/>
<f2 project="oro"/>
</target>
<target name="antlr"
description="load ANother Tool for Language Recognition (ANTLR)"
depends="init">
<f2 project="antlr"/>
</target>
<target name="bcel"
description="load Byte Code Engineering Library (BCEL)"
depends="init">
<f2 project="bcel"/>
</target>
<target name="jdepend"
description="load JDepend libraries"
depends="init">
<f2 project="jdepend"/>
</target>
<target name="bsf"
description="load Bean Scripting Framework"
depends="init">
<f2 project="bsf"/>
</target>
<target name="jruby"
description="load JRuby"
depends="bsf">
<f2 project="org.jruby" archive="jruby"/>
</target>
<target name="beanshell"
description="load BeanShell support"
depends="bsf">
<f2 project="org.beanshell" archive="bsh"/>
<f2 project="org.beanshell" archive="bsh-core"/>
</target>
<target name="jython"
description="load Jython"
depends="bsf">
<f2 project="org.python" archive="jython"/>
</target>
<target name="rhino"
description="load Rhino"
depends="bsf">
<f2 project="org.mozilla" archive="rhino"/>
</target>
<target name="script"
description="load script languages (except Jython)"
depends="bsf,jruby,beanshell,rhino"/>
<target name="debugging"
description="internal Ant debugging"
depends="init">
<f2 project="which"/>
</target>
<target name="javamail"
description="load Java Mail"
depends="init">
<f2 project="javax.mail" archive="javax.mail-api"/>
<f2 project="javax.activation" archive="activation"/>
</target>
<target name="jspc"
description="load Jasper"
depends="init">
<f2 project="tomcat" archive="jasper-compiler"/>
<f2 project="tomcat" archive="jasper-runtime"/>
<f2 project="javax.servlet" archive="servlet-api"/>
</target>
<target name="jai"
description="load Java Advanced Imaging"
depends="init">
<f2 project="javax.media" archive="jai-core" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
<f2 project="com.sun.media" archive="jai-codec" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
</target>
<target name="netrexx"
description="load NetRexx compiler"
depends="init-no-m2,-setup-temp-cache,-fetch-netrexx,-fetch-netrexx-no-commons-net">
<copy todir="${dest.dir}" flatten="true">
<zipfileset src="${temp.dir}/NetRexx.zip">
<include name="NetRexx\lib\NetRexxC.jar"/>
<include name="NetRexx\browse\license.txt"/>
</zipfileset>
</copy>
<antcall target="-cleanup-temp-cache"/>
</target>
<available property="have.commons.net" classname="org.apache.commons.net.ftp.FTPClientConfig"/>
<target name="-fetch-netrexx" if="have.commons.net">
<get-ftp-file host="ftp.software.ibm.com" remotedir="/software/awdtools/netrexx"
filename="NetRexx.zip" localdir="${temp.dir}"/>
</target>
<target name="-fetch-netrexx-no-commons-net" unless="have.commons.net">
<get src="ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip"
dest="${temp.dir}/NetRexx.zip" skipexisting="true"/>
</target>
<target name="all"
description="load all the libraries (except jython)"
depends="antunit,ivy,logging,junit,xml,networking,regexp,antlr,bcel,jdepend,bsf,debugging,script,javamail,jspc,jai,netrexx"/>
</project>
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
=======================================================================
Build file to fetch maven2 tasks; extracted from (Ant's) fetch.xml
=======================================================================
-->
<project name="get-m2" default="get-m2" basedir=".">
<description>
This build file downloads the Maven2 Ant tasks,
and installs them in the location specified by the m2.dest.dir property.
You may need to set proxy settings. On Java1.5, Ant tries to get
this from the OS, unless you use the -noproxy option.
Proxies can be configured manually setting the JVM proxy values in the
ANT_OPTS environment variable.
For example, to set the proxy up in the tcsh shell, the command would be
something like:
For csh/tcsh:
setenv ANT_OPTS "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
For bash:
export ANT_OPTS="-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
For Windows, set the environment variable in the appropriate dialog box
and open a new console. or, by hand
set ANT_OPTS = -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
</description>
<property file="get-m2.properties" />
<property name="m2.antlib.resource"
value="org/apache/maven/artifact/ant/antlib.xml" />
<property name="m2.antlib.uri"
value="antlib:org.apache.maven.artifact.ant" />
<macrodef name="require">
<attribute name="property" />
<sequential>
<fail unless="@{property}">$${@{property}} not specified</fail>
</sequential>
</macrodef>
<target name="probe-m2">
<require property="m2.dest.dir" />
<require property="m2.jar.name" />
<!-- Look for M2 ant tasks in our classpath-->
<property name="m2.artifact" location="${m2.dest.dir}/${m2.jar.name}" />
<available property="m2.antlib.found" resource="${m2.antlib.resource}" />
<condition property="m2.antlib.typefound">
<typefound name="${m2.antlib.uri}:artifact" />
</condition>
<available property="m2.artifact.found" file="${m2.artifact}" type="file" />
</target>
<target name="download-m2" depends="probe-m2" unless="m2.artifact.found">
<require property="m2.antlib.url" />
<echo>Downloading to ${m2.dest.dir}</echo>
<mkdir dir="${m2.dest.dir}" />
<!-- fetch M2 ant tasks into our repository, if it is not there-->
<get src="${m2.antlib.url}"
dest="${m2.artifact}"
verbose="true"
usetimestamp="false" />
</target>
<target name="dont-validate-m2-checksum" depends="probe-m2"
if="m2.artifact.found">
<property name="checksum.equal" value="true" />
</target>
<target name="validate-m2-checksum"
depends="download-m2,dont-validate-m2-checksum"
if="m2.sha1.checksum" unless="m2.artifact.found">
<checksum file="${m2.artifact}"
algorithm="SHA"
property="${m2.sha1.checksum}"
verifyProperty="checksum.equal" />
</target>
<target name="checksum-mismatch" depends="validate-m2-checksum"
if="m2.sha1.checksum" unless="checksum.equal">
<delete file="${m2.artifact}" />
<fail>
Failed to verify the downloaded file ${m2.antlib.url}" against the checksum
coded into libraries.properties.
The local copy has been deleted, for security reasons
</fail>
</target>
<target name="checksum-match" depends="checksum-mismatch"
unless="m2.antlib.found">
<taskdef classpath="${m2.artifact}" resource="${m2.antlib.resource}"
uri="${m2.antlib.uri}" />
</target>
<target name="get-m2" depends="checksum-match"
description="Download the Maven2 Ant tasks" />
</project>
No preview for this file type
......@@ -27,13 +27,13 @@
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-antlr</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + ANTLR</name>
<description>antlr specific task.
The implementation forks a java process, therefore the antlr jar file is only needed at runtime</description>
......@@ -41,14 +41,15 @@
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<optional>true</optional>
<scope>compile</scope>
</dependency>
<dependency>
<!-- add a dependency with antlr 2.7.2 consistent with libraries.properties antlr 2.7.6 is also available on ibiblio-->
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
<version>2.7.2</version>
<optional>true</optional>
<scope>runtime</scope>
</dependency>
......
No preview for this file type
......@@ -27,25 +27,25 @@
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-bcel</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + BCEL</name>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.bcel</groupId>
<groupId>bcel</groupId>
<artifactId>bcel</artifactId>
<version>6.2</version>
<version>5.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
......
No preview for this file type
......@@ -27,19 +27,19 @@
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-bsf</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + BSF</name>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<scope>compile</scope>
</dependency>
<dependency>
......
No preview for this file type
......@@ -26,19 +26,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-log4j</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + Log4J</name>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<scope>compile</scope>
</dependency>
<dependency>
......
No preview for this file type
......@@ -27,19 +27,19 @@
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-oro</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + Apache Oro</name>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<scope>compile</scope>
</dependency>
<dependency>
......
No preview for this file type
......@@ -26,19 +26,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>org.apache.ant</groupId>
<artifactId>ant-parent</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.10.5</version>
<version>1.9.13</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<url>http://ant.apache.org/</url>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-regexp</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<name>Apache Ant + Apache Regexp</name>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.5</version>
<version>1.9.13</version>
<scope>compile</scope>
</dependency>
<dependency>
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment