-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
32 lines (28 loc) · 656 Bytes
/
Copy pathrun.bat
File metadata and controls
32 lines (28 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
cls
setLocal EnableDelayedExpansion
set string=%~dp0
set string=%string:\=/%
set CLASSPATH="%string%app/bin";"%string%app/config"
for /R "%~dp0/app/lib" %%a in (*.jar) do (
set string=%%a
set string=!string:\=/!
set CLASSPATH=!CLASSPATH!;"!string!"
)
set CLASSPATH=!CLASSPATH!;
javac -version
if ERRORLEVEL 3 goto no_javac
java -version
if ERRORLEVEL 1 goto no_java
cls
java -Dapplication.basedir="%~dp0"" -classpath %CLASSPATH% com.sandwich.koan.runner.AppLauncher %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:no_java
cls
@echo java is not bound to PATH variable.
goto end
:no_javac
cls
@echo javac is not bound to PATH variable.
goto end
:end