Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Created April 4, 2013 16:19
Show Gist options
  • Select an option

  • Save bouzuya/5311805 to your computer and use it in GitHub Desktop.

Select an option

Save bouzuya/5311805 to your computer and use it in GitHub Desktop.
Apache Ivy を自動でインストールして ivy:retrieve する。
<property name="ivy.version" value="2.3.0" />
<property name="ivy.jar" value="ivy-${ivy.version}.jar" />
<available file="${ant.library.dir}/${ivy.jar}" property="ivy.installed" />
<target name="install-ivy" unless="ivy.installed">
<get dest="${ant.library.dir}" src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/${ivy.jar}" />
</target>
<target name="retrieve" depends="install-ivy">
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ant.library.dir}/${ivy.jar}" />
<ivy:retrieve />
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment