Created
August 12, 2012 10:43
-
-
Save anton0xf/3331174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ================================= | |
target: load-ivy | |
this target is not necessary if you put ivy.jar in your ant lib directory | |
if you already have ivy 1.4 in your ant lib, you can simply remove this | |
target | |
================================= --> | |
<target name="load-ivy"> | |
<!-- try to load ivy here from home ivy dir, 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 ivy home lib dir exists (it may be empty) and | |
ivy is in at least one of ant's lib dir or the ivy home lib dir. --> | |
<path id="ivy.lib.path"> | |
<pathelement location="${ivy.jar.file}"/> | |
</path> | |
<taskdef resource="org/apache/ivy/ant/antlib.xml" | |
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment