Mirror of retrofit, Type-safe HTTP client for Android and Java by Square, Inc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ivy-build.xml 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2010 Square, Inc. -->
  3. <!--
  4. - Ivy boilerplate build steps, helps keep the main buildfile clean.
  5. -->
  6. <project xmlns:ivy="antlib:org.apache.ivy.ant"
  7. name="ivy-build" basedir="." default="init-ivy">
  8. <property name="ivy.install.version" value="2.2.0"/>
  9. <condition property="ivy.home" value="${env.IVY_HOME}">
  10. <isset property="env.IVY_HOME"/>
  11. </condition>
  12. <property name="ivy.home" value="${user.home}/.ant"/>
  13. <property name="ivy.jar.dir" value="${ivy.home}/lib"/>
  14. <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/>
  15. <!--
  16. - Gets Ivy from the public Maven repo so we don't need a custom Ant
  17. - installation.
  18. -->
  19. <target name="download-ivy" unless="offline">
  20. <mkdir dir="${ivy.jar.dir}"/>
  21. <get
  22. src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
  23. dest="${ivy.jar.file}" usetimestamp="true"/>
  24. </target>
  25. <target name="init-ivy" depends="download-ivy">
  26. <!--
  27. - Try to load ivy here from ivy home, in case the user has not already
  28. - dropped it into ant's lib dir (note that the latter copy will always
  29. - take precedence). We will not fail as long as local lib dir exists (it
  30. - may be empty) and ivy is in at least one of ant's lib dir or the local
  31. - lib dir.
  32. -->
  33. <path id="ivy.lib.path">
  34. <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
  35. </path>
  36. <taskdef resource="org/apache/ivy/ant/antlib.xml"
  37. uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
  38. <ivy:configure file="ivy-settings.xml"/>
  39. </target>
  40. </project>