Author: remy.maucherat(a)jboss.com
Date: 2009-01-02 11:28:56 -0500 (Fri, 02 Jan 2009)
New Revision: 890
Modified:
trunk/bin/setclasspath.bat
Log:
- Sync setclasspath.
Modified: trunk/bin/setclasspath.bat
===================================================================
--- trunk/bin/setclasspath.bat 2009-01-02 16:05:41 UTC (rev 889)
+++ trunk/bin/setclasspath.bat 2009-01-02 16:28:56 UTC (rev 890)
@@ -1,3 +1,19 @@
+@echo off
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements. See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License. You may obtain a copy of the License at
+rem
+rem
http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
rem ---------------------------------------------------------------------------
rem Set CLASSPATH and Java options
rem
@@ -45,13 +61,16 @@
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
rem quotes into the CLASSPATH
-if not exist "%JAVA_HOME%\bin\tools.jar" goto noJavac
+if not exist "%JAVA_HOME%\lib\tools.jar" goto noJavac
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
:noJavac