Upgraded the ivy.xml dependency

This commit is contained in:
U-BASIS\dsmyda 2020-08-13 12:05:04 -04:00
parent 961f0241eb
commit 2fcd8d7bdf

View File

@ -5,22 +5,17 @@
<isset property="env.IVY_HOME" /> <isset property="env.IVY_HOME" />
</condition> </condition>
<property name="ivy.home" value="${user.home}/.ant" /> <property name="ivy.home" value="${user.home}/.ant" />
<property name="ivy.jar.dir" value="${ivy.home}/lib/${ivy.install.version}" /> <property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" /> <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
<target name="download-ivy" unless="offline"> <target name="download-ivy" unless="offline">
<available file="${ivy.jar.file}" property="ivy.available"/>
<antcall target="-download-ivy" />
</target>
<target name="-download-ivy" unless="ivy.available">
<mkdir dir="${ivy.jar.dir}"/> <mkdir dir="${ivy.jar.dir}"/>
<get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" <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"/> dest="${ivy.jar.file}" usetimestamp="true"/>
</target> </target>
<!-- init-ivy will bootstrap Ivy if the user doesn't have it already --> <!-- init-ivy will bootstrap Ivy if the user doesn't have it already -->
<target name="init-ivy" depends="download-ivy" unless="ivy.lib.path"> <target name="init-ivy" depends="download-ivy">
<path id="ivy.lib.path"> <path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar"/> <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
</path> </path>