Pass environment variables to a Java test
Brent Christian
brent.christian at oracle.com
Fri Apr 26 23:43:59 PDT 2013
You can just set it on the @run line, yes? I'm pretty sure something
like this has worked for me:
@run main/othervm -Dyour.property.name=value NameOfTestClass
-Brent
On 4/26/13 6:31 PM, Weijun Wang wrote:
> I might have asked this before but cannot find any mail on it.
>
> It seems there is no way to pass environment variables to a Java test,
> and the only way to do that is to write a script or use a
> ProcessBuilder. Is that correct?
>
> Thanks
> Max
More information about the jtreg-use
mailing list