Removed a bunch of dependencies on sun-proprietary classes.
[java-idp.git] / bin / extkeytool.bat
1 @echo off
2 setlocal
3
4 REM We need a JVM
5 if not defined JAVA_HOME  (
6   echo Error: JAVA_HOME is not defined.
7   exit /b
8 )
9
10 if not defined JAVACMD (
11   set JAVACMD=%JAVA_HOME%\bin\java.exe
12 )
13
14 if not exist %JAVACMD% (
15   echo Error: JAVA_HOME is not defined correctly.
16   echo Cannot execute %JAVACMD%
17   exit /b
18 )
19
20 REM The root of the Shibboleth package tree, relative to the run directory
21 if not defined SHIB_HOME (
22   set SHIB_HOME=.
23 )
24
25 set ENDORSED=%SHIB_HOME%\endorsed
26
27 REM Where log4j config file is
28 set LOG_CONFIG=%SHIB_HOME%\conf\log4j.properties
29
30 if not exist %SHIB_HOME%\lib\shib-util.jar (
31   echo Error: Cannot find shib-util.jar
32   echo          If you downloaded the shibboleth source, you need to run "ant build-util"
33   exit /b
34 )
35
36 REM Grab all the dependencies
37 if defined CLASSPATH (
38   set LOCALCLASSPATH=%CLASSPATH%
39 )
40
41 REM add in the dependency .jar files
42 for %%i in (%SHIB_HOME%\lib\*.jar) do (
43         call %SHIB_HOME%\cpappend.bat %%i
44 )
45
46 REM Here we go
47 %JAVACMD% -Djava.endorsed.dirs="%ENDORSED%" -Dlog4j.configuration="%LOG_CONFIG%" -cp "%LOCALCLASSPATH%" edu.internet2.middleware.shibboleth.utils.ExtKeyTool %*