diff ivy-ant.xml @ 110:d5e9a144ce40

Add task to manually publish artifacts to artifactory
author smith@nwoca.org
date Tue, 23 Oct 2012 16:04:17 +0100
parents 9e09ab83f8d9
children db27dad576e5
line wrap: on
line diff
--- a/ivy-ant.xml	Thu Sep 06 20:33:23 2012 +0100
+++ b/ivy-ant.xml	Tue Oct 23 16:04:17 2012 +0100
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project name="ivy-ant"  basedir="." 
-    xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
-    xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
+         xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
+         xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
     
     <property   name="ssdt.ivy.jar.src"         value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
     <property   name="ssdt.ivy.settings.src"    value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
@@ -78,8 +78,8 @@
         <ivy:settings  file="ivysettings.xml"/>
         <ivy:resolve file="ivy.xml" />
         <ivy:artifactproperty conf="*"
-           name="ivydeps.[organisation]-[module]"
-           value="[revision]"/>
+                              name="ivydeps.[organisation]-[module]"
+                              value="[revision]"/>
 
         <ivy:cachepath pathid="ivy.javac.classpath.id" conf="compile" type="jar"/>
         <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.classpath">
@@ -231,5 +231,12 @@
                   value="build/jar/java-agent.jar"/>
     </target>
 
+    <target name="artifactoryPublish" depends="init">
+        <ivy:settings/>
+        <ivy:resolve file="ivy.xml"/>
+        <ivy:publish forcedeliver="${ivy-publish.forcedeliver}" overwrite="${ivy-publish.overwrite}" resolver="ssdt-snapshots-local">
+            <artifacts pattern="${ivy-publish.artifacts.pattern}"/>
+        </ivy:publish>
+    </target>
 
 </project>