/[Apache-SVN]/maven/maven-1/plugins/trunk/cruisecontrol/plugin.jelly
ViewVC logotype

Diff of /maven/maven-1/plugins/trunk/cruisecontrol/plugin.jelly

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- maven/maven-1/plugins/trunk/cruisecontrol/plugin.jelly	2005/02/19 16:31:35	154418
+++ maven/maven-1/plugins/trunk/cruisecontrol/plugin.jelly	2005/02/19 16:32:43	154419
@@ -130,7 +130,12 @@
     </j:choose>
   </goal>
 
-  <goal name="cruisecontrol:install-local" prereqs="cruisecontrol:configure">
+  <!--==================================================================-->
+  <!-- Install the generated CruiseControl configuration on the same    -->
+  <!-- machine in the ${maven.cruisecontrol.work.dir} directory.        -->
+  <!--==================================================================-->    
+  <goal name="cruisecontrol:install-local" prereqs="cruisecontrol:configure"
+      description="Perform a local installation of the generated CruiseControl configuration">
 
     <!-- Only deploy if the work dir property has been set to a location
          different than the default -->
@@ -158,6 +163,31 @@
     -->
   </goal>
 
+  <!--==================================================================-->
+  <!-- Configure the CruiseControl Webapp WAR and generate a fully      -->
+  <!-- configured WAR ready to be used.                                 -->
+  <!--==================================================================-->    
+  <goal name="cruisecontrol:configure-war" prereqs="cruisecontrol:validate"
+      description="Generate a configured CruiseControl Webapp WAR">
+
+    <ant:unwar src="${maven.cruisecontrol.home}/reporting/jsp/dist/cruisecontrol.war" 
+        dest="${maven.cruisecontrol.build.dir}/cruisecontrolwar"/>
+
+    <!-- Modify the web.xml file -->
+    <ant:replace file="${maven.cruisecontrol.build.dir}/cruisecontrolwar/WEB-INF/web.xml"
+      token="&lt;param-value&gt;logs&lt;/param-value&gt;"
+      value="&lt;param-value&gt;${maven.cruisecontrol.logs.dir}&lt;/param-value&gt;"/>
+    <ant:replace file="${maven.cruisecontrol.build.dir}/cruisecontrolwar/WEB-INF/web.xml"
+      token="&lt;param-value&gt;status.txt&lt;/param-value&gt;"
+      value="&lt;param-value&gt;${maven.cruisecontrol.currentbuildstatus.filename}&lt;/param-value&gt;"/>
+
+    <ant:war destfile="${maven.cruisecontrol.build.dir}/cruisecontrol.war" 
+        basedir="${maven.cruisecontrol.build.dir}/cruisecontrolwar"
+        webxml="${maven.cruisecontrol.build.dir}/cruisecontrolwar/WEB-INF/web.xml"
+        excludes="**/web.xml"/>
+
+  </goal>
+  
   <goal name="maven-cruisecontrol-plugin:report">
     <!-- TODO: download and transform instead of linking to it -->
   </goal>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26