5 if not defined JAVA_HOME (
6 echo Error: JAVA_HOME is not defined.
10 if not defined JAVACMD (
11 set JAVACMD=%JAVA_HOME%\bin\java.exe
14 if not exist %JAVACMD% (
15 echo Error: JAVA_HOME is not defined correctly.
16 echo Cannot execute %JAVACMD%
20 REM The root of the Shibboleth package tree, relative to the run directory
21 if not defined SHIB_HOME (
25 set ENDORSED=%SHIB_HOME%\endorsed
27 REM Where log4j config file is
28 set LOG_CONFIG=%SHIB_HOME%\conf\log4j.properties
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"
36 REM Grab all the dependencies
37 if defined CLASSPATH (
38 set LOCALCLASSPATH=%CLASSPATH%
41 REM add in the dependency .jar files
42 for %%i in (%SHIB_HOME%\lib\*.jar) do (
43 call %SHIB_HOME%\cpappend.bat %%i
47 %JAVACMD% -Djava.endorsed.dirs="%ENDORSED%" -Dlog4j.configuration="%LOG_CONFIG%" -cp "%LOCALCLASSPATH%" edu.internet2.middleware.shibboleth.utils.ExtKeyTool %*