Skip to content

Commit d1c54c9

Browse files
author
Hubert Plociniczak
committed
jars are expected to be in the
directory where the scripts are, not from where they are executed
1 parent c3caeb2 commit d1c54c9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

scripts/runjava.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
setlocal EnableDelayedExpansion
44

5-
set SCRIPT_DIR="%~dp0%"
65
set CP=
7-
for %%F in (*.jar !SCRIPT_DIR!/../build/lib/*.jar !SCRIPT_DIR!/../lib/*.jar) ^
8-
DO set CP=!CP!;%%F
6+
for %%F in ("%~dp0"/*.jar) do set CP=!CP!;%%F
97

108
java -cp %CP% %1 %2 %3 %4 %5 %6 %7 %8 %9
119

scripts/runjava.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
RABBIT_JARS=
3-
SCRIPT_DIR=`dirname $0`
4-
for d in *.jar $SCRIPT_DIR/../build/lib/*.jar $SCIRPT_DIR/../lib/*.jar
3+
for d in `dirname $0`/*.jar
54
do
65
RABBIT_JARS="$d:$RABBIT_JARS"
76
done

0 commit comments

Comments
 (0)