Author: taylor
Date: Sun Jan  1 16:43:51 2006
New Revision: 360605

URL: http://svn.apache.org/viewcvs?rev=360605&view=rev
Log:
Build for container managed authentication

Modified:
    portals/jetspeed-1/trunk/maven.xml

Modified: portals/jetspeed-1/trunk/maven.xml
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/maven.xml?rev=360605&r1=360604&r2=360605&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/maven.xml (original)
+++ portals/jetspeed-1/trunk/maven.xml Sun Jan  1 16:43:51 2006
@@ -431,4 +431,57 @@
         </java>
     </goal>
 
+    <!-- =================================================================== 
-->
+    <!-- Container Managed Authentication                                    
-->
+    <!-- =================================================================== 
-->
+       <goal name='cma' prereqs="_check.required.properties">
+               
+               <!-- build the war file and deploy it -->               
+               <attainGoal name='war'/>                
+               <attainGoal name='deploy'/>                             
+               
+               <!-- override web.xml to set security settings -->
+               <copy
+                       file="./cma/WEB-INF/web.xml"
+                       
todir="${maven.war.appserver.home}/webapps/jetspeed/WEB-INF/"
+                       overwrite="true"/>
+               
+               <!-- merge the TurbineResources.properties -->
+               <taskdef name="props_override" 
classname="org.apache.jetspeed.util.ant.OverwritePropertiesTask">
+                       <classpath>
+                               <path refid="maven.dependency.classpath"/>
+                               <pathelement path="${maven.build.dest}" />
+                       </classpath>
+               </taskdef>
+        <props_override 
+                       
mergeBaseProperties="${maven.war.appserver.home}/webapps/jetspeed/WEB-INF/conf/TurbineResources.properties"
 
+                       
mergeProperties="./cma/WEB-INF/conf/TurbineResources.properties.merge" 
+                       
includesDir="${maven.war.appserver.home}/webapps/jetspeed/WEB-INF/conf/" 
+                       failonerror="true"/>
+               
+               
+               <!-- copy Tomcat Users to Tomcat container -->
+               <attainGoal name='tomcat.users'/>
+               
+       </goal>
+       
+       <!-- Deploy Tomcat Users XML file -->
+       <goal name='tomcat.users' prereqs="_check.required.properties">
+               <copy
+                       file="./cma/tomcat-conf/tomcat-users.xml"
+                       todir="${maven.war.appserver.home}/conf/"
+                       overwrite="true"/>
+       </goal>
+
+       <!-- Required Properties checks -->             
+       <goal name='_check.required.properties' 
+                 description="Check if the required properties are defined">
+      <j:set var="required.property" value="maven.war.appserver.home"/>
+      <attainGoal name="_check.required.property"/>            
+       </goal> 
+       <goal name="_check.required.property">  
+      <fail message="Required property *${required.property}* undefined. 
Please define this property before continuing with build."
+          unless="${required.property}"/>              
+       </goal>
+               
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to