From 3b395945188af6e91a4c7b788c80635a68e967a9 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Wed, 18 Jan 2012 21:04:17 +0400 Subject: [PATCH] fix CP on test script --- miniupnpc/java/testjava.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/miniupnpc/java/testjava.sh b/miniupnpc/java/testjava.sh index c997baf..9880523 100755 --- a/miniupnpc/java/testjava.sh +++ b/miniupnpc/java/testjava.sh @@ -1,8 +1,8 @@ -#! /bin/sh +#!/bin/bash JAVA=java JAVAC=javac +CP=$(for i in *.jar; do echo -n $i:; done). -$JAVAC -cp miniupnpc_Linux.jar JavaBridgeTest.java -$JAVA -cp miniupnpc_Linux.jar:. JavaBridgeTest 12345 UDP - +$JAVAC -cp $CP JavaBridgeTest.java || exit 1 +$JAVA -cp $CP JavaBridgeTest 12345 UDP || exit 1