vmassol 2004/06/08 00:13:17
Modified: integration/maven plugin.properties plugin.jelly
integration/maven/xdocs changes.xml properties.xml
Log:
Added new <code>cactus.sysproperties</code> property to the Maven plugin for Cactus
to allow passing system properties to the client and server side Cactus JVMs.
Revision Changes Path
1.17 +11 -0 jakarta-cactus/integration/maven/plugin.properties
Index: plugin.properties
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/maven/plugin.properties,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- plugin.properties 29 Feb 2004 20:15:33 -0000 1.16
+++ plugin.properties 8 Jun 2004 07:13:17 -0000 1.17
@@ -87,6 +87,17 @@
# cactus.logging.config.client = ${basedir}/logging_client.properties
# cactus.logging.config.server = ${basedir}/logging_server.properties
+# Use this property elements to specify system properties required
+# by the test class. These properties will be made available to the
+# Cactus client side and server side JVMs during the execution of
+# the test. You can specify several system properties by listing
+# their names, separating them with spaces. Each property value is
+# defined as a separate Maven property.
+# For example:
+# cactus.sysproperties=prop1 basedir
+# prop1=your value
+# basedir=${basedir}
+
# -------------------------------------------------------------------
# Container-related properties
# -------------------------------------------------------------------
1.27 +7 -0 jakarta-cactus/integration/maven/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/maven/plugin.jelly,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- plugin.jelly 22 Apr 2004 20:58:42 -0000 1.26
+++ plugin.jelly 8 Jun 2004 07:13:17 -0000 1.27
@@ -329,6 +329,13 @@
failureproperty="cactustests.failure"
printsummary="${cactus.printsummary}">
+ <!-- Pass any user-defined system properties -->
+ <util:tokenize var="listOfProperties" delim="
">${cactus.sysproperties}</util:tokenize>
+ <j:forEach var="someProperty" items="${listOfProperties}">
+ <ant:sysproperty key="${someProperty}"
+ value="${context.getVariable(someProperty)}"/>
+ </j:forEach>
+
<!-- Configure the cactus task for logging -->
<j:if test="${context.getVariable('cactus.logging.config.client') != null}">
<cactusproperty server="false"
1.37 +8 -0 jakarta-cactus/integration/maven/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/maven/xdocs/changes.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- changes.xml 8 May 2004 18:42:54 -0000 1.36
+++ changes.xml 8 Jun 2004 07:13:17 -0000 1.37
@@ -7,6 +7,14 @@
<body>
+ <release version="1.7dev" date="in CVS">
+ <action dev="vmassol" type="add">
+ Added new <code>cactus.sysproperties</code> property to the
+ Maven plugin for Cactus to allow passing system properties to
+ the client and server side Cactus JVMs.
+ </action>
+ </release>
+
<release version="1.6" date="2004-05-08">
<action dev="vmassol" type="add" issue="CACTUS-102" due-to="Nicolas De Loof">
When calling <code>cactus:test</code>, only run the tests if there are
1.21 +19 -0 jakarta-cactus/integration/maven/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/integration/maven/xdocs/properties.xml,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- properties.xml 8 Jun 2004 05:51:07 -0000 1.20
+++ properties.xml 8 Jun 2004 07:13:17 -0000 1.21
@@ -253,6 +253,25 @@
</p>
</td>
</tr>
+ <tr>
+ <td>cactus.sysproperties</td>
+ <td>Yes</td>
+ <td>
+ Use this property elements to specify system properties required
+ by the test class. These properties will be made available to the
+ Cactus client side and server side JVMs during the execution of
+ the test. You can specify several system properties by listing
+ their names, separating them with spaces. Each property value is
+ defined as a separate Maven property.
+ For example:
+<source><![CDATA[
+cactus.sysproperties=prop1 basedir
+prop1=your value
+basedir=${basedir}
+]]>
+ </source>
+ </td>
+ </tr>
</table>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]