diff options
Diffstat (limited to 'dev-java/ant/files/gentoo-ant-1.4.1')
-rw-r--r-- | dev-java/ant/files/gentoo-ant-1.4.1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-java/ant/files/gentoo-ant-1.4.1 b/dev-java/ant/files/gentoo-ant-1.4.1 index ecd694f34961..c7ecea773f9d 100644 --- a/dev-java/ant/files/gentoo-ant-1.4.1 +++ b/dev-java/ant/files/gentoo-ant-1.4.1 @@ -1,5 +1,15 @@ #! /bin/sh +if [ -f $HOME/.gentoo/java-env ] ; then + envfile=$HOME/.gentoo/java-env +elif [ -f /etc/env.d/20java ] ; then + envfile=/etc/env.d/20java +else + echo "!!! /etc/env.d/20java not found, please configure your system VM with java-config" +fi + +JAVA_HOME=`grep JAVA_HOME $envfile | sed "s/JAVA_HOME=//"` + if [ -f $HOME/.antrc ] ; then . $HOME/.antrc fi |