diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-04-15 21:10:16 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-04-15 21:10:16 +0000 |
commit | 1181a4cc181074c9e27903edccfcdfb3e41c8639 (patch) | |
tree | 240a7fe73340d6d86d83c5cfccc9ca1942eed170 /dev-java/ant/files | |
parent | Version bump. Closes #17097. (diff) | |
download | gentoo-2-1181a4cc181074c9e27903edccfcdfb3e41c8639.tar.gz gentoo-2-1181a4cc181074c9e27903edccfcdfb3e41c8639.tar.bz2 gentoo-2-1181a4cc181074c9e27903edccfcdfb3e41c8639.zip |
Version bump. Closes #17097.
Diffstat (limited to 'dev-java/ant/files')
-rw-r--r-- | dev-java/ant/files/1.5.3/ant | 89 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.5.2 | 1 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.5.3 | 4 |
3 files changed, 92 insertions, 2 deletions
diff --git a/dev-java/ant/files/1.5.3/ant b/dev-java/ant/files/1.5.3/ant new file mode 100644 index 000000000000..ba30f64dfc6f --- /dev/null +++ b/dev-java/ant/files/1.5.3/ant @@ -0,0 +1,89 @@ +#! /bin/sh + +# 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.5.3/ant,v 1.1 2003/04/15 21:10:04 absinthe Exp $ + +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`:${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 + +# 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`" + +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." +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 "$@" diff --git a/dev-java/ant/files/digest-ant-1.5.2 b/dev-java/ant/files/digest-ant-1.5.2 index b6c063a1ac53..f3d175634339 100644 --- a/dev-java/ant/files/digest-ant-1.5.2 +++ b/dev-java/ant/files/digest-ant-1.5.2 @@ -1,3 +1,4 @@ MD5 2db5008ae90f3b508fa45b8bea36c9b6 /files/1.5.2/ant 2373 +MD5 6e22e7d1b121a847e107b6498f48e0a4 /files/1.5.3/ant 2207 MD5 a5cb516430eda14e16893fe939a0fa6c /ant-1.5.2.ebuild 779 MD5 f91504b3af51358c034fb926f4ce9895 apache-ant-1.5.2-bin.tar.bz2 5556999 diff --git a/dev-java/ant/files/digest-ant-1.5.3 b/dev-java/ant/files/digest-ant-1.5.3 index d4c8a34f12f0..79fb2857bc0c 100644 --- a/dev-java/ant/files/digest-ant-1.5.3 +++ b/dev-java/ant/files/digest-ant-1.5.3 @@ -1,4 +1,4 @@ MD5 2db5008ae90f3b508fa45b8bea36c9b6 /files/1.5.2/ant 2373 -MD5 a9f0b57c8cc89323c4e216d6c0733849 /files/1.5.3/ant 2207 -MD5 26f39c2dffdcb766938d0408d52ace76 /ant-1.5.3.ebuild 782 +MD5 6e22e7d1b121a847e107b6498f48e0a4 /files/1.5.3/ant 2207 +MD5 38168f013ed74a5c081135949f9303f3 /ant-1.5.3.ebuild 782 MD5 ecffee2290ca25ba0e108a1130fe0f91 apache-ant-1.5.3-bin.tar.bz2 5674951 |