Created
April 4, 2013 16:19
-
-
Save bouzuya/5311805 to your computer and use it in GitHub Desktop.
Apache Ivy を自動でインストールして ivy:retrieve する。
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
| <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