Added new <code>cruisecontrol:configure-war</code> goal that generates a configured CruiseControl webapp WAR.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@154419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2005-02-19 16:32:43 +00:00
parent 7071f42f23
commit 161bee3755
3 changed files with 41 additions and 1 deletions

View File

@ -130,7 +130,12 @@
</j:choose> </j:choose>
</goal> </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 <!-- Only deploy if the work dir property has been set to a location
different than the default --> different than the default -->
@ -158,6 +163,31 @@
--> -->
</goal> </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"> <goal name="maven-cruisecontrol-plugin:report">
<!-- TODO: download and transform instead of linking to it --> <!-- TODO: download and transform instead of linking to it -->
</goal> </goal>

View File

@ -26,6 +26,10 @@
</properties> </properties>
<body> <body>
<release version="1.7" date="in SVN"> <release version="1.7" date="in SVN">
<action dev="vmassol" type="add">
Added new <code>cruisecontrol:configure-war</code> goal that generates
a configured CruiseControl webapp WAR.
</action>
<action dev="vmassol" type="update"> <action dev="vmassol" type="update">
Use the same default value for the Use the same default value for the
<code>maven.cruisecontrol.mail.buildresultsurl</code> property <code>maven.cruisecontrol.mail.buildresultsurl</code> property

View File

@ -43,6 +43,12 @@
machine (it uses a file copy). machine (it uses a file copy).
</description> </description>
</goal> </goal>
<goal>
<name>cruisecontrol:configure-war</name>
<description>
Generates a configured CruiseControl webapp WAR.
</description>
</goal>
</goals> </goals>
</body> </body>
</document> </document>