You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by th...@apache.org on 2008/10/17 02:01:39 UTC

svn commit: r705414 - /labs/droids/branch/LABS-144/targets/ivy-build.xml

Author: thorsten
Date: Thu Oct 16 17:01:39 2008
New Revision: 705414

URL: http://svn.apache.org/viewvc?rev=705414&view=rev
Log:
LABS-189 
Updating ivy build file with some todo next steps target and the new target ivy.publish which will the jar to the global lib rep

Modified:
    labs/droids/branch/LABS-144/targets/ivy-build.xml

Modified: labs/droids/branch/LABS-144/targets/ivy-build.xml
URL: http://svn.apache.org/viewvc/labs/droids/branch/LABS-144/targets/ivy-build.xml?rev=705414&r1=705413&r2=705414&view=diff
==============================================================================
--- labs/droids/branch/LABS-144/targets/ivy-build.xml (original)
+++ labs/droids/branch/LABS-144/targets/ivy-build.xml Thu Oct 16 17:01:39 2008
@@ -19,7 +19,8 @@
   default="ivy.resolve">
   <property file="build.properties"/>
   <property name="project.build.dir" location="build"/>
-  
+  <property name="ivy.local.default.root" value="${ivy.repository.dir}/local"/>
+  <property name="ivy.shared.default.root" value="${ivy.repository.dir}/shared"/>
   <!-- ================================= 
   target: resolve              
   ================================= -->
@@ -29,16 +30,44 @@
     <ivy:retrieve/>
   </target>
   <target name="ivy.configure">
-    <ivy:configure file="${ivy.repository.dir}/ivysettings.xml"/>
+    <ivy:settings file="${ivy.repository.dir}/ivysettings.xml" />
   </target>
   <target name="ivy.report" depends="ivy.configure" 
     description="-> generates a report of dependencies">
     <ivy:report todir="${build.dir}" conf="core" organisation="apache" module="droids"/>
   </target>
+  <target name="ivy.publish" depends="ivy.resolve"
+    description="--> publish this project in the ivy repository">
+    <ivy:publish artifactspattern="${build.dir}/[artifact].[ext]"
+      resolver="droids" pubrevision="${version}" status="release"
+      overwrite="true"/>
+    <echo
+      message="project ${ant.project.name} released with version ${version}"/>
+  </target>
+  
   <!-- testing ivy -->
-  <target name="ivy.buildlist"> 
-    <ivy:buildlist reference="build-path">
-      <fileset dir="depot" includes="**/build.xml"/>
-    </ivy:buildlist>
+  <!-- PLEASE IGNORE FOR NOW-->
+  <target name="ivy-new-version" unless="ivy.new.revision">
+    <!-- default module version prefix value -->
+    <property name="module.version.prefix"
+      value="${module.version.target}-dev-b"/>
+    
+    <!-- asks to ivy an available version number -->
+    <ivy:info file="${ivy.file}"/>
+    <ivy:buildnumber organisation="${ivy.organisation}" module="${ivy.module}"
+      revision="${module.version.prefix}" defaultBuildNumber="1" revSep=""/>
   </target>
+  
+  <target name="publish-local"
+    description="--> publish this project in the local ivy repository">
+    <ivy:publish artifactspattern="${build.dir}/[artifact].[ext]" resolver="local"
+      pubrevision="${version}" pubdate="${now}" status="integration"
+      forcedeliver="true"/>
+    <echo
+      message="project ${ant.project.name} published locally with version ${version}"/>
+  </target>
+  <target name="clean-local" description="--> cleans the local repository for the current module">
+   <delete dir="${ivy.local.default.root}/${ant.project.name}"/>
+</target>
+  
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org