/usr/bin/ant is a shell script to start the Java build tool ANT. It retrieves some environment settings from /etc/env.d/20java. My active Java kit is blackdown-jdk-1.3.1. Unfortunately the file 20java has several lines containing the string JAVA_HOME, with the shell script getting all of them instead of only the line setting the variable. As a result, JAVA_HOME will contain a multiline string which ANT doesn't like. Fix: /usr/bin/ant, line 11: - JAVA_HOME=`grep JAVA_HOME $envfile | sed "s/JAVA_HOME=//" + JAVA_HOME=`grep "^JAVA_HOME" $envfile | sed "s/JAVA_HOME=//"`
Fixed in dev-java/ant-1.4.1-r3