From: markt Date: Fri, 5 Dec 2008 14:27:57 +0000 (+0000) Subject: https://issues.apache.org/bugzilla/show_bug.cgi?id=46232 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=113d3cebb0d8874bacde3a01a78a53998246b12f;p=tomcat7.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=46232 Don't override the endorsed dir if the user has set it Based on a patch by Russ Tokuyama git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@723738 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/bin/setclasspath.bat b/bin/setclasspath.bat index 3aa7169ba..694476d5c 100755 --- a/bin/setclasspath.bat +++ b/bin/setclasspath.bat @@ -61,8 +61,11 @@ echo This environment variable is needed to run this program goto exit :okBasedir +rem Don't override the endorsed dir if the user has set it previously +if not "%JAVA_ENDORSED_DIRS" == "" goto gotEndorseddir rem Set the default -Djava.endorsed.dirs argument set JAVA_ENDORSED_DIRS=%BASEDIR%\endorsed +:gotEndorseddir rem Set standard CLASSPATH rem Note that there are no quotes as we do not want to introduce random diff --git a/bin/setclasspath.sh b/bin/setclasspath.sh index f16df9ff4..73b390caf 100755 --- a/bin/setclasspath.sh +++ b/bin/setclasspath.sh @@ -95,8 +95,11 @@ if [ ! -x "$BASEDIR"/bin/setclasspath.sh ]; then fi fi -# Set the default -Djava.endorsed.dirs argument -JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed +# Don't override the endorsed dir if the user has set it previously +if [-z "$JAVA_ENDORSED_DIRS"]; then + # Set the default -Djava.endorsed.dirs argument + JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed +fi # Set standard CLASSPATH if [ "$1" = "javac" ] ; then