Permalink
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?
inc-meta/tools/mda-distribution-0.10.0/mda.bat
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
49 lines (38 sloc)
1.01 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 %* |