Skip to content

Commit

Permalink
Remove jline version from the windows demo script
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Dec 13, 2016
1 parent 456c131 commit ee0a721
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions demo/jline-gogo.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,45 @@ set DIRNAME=%~dp0%
set ROOTDIR=%DIRNAME%\..
set TARGETDIR=%ROOTDIR%\target

set JLINE_VERSION=3.1.0-SNAPSHOT
set JANSI_VERSION=1.14
set JNA_VERSION=4.2.2
set GOGO_RUNTIME_VERSION=1.0.0
set GOGO_JLINE_VERSION=1.0.0

rem initialization
if not exist %TARGETDIR%\jline-%JLINE_VERSION%.jar (
echo Build jline with maven before running the demo
goto END
)
if not exist %TARGETDIR%\lib (
mkdir %TARGETDIR%\lib
)

rem JLINE
set cp=%TARGETDIR%\jline-%JLINE_VERSION%.jar
set cp=""
pushd %TARGETDIR%
for %%G in (*.jar) do call:APPEND_TO_CLASSPATH %%G
popd
if not "%cp" == "" goto CLASSPATH_END
echo Build jline with maven before running the demo
goto END
: APPEND_TO_CLASSPATH
set filename=%~1
set suffix=%filename:~-4%
if %suffix% equ .jar set cp=%cp%;%TARGETDIR%\%filename%
goto :EOF

:CLASSPATH_END

rem JANSI
if not exist %TARGETDIR%\lib\jansi-%JANSI_VERSION%.jar (
echo "Downloading Jansi..."
%DIRNAME%\wget.exe -O %TARGETDIR%\lib\jansi-%JANSI_VERSION%.jar http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/%JANSI_VERSION%/jansi-%JANSI_VERSION%.jar
)
set cp=%cp%;%TARGETDIR%\lib\jansi-%JANSI_VERSION%.jar

rem JNA
if not exist %TARGETDIR%\lib\jna-%JNA_VERSION%.jar (
echo "Downloading JNA..."
%DIRNAME%\wget.exe -O %TARGETDIR%\lib\jna-%JNA_VERSION%.jar http://repo1.maven.org/maven2/net/java/dev/jna/jna/%JNA_VERSION%/jna-%JNA_VERSION%.jar
)
set cp=%cp%;%TARGETDIR%\lib\jna-%JNA_VERSION%.jar

rem Gogo Runtime
if not exist %TARGETDIR%\lib\org.apache.felix.gogo.runtime-%GOGO_RUNTIME_VERSION%.jar (
Expand Down

0 comments on commit ee0a721

Please sign in to comment.