Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@iay
Latest commit a48c820 May 21, 2024 History
1 contributor

Users who have contributed to this file

executable file 49 lines (38 sloc) 1.01 KB
@echo off
setlocal
REM We need a JVM
if not defined JAVA_HOME (
echo Error: JAVA_HOME is not defined.
exit /b
)
if not defined JAVACMD (
set JAVACMD="%JAVA_HOME%\bin\java.exe"
)
if not exist %JAVACMD% (
echo Error: JAVA_HOME is not defined correctly.
echo Cannot execute %JAVACMD%
exit /b
)
if defined CLASSPATH (
set LOCALCLASSPATH=%CLASSPATH%
)
if not defined MDA_HOME (
echo Error: MDA_HOME is not defined.
exit /b
)
if not exist "%MDA_HOME%" (
echo Error: MDA_HOME is not defined correctly.
exit /b
)
REM add in the dependency .jar files
for %%i in ("%MDA_HOME%\lib\*.jar") do (
call "%MDA_HOME%\cpappend.bat" %%i
)
if exist %JAVA_HOME%\lib\tools.jar (
set LOCALCLASSPATH=%LOCALCLASSPATH%;%JAVA_HOME%\lib\tools.jar
)
if exist %JAVA_HOME%\lib\classes.zip (
set LOCALCLASSPATH=%LOCALCLASSPATH%;%JAVA_HOME%\lib\classes.zip
)
REM Go to it !
%JAVACMD% -classpath "%LOCALCLASSPATH%" %JVMOPTS% net.shibboleth.metadata.cli.SimpleCommandLine %*