Let's only put things that might change into separate properties.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2822 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
+3
-5
@@ -18,14 +18,12 @@
|
||||
|
||||
<!-- downloads ivy if necessary and sets everything up -->
|
||||
<property name="ivy.vers" value="2.1.0-rc2" />
|
||||
<property name="ivy.home" value="${user.home}/.ant" />
|
||||
<property name="ivy.jar.dir" value="${ivy.home}/lib" />
|
||||
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
|
||||
<condition property="ivy.exists"><available file="${ivy.jar.file}"/></condition>
|
||||
<property name="ivy.jar.dir" value="${user.home}/.ant/lib" />
|
||||
<condition property="ivy.exists"><available file="${ivy.jar.dir}/ivy.jar"/></condition>
|
||||
<target name="-download-ivy" unless="ivy.exists">
|
||||
<mkdir dir="${ivy.jar.dir}"/>
|
||||
<get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.vers}/ivy-${ivy.vers}.jar"
|
||||
dest="${ivy.jar.file}" usetimestamp="true"/>
|
||||
dest="${ivy.jar.dir}/ivy.jar" usetimestamp="true"/>
|
||||
</target>
|
||||
<target name="-init-ivy" depends="-download-ivy">
|
||||
<path id="ivy.lib.path"><fileset dir="${ivy.jar.dir}" includes="*.jar"/></path>
|
||||
|
||||
Reference in New Issue
Block a user