You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by le...@apache.org on 2004/07/13 13:33:58 UTC

svn commit: rev 22872 - excalibur/trunk/buildsystem

Author: leosimons
Date: Tue Jul 13 04:33:57 2004
New Revision: 22872

Modified:
   excalibur/trunk/buildsystem/maven.xml
Log:
Follow apache mirror guidelines

Modified: excalibur/trunk/buildsystem/maven.xml
==============================================================================
--- excalibur/trunk/buildsystem/maven.xml	(original)
+++ excalibur/trunk/buildsystem/maven.xml	Tue Jul 13 04:33:57 2004
@@ -21,12 +21,13 @@
         <!--
          @name the name of file to deploy
          @dir the name of the directory the file lives in
-         @type the maven "type"
+         @type the maven "type". Slightly different behaviour: if you want a trailing 's' you 
+               should add it (ie "jars" instead of "jar")
         -->
         <define:tag name="deploy">
             <j:set var="pass" value='-i "${maven.repo.default.privatekey}"'/>
             <j:set var="acct" value="${maven.repo.default.username}@${maven.repo.default.host}"/>
-            <j:set var="deployDir" value="${maven.repo.default.directory}/${pom.groupId}/${type}s"/>
+            <j:set var="deployDir" value="${maven.repo.default.directory}/${pom.groupId}/${type}"/>
             <j:set var="grp" value="${maven.repo.default.group}"/>
 
             <ant:exec dir="${dir}" executable="ssh" failonerror="true">
@@ -41,6 +42,25 @@
 	</define:tag>
 
         <!--
+         @name the name of file to deploy
+         @dir the name of the directory the file lives in
+         @linkname the name of the symlink
+         @type the maven "type". Slightly different behaviour: if you want a trailing 's' you 
+               should add it (ie "jars" instead of "jar")
+        -->
+        <define:tag name="symlink">
+            <j:set var="pass" value='-i "${maven.repo.default.privatekey}"'/>
+            <j:set var="acct" value="${maven.repo.default.username}@${maven.repo.default.host}"/>
+            <j:set var="deployDir" value="${maven.repo.default.directory}/${pom.groupId}/${type}"/>
+            <j:set var="symlinkDir" value="${maven.repo.default.directory}/${pom.groupId}"/>
+            <j:set var="grp" value="${maven.repo.default.group}"/>
+
+            <ant:exec dir="${dir}" executable="ssh" failonerror="true">
+                <ant:arg line="${pass} ${acct} 'rm -f ${symlinkDir}/${linkname}; ln -s ${deployDir}/${name} ${symlinkDir}/${linkname}'"/>
+            </ant:exec>
+	</define:tag>
+
+        <!--
          @name the name of file to gpg
          @dir the name of the directory the file lives in
         -->
@@ -49,6 +69,8 @@
                 <ant:arg line="--yes -v --output ${name}.asc --detach-sig --armor ${name}"/>
             </ant:exec>
         </define:tag>
+
+        
     </define:taglib>
 
     <goal name="excalibur:tagRelease">
@@ -76,24 +98,55 @@
             dir="${maven.build.dir}"/>
     </postGoal>
 
-    <postGoal name="dist:deploy-src">
+    <goal name="dist:deploy-src" prereqs="dist:build-src">
+        <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}-src.zip"
+            type="source" dir="${maven.dist.dir}"/>
+        <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}-src.tar.gz"
+            type="source" dir="${maven.dist.dir}"/>
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}-src.zip.asc"
-            type="distribution" dir="${maven.dist.dir}"/>
+            type="source" dir="${maven.dist.dir}"/>
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}-src.tar.gz.asc"
-            type="distribution" dir="${maven.dist.dir}"/>
-    </postGoal>
+            type="source" dir="${maven.dist.dir}"/>
 
-    <postGoal name="dist:deploy-bin">
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}-src.zip"
+            linkname="${pom.artifactId}-current-src.zip" type="source" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}-src.zip.asc"
+            linkname="${pom.artifactId}-current-src.zip.asc" type="source" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}-src.tar.gz"
+            linkname="${pom.artifactId}-current-src.tar.gz" type="source" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}-src.tar.gz.asc"
+            linkname="${pom.artifactId}-current-src.tar.gz.asc" type="source" dir="${maven.dist.dir}"/>
+    </goal>
+
+    <goal name="dist:deploy-bin" prereqs="dist:build-bin">
+        <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.zip"
+            type="binaries" dir="${maven.dist.dir}"/>
+        <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.tar.gz"
+            type="binaries" dir="${maven.dist.dir}"/>
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.zip.asc"
-            type="distribution" dir="${maven.dist.dir}"/>
+            type="binaries" dir="${maven.dist.dir}"/>
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.tar.gz.asc"
-            type="distribution" dir="${maven.dist.dir}"/>
+            type="binaries" dir="${maven.dist.dir}"/>
 
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.jar"
-            type="jar" dir="${maven.build.dir}"/>
+            type="jars" dir="${maven.build.dir}"/>
         <excalibur:deploy name="${pom.artifactId}-${pom.currentVersion}.jar.asc"
-            type="jar" dir="${maven.build.dir}"/>
-    </postGoal>
+            type="jars" dir="${maven.build.dir}"/>
+
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.zip"
+            linkname="${pom.artifactId}-current.zip" type="binaries" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.zip.asc"
+            linkname="${pom.artifactId}-current.zip.asc" type="binaries" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.tar.gz"
+            linkname="${pom.artifactId}-current.tar.gz" type="binaries" dir="${maven.dist.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.tar.gz.asc"
+            linkname="${pom.artifactId}-current.tar.gz.asc" type="binaries" dir="${maven.dist.dir}"/>
+
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.jar"
+            linkname="${pom.artifactId}-current.jar" type="jars" dir="${maven.build.dir}"/>
+        <excalibur:symlink name="${pom.artifactId}-${pom.currentVersion}.jar.asc"
+            linkname="${pom.artifactId}-current.jar.asc" type="jars" dir="${maven.build.dir}"/>
+    </goal>
 
     <goal name="excalibur:deploy">
         <maven:user-check user="${maven.username}"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org