summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Almenar <strider@gentoo.org>2004-02-10 18:18:51 +0000
committerAdrian Almenar <strider@gentoo.org>2004-02-10 18:18:51 +0000
commitc8684e777a811d07c6a8bac2e2bf452084e1eb3d (patch)
treee81f5718578c8dd21d5f90ba7d32a2bcf61be922 /dev-java/ant
parentsmall tidyup (diff)
downloadhistorical-c8684e777a811d07c6a8bac2e2bf452084e1eb3d.tar.gz
historical-c8684e777a811d07c6a8bac2e2bf452084e1eb3d.tar.bz2
historical-c8684e777a811d07c6a8bac2e2bf452084e1eb3d.zip
Forgetted a file.
Diffstat (limited to 'dev-java/ant')
-rw-r--r--dev-java/ant/Manifest1
-rw-r--r--dev-java/ant/files/1.6.0-r3/ant89
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/ant/Manifest b/dev-java/ant/Manifest
index eee1aaee9d75..bc4983e1ec06 100644
--- a/dev-java/ant/Manifest
+++ b/dev-java/ant/Manifest
@@ -12,6 +12,7 @@ MD5 8d9dbdc8011a4b6ca468537db70bd4fb files/digest-ant-1.5.4-r1 74
MD5 c2a3ad39a9e095b30108083f4002b384 files/digest-ant-1.6.0-r2 74
MD5 c2a3ad39a9e095b30108083f4002b384 files/digest-ant-1.6.0-r3 74
MD5 5841a69d6263fda47a60334730e1e0c0 files/1.6.0-r2/ant 2441
+MD5 e0201a69f756a0c3c1f982ff9e29eaa4 files/1.6.0-r3/ant 2441
MD5 4233391fc580c36c78c9f2bc2057327f files/1.5.3/ant 2208
MD5 9cb067e9b0997856af50e7e117263596 files/1.5.3/1_6_backport-jdk142.patch.gz 916
MD5 e285a4a8da9b4f50a458433377f9b130 files/1.5.4/ant 2272
diff --git a/dev-java/ant/files/1.6.0-r3/ant b/dev-java/ant/files/1.6.0-r3/ant
new file mode 100644
index 000000000000..a6c00e9125e6
--- /dev/null
+++ b/dev-java/ant/files/1.6.0-r3/ant
@@ -0,0 +1,89 @@
+#! /bin/bash
+
+# Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+# reserved.
+# Edited for Gentoo Linux
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/files/1.6.0-r3/ant,v 1.1 2004/02/10 18:18:51 strider Exp $
+
+if [ -f $HOME/.gentoo/java-env ] ; then
+ source $HOME/.gentoo/java-env
+else
+ JAVA_HOME=`java-config --jdk-home`
+ CLASSPATH=`java-config --classpath`:${CLASSPATH}
+fi
+
+if [ -z $JAVA_HOME ] ; then
+ echo "Error: No JDK found!"
+ echo "Try using java-config script to set your JDK"
+ echo "Remember that you need a JDK not a JRE"
+ exit 1
+fi
+
+# load system-wide ant configuration
+if [ -f "/etc/ant.conf" ] ; then
+ . /etc/ant.conf
+fi
+
+# provide default values for people who don't use RPMs
+if [ -z "$rpm_mode" ] ; then
+ rpm_mode=false;
+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-config --java`"
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly."
+ echo " We cannot execute $JAVACMD"
+ exit 1
+fi
+
+if [ -n "$CLASSPATH" ] ; then
+ LOCALCLASSPATH="$CLASSPATH"
+fi
+
+# add in the dependency .jar files
+LOCALCLASSPATH="${LOCALCLASSPATH}:`java-config --classpath=ant,ant-optional,log4j,xerces,xalan,junit,antlr,bcel,bsh,commons-beanutils,commons-logging,commons-net,oro,jdepend,jsch,regexp,rhino,jython,jta,jaf,javamail 2> /dev/null`"
+
+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 (or not exported)."
+ 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."
+ echo " Try using java-config script"
+fi
+
+# Allow Jikes support (off by default)
+if $usejikes; then
+ ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
+fi
+
+# 2002-11-02, karltk@gentoo.org:
+# The Blackdown JDK on PPC hiccups with native threads
+#
+if [ "`arch`" == "ppc" ] ; then
+ export THREADS_FLAG="green"
+fi
+
+"$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@"