Pass environment variables to a Java test
Weijun Wang
weijun.wang at oracle.com
Sat Apr 27 00:54:42 PDT 2013
On 4/27/13 3:49 PM, Alan Bateman wrote:
> On 27/04/2013 02:31, 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
> Are you looking for the jtreg -e option?
No. I am looking for something like
@run main/othervm/A=B/C=D Test
Now I have to use ProcessBuilder. Although there are existing libraries
making it easy, still a big pain.
Thanks
Max
>
> -Alan.
More information about the jtreg-use
mailing list