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 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.cache.ttl.default" value="7d"/>
  5. <target name="-init-ivy" depends="-init-lib-directory">
  6. <path id="ivy.classpath">
  7. <fileset dir="etc/ivy" includes="ivy*.jar"/>
  8. </path>
  9. <available classname="org.apache.ivy.ant.IvyConfigure"
  10. property="ivy.available" classpathref="ivy.classpath" />
  11. </target>
  12. <target name="-init-dependencies" depends="-init-ivy" unless="ivy.done">
  13. <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.classpath"/>
  14. <ivy:settings file="etc/ivy/ivysettings.xml"/>
  15. <ivy:retrieve symlink="true" pattern="lib/[conf]/[artifact].[ext]" sync="true" />
  16. <property name="ivy.done" value="true"/>
  17. </target>
  18. <target name="publish-integration" depends="-init-dependencies,jar">
  19. <copy file="dist/DMDirc.jar" tofile="dist/client.jar"/>
  20. <ivy:deliver deliverpattern="build/ivy.xml" pubrevision="${git.version}-SNAPSHOT" />
  21. <ivy:makepom ivyfile="build/ivy.xml" pomfile="dist/client.pom">
  22. <mapping conf="main" scope="compile"/>
  23. </ivy:makepom>
  24. <ivy:resolve file="build/ivy.xml"/>
  25. <ivy:retrieve/>
  26. <ivy:publish resolver="dmdirc-snapshots"
  27. organisation="com.dmdirc"
  28. module="client"
  29. revision="${git.version}-SNAPSHOT"
  30. status="integration"
  31. artifactspattern="dist/[artifact].[ext]"
  32. publishivy="false">
  33. </ivy:publish>
  34. </target>
  35. <target name="publish-from-teamcity" depends="-init-dependencies">
  36. <echo>Downloading private files, if this fails please pass username and</echo>
  37. <echo>password to ant using -Dusername=... -Dpassword=...</echo>
  38. <get src="http://www.dmdirc.com/private/nexus-teamcity.properties" dest="etc/nexus-teamcity.properties" username="${username}" password="${password}"/>
  39. <loadproperties srcFile="etc/nexus-teamcity.properties"/>
  40. <ivy:settings>
  41. <credentials host="nexus.dmdirc.com" realm="Sonatype Nexus Repository Manager" username="${nexus.user}" passwd="${nexus.pass}"/>
  42. </ivy:settings>
  43. </target>
  44. </project>