* [gentoo-dev] dev-java/ant
@ 2002-10-16 11:52 Christoffer Vaaben Ladefoged
2002-10-17 23:48 ` Karl Trygve Kalleberg
0 siblings, 1 reply; 2+ messages in thread
From: Christoffer Vaaben Ladefoged @ 2002-10-16 11:52 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
Hi guys,
I just wanted to thank you all for the coolest linux distro ever.
I'm new to OpenSource-development, but would like to contribute to the
gentoo-project, with a fix for bug #9170 (dev-java/ant).
The problem seems to be simple script-errors in /usr/bin/ant.
I have attached the fixed script.
Best regards,
Christoffer Vaaben Ladefoged - denmark
[-- Attachment #2: ant --]
[-- Type: text/x-sh, Size: 2158 bytes --]
#!/bin/sh
# Copyright (c) 2001-2002 The Apache Software Foundation. All rights
# reserved.
# Edited for Gentoo Linux
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
if [ -z $JAVA_HOME ] ; then
echo "Error: No JDK/JRE found!"
exit 1
fi
# load system-wide ant configuration
if [ -f "/etc/ant.conf" ] ; then
. /etc/ant.conf
fi
if [ -z "$usejikes" ] ; then
usejikes=false;
fi
# load user ant configuration
if [ -f "$HOME/.antrc" ] ; then
. $HOME/.antrc
fi
ANT_HOME=/usr/share/ant
# set ANT_LIB location
ANT_LIB=${ANT_HOME}/lib
JAVACMD="${JAVA_HOME}/bin/java"
if [ ! -x "$JAVACMD" ] ; then
echo "Error: We cannot execute $JAVACMD "
echo "Error: Possibly java-config is not configured, please configure your system VM with java-config"
exit 1
fi
if [ -n "$CLASSPATH" ] ; then
LOCALCLASSPATH="$CLASSPATH"
fi
# add in the dependency .jar files
LOCALCLASSPATH=${LOCALCLASSPATH}:`java-config --classpath=ant`
if [ -n "$JAVA_HOME" ] ; then
if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
fi
if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip"
fi
else
echo "Warning: JAVA_HOME environment variable is not set."
echo " If build fails because sun.* classes could not be found"
echo " you will need to set the JAVA_HOME environment variable"
echo " to the installation directory of java."
fi
# supply JIKESPATH to Ant as jikes.class.path
if [ -n "$JIKESPATH" ] ; then
if $cygwin ; then
JIKESPATH=`cygpath --path --windows "$JIKESPATH"`
fi
ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH"
fi
# Allow Jikes support (off by default)
if $usejikes; then
ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
fi
"$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] dev-java/ant
2002-10-16 11:52 [gentoo-dev] dev-java/ant Christoffer Vaaben Ladefoged
@ 2002-10-17 23:48 ` Karl Trygve Kalleberg
0 siblings, 0 replies; 2+ messages in thread
From: Karl Trygve Kalleberg @ 2002-10-17 23:48 UTC (permalink / raw
To: Christoffer Vaaben Ladefoged; +Cc: gentoo-dev
On 16 Oct 2002, Christoffer Vaaben Ladefoged wrote:
> I'm new to OpenSource-development, but would like to contribute to the
> gentoo-project, with a fix for bug #9170 (dev-java/ant).
You should attach your fix to that bug directly instead of mailing it to
this list.
> The problem seems to be simple script-errors in /usr/bin/ant.
Yes, it's a known problem, there is a fix, but I'm not currently able to
commit it as I'm out of town. It'll be handled tomorrow evening.
> I have attached the fixed script.
Thanks a bundle for caring.
Kind regards,
Karl T
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-17 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 11:52 [gentoo-dev] dev-java/ant Christoffer Vaaben Ladefoged
2002-10-17 23:48 ` Karl Trygve Kalleberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox