Skip to content

Commit 60bfd79

Browse files
committed
Fix eol
1 parent cb17626 commit 60bfd79

File tree

1 file changed

+74
-74
lines changed

1 file changed

+74
-74
lines changed

demo/jline-repl.bat

+74-74
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
@echo off
2-
3-
set DIRNAME=%~dp0%
4-
set ROOTDIR=%DIRNAME%\..
5-
set TARGETDIR=%DIRNAME%target
6-
7-
rem initialization
8-
if not exist %TARGETDIR%\lib (
9-
echo Build jline with maven before running the demo
10-
goto END
11-
)
12-
13-
goto :SETUP_CLASSPATH
14-
15-
: APPEND_TO_CLASSPATH
16-
set filename=%~1
17-
set cp=%cp%;%TARGETDIR%\lib\%filename%
18-
goto :EOF
19-
20-
:SETUP_CLASSPATH
21-
set cp=%TARGETDIR%\classes
22-
rem JLINE
23-
pushd %TARGETDIR%\lib
24-
for %%G in (jline-*.jar) do call:APPEND_TO_CLASSPATH %%G
25-
rem Groovy
26-
for %%G in (groovy-*.jar) do call:APPEND_TO_CLASSPATH %%G
27-
for %%G in (ivy-*.jar) do call:APPEND_TO_CLASSPATH %%G
28-
29-
set "opts=%JLINE_OPTS%"
30-
set "logconf=%DIRNAME%etc\logging.properties"
31-
:RUN_LOOP
32-
if "%1" == "jansi" goto :EXECUTE_JANSI
33-
if "%1" == "jna" goto :EXECUTE_JNA
34-
if "%1" == "debug" goto :EXECUTE_DEBUG
35-
if "%1" == "debugs" goto :EXECUTE_DEBUGS
36-
if "%1" == "verbose" goto :EXECUTE_VERBOSE
37-
if "%1" == "" goto :EXECUTE_MAIN
38-
set "opts=%opts% %~1"
39-
shift
40-
goto :RUN_LOOP
41-
42-
:EXECUTE_JANSI
43-
for %%G in (jansi-*.jar) do call:APPEND_TO_CLASSPATH %%G
44-
shift
45-
goto :RUN_LOOP
46-
47-
:EXECUTE_JNA
48-
for %%G in (jna-*.jar) do call:APPEND_TO_CLASSPATH %%G
49-
shift
50-
goto :RUN_LOOP
51-
52-
:EXECUTE_DEBUG
53-
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
54-
shift
55-
goto :RUN_LOOP
56-
57-
:EXECUTE_DEBUGS
58-
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
59-
shift
60-
goto :RUN_LOOP
61-
62-
:EXECUTE_VERBOSE
63-
set "logconf=%DIRNAME%etc\logging-verbose.properties"
64-
shift
65-
goto :RUN_LOOP
66-
67-
:EXECUTE_MAIN
68-
popd
69-
70-
rem Launching Groovy REPL...
71-
echo Launching Groovy REPL...
72-
echo Classpath: %cp%
73-
java -cp %cp% %opts% -Dgosh.home=%DIRNAME% -Djava.util.logging.config.file=%logconf% org.jline.demo.Repl
74-
1+
@echo off
2+
3+
set DIRNAME=%~dp0%
4+
set ROOTDIR=%DIRNAME%\..
5+
set TARGETDIR=%DIRNAME%target
6+
7+
rem initialization
8+
if not exist %TARGETDIR%\lib (
9+
echo Build jline with maven before running the demo
10+
goto END
11+
)
12+
13+
goto :SETUP_CLASSPATH
14+
15+
: APPEND_TO_CLASSPATH
16+
set filename=%~1
17+
set cp=%cp%;%TARGETDIR%\lib\%filename%
18+
goto :EOF
19+
20+
:SETUP_CLASSPATH
21+
set cp=%TARGETDIR%\classes
22+
rem JLINE
23+
pushd %TARGETDIR%\lib
24+
for %%G in (jline-*.jar) do call:APPEND_TO_CLASSPATH %%G
25+
rem Groovy
26+
for %%G in (groovy-*.jar) do call:APPEND_TO_CLASSPATH %%G
27+
for %%G in (ivy-*.jar) do call:APPEND_TO_CLASSPATH %%G
28+
29+
set "opts=%JLINE_OPTS%"
30+
set "logconf=%DIRNAME%etc\logging.properties"
31+
:RUN_LOOP
32+
if "%1" == "jansi" goto :EXECUTE_JANSI
33+
if "%1" == "jna" goto :EXECUTE_JNA
34+
if "%1" == "debug" goto :EXECUTE_DEBUG
35+
if "%1" == "debugs" goto :EXECUTE_DEBUGS
36+
if "%1" == "verbose" goto :EXECUTE_VERBOSE
37+
if "%1" == "" goto :EXECUTE_MAIN
38+
set "opts=%opts% %~1"
39+
shift
40+
goto :RUN_LOOP
41+
42+
:EXECUTE_JANSI
43+
for %%G in (jansi-*.jar) do call:APPEND_TO_CLASSPATH %%G
44+
shift
45+
goto :RUN_LOOP
46+
47+
:EXECUTE_JNA
48+
for %%G in (jna-*.jar) do call:APPEND_TO_CLASSPATH %%G
49+
shift
50+
goto :RUN_LOOP
51+
52+
:EXECUTE_DEBUG
53+
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
54+
shift
55+
goto :RUN_LOOP
56+
57+
:EXECUTE_DEBUGS
58+
set "opts=%opts% -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
59+
shift
60+
goto :RUN_LOOP
61+
62+
:EXECUTE_VERBOSE
63+
set "logconf=%DIRNAME%etc\logging-verbose.properties"
64+
shift
65+
goto :RUN_LOOP
66+
67+
:EXECUTE_MAIN
68+
popd
69+
70+
rem Launching Groovy REPL...
71+
echo Launching Groovy REPL...
72+
echo Classpath: %cp%
73+
java -cp %cp% %opts% -Dgosh.home=%DIRNAME% -Djava.util.logging.config.file=%logconf% org.jline.demo.Repl
74+
7575
:END

0 commit comments

Comments
 (0)