how to get user environment variables for ant on Macintosh [message #153212] |
Thu, 18 May 2006 12:53  |
Eclipse User |
|
|
|
I'm finding that my environment variables are not getting picked up when I
try to do an ant build from within eclipse.
I am running 3.1.2 on Macintosh OSX 10.4.6 and I typically run eclipse by
double-clicking the application icon in /Applications. However, I find
that my environment variables (as set in .bash_profile) are not being
picked up.
If I run from a shell prompt, I see all my environment variables are
appropriately set.
Perhaps this is a mac question, but is there a way to pass my environment
into eclipse when launched via double-clicking on the app icon?
Thanks,
Linus
|
|
|
Re: how to get user environment variables for ant on Macintosh [message #153264 is a reply to message #153212] |
Thu, 18 May 2006 16:43  |
Eclipse User |
|
|
|
Eclipse will inherit the environment that it is launched from. This
means that it will not usually match the environment in your shell
unless you launch from the shell.
There are a few options for setting up your Mac environment. This
article gives a good summary:
http://developer.apple.com/documentation/MacOSX/Conceptual/B PRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc /uid/20002093-BCIJIJBH
HTH
Kevin
Linus Kamb wrote:
> I'm finding that my environment variables are not getting picked up when
> I try to do an ant build from within eclipse.
> I am running 3.1.2 on Macintosh OSX 10.4.6 and I typically run eclipse
> by double-clicking the application icon in /Applications. However, I
> find that my environment variables (as set in .bash_profile) are not
> being picked up.
>
> If I run from a shell prompt, I see all my environment variables are
> appropriately set.
>
> Perhaps this is a mac question, but is there a way to pass my
> environment into eclipse when launched via double-clicking on the app icon?
>
> Thanks,
> Linus
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.29325 seconds