Apache Nutch is an extensible and scalable web crawler
NUTCH-2697 Upgrade Ivy to fix the issue of an unset packaging.type property NUTCH-2671 Upgrade ant ivy library - upgrade Ivy (2.4.0 -> 2.5.0) - upgrade all plugins build-ivy.xml to use the ivy jar 2.5.0 installed in $NUTCH_HOME/ivy/ for preparing lists of dependencies registered in plugin.xml
Sebastian Nageld07c075f5ff7
diff --git a/.gitignore b/.gitignoreindex 3e3bad27b..02a74cf74 100644--- a/.gitignore+++ b/.gitignore@@ -10,6 +10,7 @@ logs/ivy/ivy-2.3.0.jarivy/ivy-2.4.0.jarivy/ivy-2.5.0-rc1.jar+ivy/ivy-2.5.0.jarnaivebayes-model.naivebayes-model.crc.gitconfigdiff --git a/default.properties b/default.propertiesindex 0e406f71f..e4b961964 100644--- a/default.properties+++ b/default.properties@@ -63,7 +63,7 @@ runtime.dir=./runtimeruntime.deploy=${runtime.dir}/deployruntime.local=${runtime.dir}/local-ivy.version=2.4.0+ivy.version=2.5.0ivy.dir=${basedir}/ivyivy.file=${ivy.dir}/ivy.xmlivy.jar=${ivy.dir}/ivy-${ivy.version}.jardiff --git a/src/plugin/any23/build-ivy.xml b/src/plugin/any23/build-ivy.xmlindex d3a0405dd..6c7c6b906 100644--- a/src/plugin/any23/build-ivy.xml+++ b/src/plugin/any23/build-ivy.xml@@ -17,38 +17,31 @@--><project name="any23" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/exchange-jexl/build-ivy.xml b/src/plugin/exchange-jexl/build-ivy.xmlindex 422574201..fb059bf73 100644--- a/src/plugin/exchange-jexl/build-ivy.xml+++ b/src/plugin/exchange-jexl/build-ivy.xml@@ -17,38 +17,31 @@--><project name="exchange-jexl" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/index-geoip/build-ivy.xml b/src/plugin/index-geoip/build-ivy.xmlindex b8cd09ed8..974646e7d 100644--- a/src/plugin/index-geoip/build-ivy.xml+++ b/src/plugin/index-geoip/build-ivy.xml@@ -17,38 +17,31 @@--><project name="index-geoip" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/indexer-elastic/build-ivy.xml b/src/plugin/indexer-elastic/build-ivy.xmlindex 7036979a0..8b97ab63a 100644--- a/src/plugin/indexer-elastic/build-ivy.xml+++ b/src/plugin/indexer-elastic/build-ivy.xml@@ -17,38 +17,31 @@--><project name="indexer-elastic" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/indexer-kafka/build-ivy.xml b/src/plugin/indexer-kafka/build-ivy.xmlindex 4f181bd85..1afe4db88 100644--- a/src/plugin/indexer-kafka/build-ivy.xml+++ b/src/plugin/indexer-kafka/build-ivy.xml@@ -17,38 +17,31 @@--><project name="indexer-kafka" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0"/>- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME"/>- </condition>- <property name="ivy.home" value="${user.home}/.ant"/>- <property name="ivy.checksums" value=""/>- <property name="ivy.jar.dir" value="${ivy.home}/lib"/>- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/>-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>-- <target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target>++ <target name="deps-jar" depends="init-ivy">+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>+ </target></project>diff --git a/src/plugin/indexer-rabbit/build-ivy.xml b/src/plugin/indexer-rabbit/build-ivy.xmlindex e4d4f9504..8a813b02a 100644--- a/src/plugin/indexer-rabbit/build-ivy.xml+++ b/src/plugin/indexer-rabbit/build-ivy.xml@@ -17,38 +17,31 @@--><project name="indexer-rabbit" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/indexer-solr/build-ivy.xml b/src/plugin/indexer-solr/build-ivy.xmlindex fe4d8c467..a57840b02 100644--- a/src/plugin/indexer-solr/build-ivy.xml+++ b/src/plugin/indexer-solr/build-ivy.xml@@ -17,38 +17,31 @@--><project name="indexer-solr" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.4.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/lib-htmlunit/build-ivy.xml b/src/plugin/lib-htmlunit/build-ivy.xmlindex 7e0a187d6..4802745fd 100644--- a/src/plugin/lib-htmlunit/build-ivy.xml+++ b/src/plugin/lib-htmlunit/build-ivy.xml@@ -17,35 +17,28 @@--><project name="lib-htmlunit" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/lib-rabbitmq/build-ivy.xml b/src/plugin/lib-rabbitmq/build-ivy.xmlindex 80a0de373..4b91b9387 100644--- a/src/plugin/lib-rabbitmq/build-ivy.xml+++ b/src/plugin/lib-rabbitmq/build-ivy.xml@@ -17,35 +17,28 @@--><project name="lib-rabbitmq" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/lib-selenium/build-ivy.xml b/src/plugin/lib-selenium/build-ivy.xmlindex dbd74595f..25a65ea1f 100644--- a/src/plugin/lib-selenium/build-ivy.xml+++ b/src/plugin/lib-selenium/build-ivy.xml@@ -17,35 +17,28 @@--><project name="lib-selenium" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.4.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/parse-tika/build-ivy.xml b/src/plugin/parse-tika/build-ivy.xmlindex c67ea7a65..83afc7c81 100644--- a/src/plugin/parse-tika/build-ivy.xml+++ b/src/plugin/parse-tika/build-ivy.xml@@ -17,36 +17,28 @@--><project name="parse-tika" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.4.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy-${ivy.install.version}.jar" />- <ivy:settings id="ivy.instance" file="../../../ivy/ivysettings.xml" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/parsefilter-naivebayes/build-ivy.xml b/src/plugin/parsefilter-naivebayes/build-ivy.xmlindex 077d9720f..af56f19a6 100644--- a/src/plugin/parsefilter-naivebayes/build-ivy.xml+++ b/src/plugin/parsefilter-naivebayes/build-ivy.xml@@ -17,38 +17,31 @@--><project name="parsefilter-naivebayes" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/protocol-interactiveselenium/build-ivy.xml b/src/plugin/protocol-interactiveselenium/build-ivy.xmlindex de3df7853..d9b986b42 100644--- a/src/plugin/protocol-interactiveselenium/build-ivy.xml+++ b/src/plugin/protocol-interactiveselenium/build-ivy.xml@@ -17,35 +17,28 @@--><project name="protocol-interactiveselenium" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/protocol-selenium/build-ivy.xml b/src/plugin/protocol-selenium/build-ivy.xmlindex 087b9bcf5..283770e6d 100644--- a/src/plugin/protocol-selenium/build-ivy.xml+++ b/src/plugin/protocol-selenium/build-ivy.xml@@ -17,35 +17,28 @@--><project name="protocol-selenium" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy"><ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/>diff --git a/src/plugin/publish-rabbitmq/build-ivy.xml b/src/plugin/publish-rabbitmq/build-ivy.xmlindex b645e9982..f0719b6de 100644--- a/src/plugin/publish-rabbitmq/build-ivy.xml+++ b/src/plugin/publish-rabbitmq/build-ivy.xml@@ -17,38 +17,31 @@--><project name="publish-rabbitmq" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>diff --git a/src/plugin/scoring-similarity/build-ivy.xml b/src/plugin/scoring-similarity/build-ivy.xmlindex 54c973f01..5c281431c 100644--- a/src/plugin/scoring-similarity/build-ivy.xml+++ b/src/plugin/scoring-similarity/build-ivy.xml@@ -17,38 +17,31 @@--><project name="scoring-similarity" default="deps-jar" xmlns:ivy="antlib:org.apache.ivy.ant">- <property name="ivy.install.version" value="2.1.0" />- <condition property="ivy.home" value="${env.IVY_HOME}">- <isset property="env.IVY_HOME" />- </condition>- <property name="ivy.home" value="${user.home}/.ant" />- <property name="ivy.checksums" value="" />- <property name="ivy.jar.dir" value="${ivy.home}/lib" />- <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />-- <target name="download-ivy" unless="offline">-- <mkdir dir="${ivy.jar.dir}"/>- <!-- download Ivy from web site so that it can be used even without any special installation -->- <get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"- dest="${ivy.jar.file}" usetimestamp="true"/>- </target>-- <target name="init-ivy" depends="download-ivy">- <!-- try to load ivy here from ivy home, in case the user has not already dropped- it into ant's lib dir (note that the latter copy will always take precedence).- We will not fail as long as local lib dir exists (it may be empty) and- ivy is in at least one of ant's lib dir or the local lib dir. -->- <path id="ivy.lib.path">- <fileset dir="${ivy.jar.dir}" includes="*.jar"/>-- </path>- <taskdef resource="org/apache/ivy/ant/antlib.xml"- uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>- </target>+ <property name="ivy.dir" value="../../../ivy" />+ <property file="../../../default.properties" />++ <target name="download-ivy" unless="offline">+ <!-- download Ivy from web site so that it can be used even without any special installation -->+ <available file="${ivy.jar}" property="ivy.jar.found"/>+ <antcall target="ivy-download-unchecked"/>+ </target>++ <target name="ivy-download-unchecked" unless="ivy.jar.found" description="--> fetch any ivy file">+ <get src="${ivy.repo.url}" dest="${ivy.jar}" usetimestamp="true" />+ </target>++ <target name="init-ivy" depends="download-ivy">+ <!-- try to load ivy here from ivy home, in case the user has not already dropped+ it into ant's lib dir (note that the latter copy will always take precedence).+ We will not fail as long as local lib dir exists (it may be empty) and+ ivy is in at least one of ant's lib dir or the local lib dir. -->+ <taskdef resource="org/apache/ivy/ant/antlib.xml"+ uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar}"/>+ <ivy:settings file="${ivy.dir}/ivysettings.xml" />+ </target><target name="deps-jar" depends="init-ivy">- <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]"/>+ <ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" sync="true"/></target></project>