diff options
author | Raphael Moll <ralf@android.com> | 2010-10-25 14:27:23 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2010-10-26 11:15:12 -0700 |
commit | 35fb4c64c629d531ab7ada395131ae3e7cc26e8b (patch) | |
tree | fe5b6221121f1d9bb34817f943d7753cc5e48e93 /files/proguard/bin/retrace.bat | |
parent | eca9ade6294f925e266eeece8071d5bfdede9c6a (diff) | |
download | sdk-35fb4c64c629d531ab7ada395131ae3e7cc26e8b.zip sdk-35fb4c64c629d531ab7ada395131ae3e7cc26e8b.tar.gz sdk-35fb4c64c629d531ab7ada395131ae3e7cc26e8b.tar.bz2 |
SDK: Fixed proguard.bat & co.
These are similar to the external/proguard/bin/*.bat
except they use $SDK/tools/lib/find_java.bat to locate the
java location and use it if available. find_java will print
a proeminent error if java cannot be found.
Change-Id: I1fceae838436053031f405de9b3f1ab2d64222e6
Diffstat (limited to 'files/proguard/bin/retrace.bat')
-rwxr-xr-x | files/proguard/bin/retrace.bat | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/files/proguard/bin/retrace.bat b/files/proguard/bin/retrace.bat new file mode 100755 index 0000000..94ec615 --- /dev/null +++ b/files/proguard/bin/retrace.bat @@ -0,0 +1,17 @@ +@ECHO OFF + +REM Start-up script for Retrace -- companion tool for ProGuard, free class file +REM shrinker, optimizer, obfuscator, and preverifier for Java bytecode. + +rem Change current directory and drive to where the script is, to avoid +rem issues with directories containing whitespaces. +cd /d %~dp0 + +IF EXIST "%PROGUARD_HOME%" GOTO home +SET PROGUARD_HOME=.. +:home + +set java_exe= +call %PROGUARD_HOME%\..\lib\find_java.bat + +call %java_exe% -jar "%PROGUARD_HOME%"\lib\retrace.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 |