Skip to content

Commit

Permalink
Fix ssh support in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 3, 2019
1 parent 1c850e1 commit f7f9604
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/jline-gogo.bat
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ set "logconf=%DIRNAME%etc\logging.properties"
:EXECUTE_SSH
for %%G in (sshd-common-*.jar) do call:APPEND_TO_CLASSPATH %%G
for %%G in (sshd-core-*.jar) do call:APPEND_TO_CLASSPATH %%G
for %%G in (sshd-scp-*.jar) do call:APPEND_TO_CLASSPATH %%G
for %%G in (sshd-sftp-*.jar) do call:APPEND_TO_CLASSPATH %%G
for %%G in (slf4j-api-*.jar) do call:APPEND_TO_CLASSPATH %%G
for %%G in (slf4j-jdk14-*.jar) do call:APPEND_TO_CLASSPATH %%G
shift
Expand Down
2 changes: 2 additions & 0 deletions demo/jline-gogo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ while [ "${1}" != "" ]; do
'ssh' | 'telnet' | 'remote')
cp=${cp}$(find ${TARGETDIR}/lib -name "sshd-common-*.jar" -exec printf :{} ';')
cp=${cp}$(find ${TARGETDIR}/lib -name "sshd-core-*.jar" -exec printf :{} ';')
cp=${cp}$(find ${TARGETDIR}/lib -name "sshd-scp-*.jar" -exec printf :{} ';')
cp=${cp}$(find ${TARGETDIR}/lib -name "sshd-sftp-*.jar" -exec printf :{} ';')
cp=${cp}$(find ${TARGETDIR}/lib -name "slf4j-api-*.jar" -exec printf :{} ';')
cp=${cp}$(find ${TARGETDIR}/lib -name "slf4j-jdk14-*.jar" -exec printf :{} ';')
shift
Expand Down
10 changes: 10 additions & 0 deletions demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@
<artifactId>sshd-core</artifactId>
</dependency>

<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-scp</artifactId>
</dependency>

<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-sftp</artifactId>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down

0 comments on commit f7f9604

Please sign in to comment.