summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-02-27 18:34:24 -0800
committerYing Wang <wangying@google.com>2012-02-27 18:34:24 -0800
commit9f606f95f03a75961498803e24bee6799a7c0885 (patch)
treea45f4d74feda9b76277a0c9ced55ad15d82248a1 /bin
parentcfead78069f3dc32998dc118ee08cab3867acea2 (diff)
downloadproguard-9f606f95f03a75961498803e24bee6799a7c0885.tar.gz
This reverts commit cfead78069f3dc32998dc118ee08cab3867acea2. Bug: 6079915
Diffstat (limited to 'bin')
-rw-r--r--bin/proguard.bat4
-rwxr-xr-xbin/proguard.sh9
-rw-r--r--bin/proguardgui.bat6
-rwxr-xr-xbin/proguardgui.sh12
-rw-r--r--bin/retrace.bat6
-rwxr-xr-xbin/retrace.sh7
6 files changed, 10 insertions, 34 deletions
diff --git a/bin/proguard.bat b/bin/proguard.bat
index 73cb313..9e91ebf 100644
--- a/bin/proguard.bat
+++ b/bin/proguard.bat
@@ -2,10 +2,6 @@
REM Start-up script for ProGuard -- free class file shrinker, optimizer,
REM obfuscator, and preverifier for Java bytecode.
-REM
-REM Note: when passing file names containing spaces to this script,
-REM you'll have to add escaped quotes around them, e.g.
-REM "\"C:/My Directory/My File.txt\""
IF EXIST "%PROGUARD_HOME%" GOTO home
SET PROGUARD_HOME=..
diff --git a/bin/proguard.sh b/bin/proguard.sh
index 5adc047..5d441f9 100755
--- a/bin/proguard.sh
+++ b/bin/proguard.sh
@@ -2,11 +2,8 @@
#
# Start-up script for ProGuard -- free class file shrinker, optimizer,
# obfuscator, and preverifier for Java bytecode.
-#
-# Note: when passing file names containing spaces to this script,
-# you'll have to add escaped quotes around them, e.g.
-# "\"/My Directory/My File.txt\""
-PROGUARD_HOME=`dirname "$0"`/..
+PROGUARD_HOME=`dirname "$0"`
+PROGUARD_HOME=`dirname "$PROGUARD_HOME"`
-java -jar $PROGUARD_HOME/lib/proguard.jar "$@"
+java -jar "$PROGUARD_HOME"/lib/proguard.jar "$@"
diff --git a/bin/proguardgui.bat b/bin/proguardgui.bat
index 4aa9aeb..073d98a 100644
--- a/bin/proguardgui.bat
+++ b/bin/proguardgui.bat
@@ -2,13 +2,9 @@
REM Start-up script for the GUI of ProGuard -- free class file shrinker,
REM optimizer, obfuscator, and preverifier for Java bytecode.
-REM
-REM Note: when passing file names containing spaces to this script,
-REM you'll have to add escaped quotes around them, e.g.
-REM "\"C:/My Directory/My File.txt\""
IF EXIST "%PROGUARD_HOME%" GOTO home
SET PROGUARD_HOME=..
:home
-java -jar "%PROGUARD_HOME%"\lib\proguardgui.jar %*
+java -jar "%PROGUARD_HOME%"\lib\proguardgui.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/bin/proguardgui.sh b/bin/proguardgui.sh
index c734906..5a25d7b 100755
--- a/bin/proguardgui.sh
+++ b/bin/proguardgui.sh
@@ -2,14 +2,8 @@
#
# Start-up script for the GUI of ProGuard -- free class file shrinker,
# optimizer, obfuscator, and preverifier for Java bytecode.
-#
-# Note: when passing file names containing spaces to this script,
-# you'll have to add escaped quotes around them, e.g.
-# "\"/My Directory/My File.txt\""
-PROGUARD_HOME=`dirname "$0"`/..
+PROGUARD_HOME=`dirname "$0"`
+PROGUARD_HOME=`dirname "$PROGUARD_HOME"`
-# On Linux, Java 1.6.0_24 and higher hang when starting the GUI:
-# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598
-# We're using the -D option as a workaround.
-java -DsuppressSwingDropSupport=true -jar $PROGUARD_HOME/lib/proguardgui.jar "$@"
+java -jar $PROGUARD_HOME/lib/proguardgui.jar "$@"
diff --git a/bin/retrace.bat b/bin/retrace.bat
index c13b766..70603d3 100644
--- a/bin/retrace.bat
+++ b/bin/retrace.bat
@@ -2,13 +2,9 @@
REM Start-up script for Retrace -- companion tool for ProGuard, free class file
REM shrinker, optimizer, obfuscator, and preverifier for Java bytecode.
-REM
-REM Note: when passing file names containing spaces to this script,
-REM you'll have to add escaped quotes around them, e.g.
-REM "\"C:/My Directory/My File.txt\""
IF EXIST "%PROGUARD_HOME%" GOTO home
SET PROGUARD_HOME=..
:home
-java -jar "%PROGUARD_HOME%"\lib\retrace.jar %*
+java -jar "%PROGUARD_HOME%"\lib\retrace.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/bin/retrace.sh b/bin/retrace.sh
index 85fd314..5db744e 100755
--- a/bin/retrace.sh
+++ b/bin/retrace.sh
@@ -2,11 +2,8 @@
#
# Start-up script for Retrace -- companion tool for ProGuard, free class file
# shrinker, optimizer, obfuscator, and preverifier for Java bytecode.
-#
-# Note: when passing file names containing spaces to this script,
-# you'll have to add escaped quotes around them, e.g.
-# "\"/My Directory/My File.txt\""
-PROGUARD_HOME=`dirname "$0"`/..
+PROGUARD_HOME=`dirname "$0"`
+PROGUARD_HOME=`dirname "$PROGUARD_HOME"`
java -jar $PROGUARD_HOME/lib/retrace.jar "$@"