I put something like this in a test:test preGoal:
<j:set var="server.url" value="${test.service}"/>
<j:set var="server.name" value="${server.name.local}"/>
<j:set var="maven.junit.sysproperties">server.url server.name</j:set>
The test:test goal will iterate through the maven.junit.sysproperties
and set them for you.
On Thu, 31 Jul 2003, at 14:18:14 [GMT +0100] Neil Blue wrote:
> Hello,
> We have some junit tests that require certain system properties to be set.
> As we are running the Junit tests in a forked JVM, we are looking for a way to set
> the system properties to specific values in the maven.xml scripts.
> Please does anyone of how this can be achieved, and in addition is there a way to
> set system properties generally in maven scripts.
> Thank you
> Neil Blue
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]