Incomplete RESTful API for IRC
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

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