From 66ebe9d3cf72e89ed308d8100dda8dbb83da7628 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 10 Oct 2013 13:58:32 +0000 Subject: Change scripts to work from current dir git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@478 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh | 2 +- pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh | 2 +- pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat | 6 ++---- pdf-over-gui/src/main/resources/scripts/uninstall_win.bat | 6 +++--- 4 files changed, 7 insertions(+), 9 deletions(-) (limited to 'pdf-over-gui') diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh b/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh index b9395340..8ee31f2a 100644 --- a/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh +++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_linux.sh @@ -1,3 +1,3 @@ #!/bin/sh BASEDIR=`dirname $0` -(cd "$BASEDIR/.." && exec java -cp "lib/*" at.asit.pdfover.gui.Main "$@") +exec java -cp "$BASEDIR/../lib/*" at.asit.pdfover.gui.Main "$@" diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh b/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh index 8ae4abb1..dcb805ae 100644 --- a/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh +++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh @@ -1,4 +1,4 @@ #!/bin/sh BASEDIR=$(cd "$(dirname "$0")"; pwd) export LC_CTYPE="UTF-8" -(cd "$BASEDIR/.." && exec java -XstartOnFirstThread -cp "lib/*" at.asit.pdfover.gui.Main "$@" &) +exec java -XstartOnFirstThread -cp "$BASEDIR/../lib/*" at.asit.pdfover.gui.Main "$@" & diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat index 5334d110..6468e582 100644 --- a/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat +++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_win.bat @@ -1,4 +1,2 @@ -@echo off -pushd %~dp0\.. -start /b javaw -jar lib\pdf-over-gui-4.0.1.jar %* -popd +@echo off +start /b javaw -cp "%~dp0\..\lib\*" at.asit.pdfover.gui.Main %* diff --git a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat index 4c01a10b..6377dd51 100644 --- a/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat +++ b/pdf-over-gui/src/main/resources/scripts/uninstall_win.bat @@ -1,4 +1,4 @@ -@echo off -pushd %~dp0\.. -start /b Uninstaller\uninstaller.jar +@echo off +pushd %~dp0\.. +start /b Uninstaller\uninstaller.jar popd \ No newline at end of file -- cgit v1.2.3