portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r314801 - /portals/jetspeed-2/trunk/maven-plugin/plugin.jelly
Date Wed, 12 Oct 2005 06:31:44 GMT
Author: rwatler
Date: Tue Oct 11 23:31:42 2005
New Revision: 314801

URL: http://svn.apache.org/viewcvs?rev=314801&view=rev
Log:
implement generalized j2:warDeploy goal

Modified:
    portals/jetspeed-2/trunk/maven-plugin/plugin.jelly

Modified: portals/jetspeed-2/trunk/maven-plugin/plugin.jelly
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-plugin/plugin.jelly?rev=314801&r1=314800&r2=314801&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-plugin/plugin.jelly (original)
+++ portals/jetspeed-2/trunk/maven-plugin/plugin.jelly Tue Oct 11 23:31:42 2005
@@ -323,22 +323,35 @@
   <!-- =============================================== -->
   
   <goal name="j2:deploy">
+      <j:set var="j2.war.groupId" value="${plugin.groupId}"/>
+      <j:set var="j2.war.version" value="${jetspeed.version}"/>
+      <attainGoal name="j2:warDeploy"/>
+  </goal>
+  <!-- warDeploy allows you to deploy arbitrary wars to the portal deploy folder,
+       optionally downloading it from remote repositories if not available yet
+       Required properties to set:
+       - maven.war.final.name
+       - j2.war.groupId
+       - j2.war.version
+    -->
+  <goal name="j2:warDeploy">
+    <j:set var="depGroup" value="${j2.war.groupId}"/>
+    <j:set var="depType" value="wars"/>
+    <j:set var="depVersion" value="${j2.war.version}"/>
+    <j:set var="depName" value="${maven.war.final.name}-${depVersion}.war"/>
+    <j:if test="${depVersion.endsWith('SNAPSHOT')}">
+      <j:set var="depSnapshot" value="true"/>
+    </j:if>
     <j:set var="online" value="${maven.mode.online}"/>
     <j:if test="${online}">
-      <j:set var="depGroup" value="${plugin.groupId}"/>
-      <j:set var="depType" value="wars"/>
-      <j:set var="depName" value="${maven.war.final.name}-${jetspeed.version}.war"/>
-      <j:set var="depVersion" value="${jetspeed.version}"/>
-      <j:if test="${depVersion.endsWith('SNAPSHOT')}">
-        <j:set var="depSnapshot" value="true"/>
-      </j:if>
       <attainGoal name="j2:_check.dep"/>
     </j:if>
-    <copy file="${maven.repo.local}/${plugin.groupId}/wars/${maven.war.final.name}-${jetspeed.version}.war"
+    <copy file="${maven.repo.local}/${depGroup}/${depType}/${depName}"
           tofile="${org.apache.jetspeed.portal.dir}/WEB-INF/deploy/${maven.war.final.name}.war"
           overwrite="true"
           failonerror="true"/>
   </goal>
+
 
   <goal name="j2:pam.layoutdeploy">
     <j:set var="maven.war.final.name" value="jetspeed-layouts"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message