Skip to main content



      Home
Home » Newcomers » Newcomers » how to get user environment variables for ant on Macintosh
how to get user environment variables for ant on Macintosh [message #153212] Thu, 18 May 2006 12:53 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:creating an exe
Next Topic:Unable to start Eclipse
Goto Forum:
  


Current Time: Sat Jul 12 22:50:58 EDT 2025

Powered by FUDForum. Page generated in 0.29325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top