ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Tribble <>
Subject Re: <arg>
Date Fri, 11 Aug 2000 18:53:33 GMT
Stefan Bodewig wrote:
> As others have pointed out, it's a all or nothing thing. Once you send
> any environment variables to the subprocess, you have to set them all.
> I've put a warning into docs/index.html about this when I documented
> <env> two days ago. I don't think Ant has a way to circumvent this.
> For PATH it looks like the System property java.library.path holds
> this information (at least on all Sun/Blackdown/IBM JDKs on Linux and
> Sun's JDKs on Windows) although it's not documented anywhere as far as
> I can tell.
> This means, you can use <env key="PATH" value="${java.library.path}" />.
> Stefan

I don't think you can make any portable assumptions about 
java.library.path. Unless someone can point to a specification,
I believe it's safer for the scripts to explicitly pass the current PATH 
as a system property ("ant.system.path" or something) on the command


Louis Tribble                               
Metamata, Inc.                         
Tools for serious Java developers.                       +1 510 796 0915

View raw message