summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-07-17 09:58:26 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-07-17 09:58:26 +0000
commit07729e8036aee41eab64041deca83478afa61cb0 (patch)
tree16c7b7be6e1ef5f608530285e7265f90a7ed720a /dev-java/ant/files
parentAdded to ~ppc (diff)
downloadgentoo-2-07729e8036aee41eab64041deca83478afa61cb0.tar.gz
gentoo-2-07729e8036aee41eab64041deca83478afa61cb0.tar.bz2
gentoo-2-07729e8036aee41eab64041deca83478afa61cb0.zip
version bump
Diffstat (limited to 'dev-java/ant/files')
-rw-r--r--dev-java/ant/files/1.6.2/ant90
-rw-r--r--dev-java/ant/files/digest-ant-1.6.21
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-java/ant/files/1.6.2/ant b/dev-java/ant/files/1.6.2/ant
new file mode 100644
index 000000000000..eb60e9cfa66e
--- /dev/null
+++ b/dev-java/ant/files/1.6.2/ant
@@ -0,0 +1,90 @@
+#! /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.2/ant,v 1.1 2004/07/17 09:58:26 axxo 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="$ANT_LIB/ant-launcher.jar:${LOCALCLASSPATH}:`java-config --classpath=ant,ant-optional,log4j,xerces-2,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" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.launch.Launcher $ANT_ARGS -lib "$CLASSPATH" "$@"
diff --git a/dev-java/ant/files/digest-ant-1.6.2 b/dev-java/ant/files/digest-ant-1.6.2
new file mode 100644
index 000000000000..511c4167d672
--- /dev/null
+++ b/dev-java/ant/files/digest-ant-1.6.2
@@ -0,0 +1 @@
+MD5 83c3adefdbf90bcbc4b804d4c55c0778 apache-ant-1.6.2-src.tar.bz2 6282237