diff options
author | Raphael <raphael@google.com> | 2010-01-26 16:08:17 -0800 |
---|---|---|
committer | Raphael <raphael@google.com> | 2010-01-26 16:09:58 -0800 |
commit | 047e5f58bb9dc8b67e1b2b61ce897c23fed8a2a4 (patch) | |
tree | 6faf45655e9945e9bc787460e6489ee67265c5f9 /apkbuilder/etc | |
parent | 60e5014c5f2783982e7afade657eaeb9a287577e (diff) | |
download | sdk-047e5f58bb9dc8b67e1b2b61ce897c23fed8a2a4.zip sdk-047e5f58bb9dc8b67e1b2b61ce897c23fed8a2a4.tar.gz sdk-047e5f58bb9dc8b67e1b2b61ce897c23fed8a2a4.tar.bz2 |
Windows SDK: use find_java.bat in all batch wrappers.
SDK Bug: 2315813
Change-Id: If026d09f927b3d0b5707dfd08e1367e4ba2da28b
Diffstat (limited to 'apkbuilder/etc')
-rwxr-xr-x | apkbuilder/etc/apkbuilder.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apkbuilder/etc/apkbuilder.bat b/apkbuilder/etc/apkbuilder.bat index c4689c6..948eec0 100755 --- a/apkbuilder/etc/apkbuilder.bat +++ b/apkbuilder/etc/apkbuilder.bat @@ -24,6 +24,11 @@ rem Change current directory and drive to where the script is, to avoid rem issues with directories containing whitespaces. cd /d %~dp0 +rem Check we have a valid Java.exe in the path. +set java_exe= +call find_java.bat +if not defined java_exe goto :EOF + set jarfile=apkbuilder.jar set frameworkdir= set libdir= @@ -40,4 +45,4 @@ if exist %frameworkdir%%jarfile% goto JarFileOk set jarpath=%frameworkdir%%jarfile% -call java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -jar %jarpath% %* +call %java_exe% -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -jar %jarpath% %* |