diff options
author | znerd <znerd@FreeBSD.org> | 2004-01-06 07:16:46 +0000 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2004-01-06 07:16:46 +0000 |
commit | 8aaea79cc9974289247b5fb8ccd7751427bfa018 (patch) | |
tree | f6a8fa4a2a5a82400fdacac96d9d0f0f93c7421f /devel/apache-ant | |
parent | 4366f2062156dfd6ccbae6c23ed7c3de8feebe92 (diff) | |
download | FreeBSD-ports-8aaea79cc9974289247b5fb8ccd7751427bfa018.zip FreeBSD-ports-8aaea79cc9974289247b5fb8ccd7751427bfa018.tar.gz |
By default disable FreeBSD-specific behaviour to include all
JAR files in ${PREFIX}/share/java/classes in the CLASSPATH.
To re-enable the non-compatible behaviour, set
ANT_INCLUDE_SHARED_JARS to YES (case-sensitive).
The old, non-compatible behaviour has been a cause of much
discussion and frustration.
Bumped PORTREVISION.
See:
http://lists.freebsd.org/pipermail/freebsd-java/2003-September/000744.html
Requested by: Jonathan Chen <jonc@chen.org.nz> and others
Diffstat (limited to 'devel/apache-ant')
-rw-r--r-- | devel/apache-ant/Makefile | 1 | ||||
-rw-r--r-- | devel/apache-ant/files/ant | 29 | ||||
-rw-r--r-- | devel/apache-ant/files/ant.sh.in | 29 |
3 files changed, 35 insertions, 24 deletions
diff --git a/devel/apache-ant/Makefile b/devel/apache-ant/Makefile index dd3d69c..971369c 100644 --- a/devel/apache-ant/Makefile +++ b/devel/apache-ant/Makefile @@ -7,6 +7,7 @@ PORTNAME= apache-ant PORTVERSION= 1.6.0 +PORTREVISION= 1 CATEGORIES= devel java MASTER_SITES= http://apache.mirror.trueserver.nl/dist/ant/binaries/:bin \ http://apache.proserve.nl/dist/ant/binaries/:bin \ diff --git a/devel/apache-ant/files/ant b/devel/apache-ant/files/ant index 4927ef8..2e3f332 100644 --- a/devel/apache-ant/files/ant +++ b/devel/apache-ant/files/ant @@ -1,8 +1,11 @@ #!/bin/sh # -# FreeBSD-specific startup script for Jakarta Ant. +#-*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 # -# See: http://jakarta.apache.org/ant/ +# FreeBSD-specific startup script for Apache Ant. +# +# See: http://ant.apache.org/ # # $FreeBSD$ # @@ -81,17 +84,19 @@ for JAR_FILE in "${ANT_LIB}"/*.jar; do done # FreeBSD-specific: Add the .jar files from ${PREFIX}/share/java/classes -for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do - - # If the directory is empty, then the input string is returned - if [ -f "${JAR_FILE}" ]; then - if [ -z "${LOCALCLASSPATH}" ]; then - LOCALCLASSPATH="${JAR_FILE}" - else - LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}" +if [ "${ANT_INCLUDE_SHARED_JARS}" = "YES" ]; then + for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do + + # If the directory is empty, then the input string is returned + if [ -f "${JAR_FILE}" ]; then + if [ -z "${LOCALCLASSPATH}" ]; then + LOCALCLASSPATH="${JAR_FILE}" + else + LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}" + fi fi - fi -done + done +fi # Add the JDK tools.jar or classes.zip file to the CLASSPATH if [ -n "${JAVA_HOME}" ]; then diff --git a/devel/apache-ant/files/ant.sh.in b/devel/apache-ant/files/ant.sh.in index 4927ef8..2e3f332 100644 --- a/devel/apache-ant/files/ant.sh.in +++ b/devel/apache-ant/files/ant.sh.in @@ -1,8 +1,11 @@ #!/bin/sh # -# FreeBSD-specific startup script for Jakarta Ant. +#-*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 # -# See: http://jakarta.apache.org/ant/ +# FreeBSD-specific startup script for Apache Ant. +# +# See: http://ant.apache.org/ # # $FreeBSD$ # @@ -81,17 +84,19 @@ for JAR_FILE in "${ANT_LIB}"/*.jar; do done # FreeBSD-specific: Add the .jar files from ${PREFIX}/share/java/classes -for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do - - # If the directory is empty, then the input string is returned - if [ -f "${JAR_FILE}" ]; then - if [ -z "${LOCALCLASSPATH}" ]; then - LOCALCLASSPATH="${JAR_FILE}" - else - LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}" +if [ "${ANT_INCLUDE_SHARED_JARS}" = "YES" ]; then + for JAR_FILE in "%%PREFIX%%/share/java/classes"/*.jar; do + + # If the directory is empty, then the input string is returned + if [ -f "${JAR_FILE}" ]; then + if [ -z "${LOCALCLASSPATH}" ]; then + LOCALCLASSPATH="${JAR_FILE}" + else + LOCALCLASSPATH="${JAR_FILE}":"${LOCALCLASSPATH}" + fi fi - fi -done + done +fi # Add the JDK tools.jar or classes.zip file to the CLASSPATH if [ -n "${JAVA_HOME}" ]; then |