[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: RE: system property
From: "Marc Dugger" <mdugger () sunsetdirect ! com>
Date: 2003-05-28 19:30:37
[Download RAW message or body]
Thanks, Michal. I had just found this blog entry before reading your
reply, but I'll post for the archives because it was very helpful:
http://radio.weblogs.com/0112098/2002/12/19.html
My maven.xml now includes:
<preGoal name="test:test">
<j:set var="com.sunset.core.config.dir"
value="../build/classes"/>
<!-- define the system property names to be passed into junit
-->
<j:set
var="maven.junit.sysproperties">com.sunset.core.config.dir</j:set>
</preGoal>
> -----Original Message-----
> From: Michal Maczka [mailto:mmaczka@interia.pl]
> Sent: Wednesday, May 28, 2003 2:05 PM
> To: Maven Users List
> Subject: RE: system property
>
> Try to use:
> maven.junit.sysproperties=...
>
> for setting properties for your tests..
>
> Michal
>
> > -----Original Message-----
> > From: Marc Dugger [mailto:mdugger@sunsetdirect.com]
> > Sent: Wednesday, May 28, 2003 7:17 PM
> > To: users@maven.apache.org
> > Subject: system property
> >
> >
> > When invoking the goal test:test, I specify the JVM to fork.
However,
> > the system properties that I am defining with '-D' appear not to be
> > passed to the new JVM. Here's my command line when invoking Maven:
> >
> > $ maven -Dcom.susnetdirect.core.config.dir=. test:test
> >
> > I'd like to set this property in a preGoal to test:test, but haven't
> > read about any way to do this. Any solution would be fine. Thanks
in
> > advance for answers/comments.
> >
> >
> >
----------------------------------------------------------------------
> > Miejsce WARSZAWSKICH spotkan... >>> http://link.interia.pl/f172b
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic