I made a small java program that used the ProcessBuilder to start a command with different PATH environment. No effect. Java could still not find the application.

 - Nicolai

> -----Original Message-----
> From: ant-contrib-developers-admin@lists.sourceforge.net
> [mailto:ant-contrib-developers-admin@lists.sourceforge.net]
> On Behalf Of Dean Hiller
> Sent: Wednesday, March 22, 2006 11:26 AM
> To: ant-contrib-developers@lists.sourceforge.net
> Subject: Re: [Ant-contrib-developers] cpptasks and multiple
> versions of c compiler
>
> I have no idea if it word work when it comes to path, but you
> can always
> try the exec ant task in core ant tasks.
>
> <exec command="set PATH=xxxxxxxxxxxxxxxxx"/>
>
> I just have no idea if it would take affect.  another thing
> is that the
> exec command takes a way of passing new environment variables in, so
> maybe it is just a slight modification to ant-contrib to
> allow the same
> thing.  I am just guessing.
> dean