Setting environment variables in OS X /etc/launchd.conf

Posted by al nik on Stack Overflow See other posts from Stack Overflow or by al nik
Published on 2010-05-30T15:12:28Z Indexed on 2010/05/30 15:22 UTC
Read the original article Hit count: 413

I'm trying to set some env variable in OS X 10.6 (/etc/launchd.conf)

setenv M2_HOME /usr/share/maven
setenv M2 $M2_HOME/bin
setenv MAVEN_OPTS '-Xms256m -Xmx512m'

M2 and MAVEN_OPTS are not working.
I tried with something like

setenv MAVEN_OPTS -Xms256m\ -Xmx512m

but still it doesn't work. Any idea of what is the correct synthax?
Thanks

© Stack Overflow or respective owner

Related posts about mac

Related posts about osx