diff options
author | Scott Barta <sbarta@google.com> | 2013-08-15 15:19:09 -0700 |
---|---|---|
committer | Scott Barta <sbarta@google.com> | 2013-08-15 15:19:09 -0700 |
commit | 7405017e91c15bbc58aa31cbd946091949d44490 (patch) | |
tree | 735ca3d90bd4fc7004500c10389efe1cc87b7851 /apkbuilder | |
parent | 6da9a761cd06c67a9c30534b4da2b8447aced5d0 (diff) | |
download | sdk-7405017e91c15bbc58aa31cbd946091949d44490.zip sdk-7405017e91c15bbc58aa31cbd946091949d44490.tar.gz sdk-7405017e91c15bbc58aa31cbd946091949d44490.tar.bz2 |
Support for installing SDK in C:\Program Files
Properly handles spaces in installation pathname on Windows.
Change-Id: I8bcfd18fddbe6d5ad70a8563e8696af2876c1d1b
Diffstat (limited to 'apkbuilder')
-rwxr-xr-x | apkbuilder/etc/apkbuilder.bat | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apkbuilder/etc/apkbuilder.bat b/apkbuilder/etc/apkbuilder.bat index c82f01d..3375b85 100755 --- a/apkbuilder/etc/apkbuilder.bat +++ b/apkbuilder/etc/apkbuilder.bat @@ -30,16 +30,16 @@ call lib\find_java.bat if not defined java_exe goto :EOF set jarfile=sdklib.jar -set frameworkdir= +set frameworkdir=. -if exist %frameworkdir%%jarfile% goto JarFileOk - set frameworkdir=lib\ +if exist %frameworkdir%\%jarfile% goto JarFileOk + set frameworkdir=lib -if exist %frameworkdir%%jarfile% goto JarFileOk - set frameworkdir=..\framework\ +if exist %frameworkdir%\%jarfile% goto JarFileOk + set frameworkdir=..\framework :JarFileOk -set jarpath=%frameworkdir%%jarfile% +set jarpath=%frameworkdir%\%jarfile% -call %java_exe% -classpath %jarpath% com.android.sdklib.build.ApkBuilderMain %* +call "%java_exe%" -classpath "%jarpath%" com.android.sdklib.build.ApkBuilderMain %* |