aboutsummaryrefslogtreecommitdiffstats
path: root/apkbuilder
diff options
context:
space:
mode:
authorScott Barta <sbarta@google.com>2013-08-15 15:19:09 -0700
committerScott Barta <sbarta@google.com>2013-08-15 15:19:09 -0700
commit7405017e91c15bbc58aa31cbd946091949d44490 (patch)
tree735ca3d90bd4fc7004500c10389efe1cc87b7851 /apkbuilder
parent6da9a761cd06c67a9c30534b4da2b8447aced5d0 (diff)
downloadsdk-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-xapkbuilder/etc/apkbuilder.bat14
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 %*