Alex It should work . by the way your PATH variable should be placed in /etc/paths like this :
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/Users/alex/Dev/apache-ant-1.9.2/bin
Note after each line there is a return key
As for environment variables open your ~/.bash_profile and place the.
export ANT_HOME = /Users/alex/Dev/apache-ant-1.9.2
launchctl setenv ANT_HOME $ANT_HOME
export ANT_OPTS = -Xmx512M
launchctl setenv ANT_OPTS $ANT_OPTS
make sure you save and restart all applications that need to read environment variables. I faced the same problem with intelliJ accessing M2_HOME
As a side note : consulting the man pages of launchctl(1)
DEPRECATEDANDREMOVEDFUNCTIONALITY
launchctl no longer has an interactive mode, nor does it accept commands from stdin. The
/etc/launchd.conf file is no longer consulted for subcommands to run during early boot time; this func-
tionality was removed for security considerations. While it was documented that $HOME/.launchd.conf
would be consulted prior to setting up a user's session, this functionality was never implemented.
launchd no longer uses Unix domain sockets for communication, so the LAUNCHD_SOCKET environment vari-
able is no longer relevant and is not set.
launchd no longer loads configuration files from the network