Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9394 - Running /usr/bin/ant produces a syntax error
Summary: Running /usr/bin/ant produces a syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-20 12:53 UTC by Nathan Hollingsworth
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Hollingsworth 2002-10-20 12:53:46 UTC
Currently /usr/bin/ant reads:
<snip>
if [ -f $HOME/.gentoo/java-env ] ; then
  source $HOME/.gentoo/java-env
else
  JAVA_HOME=`java-config --jdk-home`
  if [ -z $JAVA_HOME ] ; then
    JAVA_HOME=`java-config --jre-home`
  CLASSPATH=`java-config --classpath`
fi
<snip>

It should read:
<snip>
if [ -f $HOME/.gentoo/java-env ] ; then
  source $HOME/.gentoo/java-env
else
  JAVA_HOME=`java-config --jdk-home`
  if [ -z $JAVA_HOME ] ; then
    JAVA_HOME=`java-config --jre-home`
  fi
  CLASSPATH=`java-config --classpath`
fi
<snip>
Comment 1 squeeze 2002-10-21 07:00:58 UTC
... and currently /usr/bin/ant reads:

<snip>
JAVACMD="${JAVA_HOME}/java"
</snip>

Shoud read:
<snip>
JAVACMD="${JAVA_HOME}/bin/java"
</snip>

and a superior solution :):
<snip>
JAVACMD=`java-config --java`
</snip>
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-10-26 07:55:26 UTC
Fixed. Didn't bump. Try dev-java/ant-1.5.1