Pass environment variables to a Java test
Jonathan Gibbons
jonathan.gibbons at oracle.com
Sat Apr 27 07:57:54 PDT 2013
On 04/27/2013 12:54 AM, Weijun Wang wrote:
>
>
> 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.
Sorry.
jtreg can't do /everything/ for you :-) Unless you are looking for the
as-yet-unimplemented -dwim option.
-- Jon
More information about the jtreg-use
mailing list