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.

build-ivy.xml 1.5KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="DMDirc-ivy" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
  3. <description>Ivy utilities for DMDirc</description>
  4. <property name="ivy.install.version" value="2.2.0"/>
  5. <property name="ivy.cache.ttl.default" value="7d"/>
  6. <target name="-init-ivy" depends="-init-lib-directory">
  7. <path id="ivy.classpath">
  8. <fileset dir="lib" includes="*.jar"/>
  9. </path>
  10. <available classname="org.apache.ivy.ant.IvyConfigure"
  11. property="ivy.available" classpathref="ivy.classpath" />
  12. </target>
  13. <target name="-download-ivy" depends="-init-ivy" unless="ivy.available">
  14. <echo message="Retrieving Ivy"/>
  15. <get src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
  16. dest="lib/ivy-${ivy.install.version}.jar"/>
  17. </target>
  18. <target name="-init-dependencies" depends="-download-ivy" unless="ivy.done">
  19. <!-- Regenerate the classpath as we may have just downloaded Ivy -->
  20. <path id="ivy.classpath">
  21. <fileset dir="lib" includes="*.jar"/>
  22. </path>
  23. <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.classpath"/>
  24. <ivy:settings file="etc/ivy/ivysettings.xml"/>
  25. <ivy:retrieve symlink="true" pattern="lib/[artifact]-[revision].[ext]" />
  26. <property name="ivy.done" value="true"/>
  27. </target>
  28. </project>