incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [5/18] android commit: adding tools verification to batch file
Date Tue, 12 Jun 2012 23:11:23 GMT
adding tools verification to batch file


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/24025419
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/24025419
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/24025419

Branch: refs/heads/master
Commit: 2402541974576f48ec9d1bd1eb3d5b0550b664ba
Parents: 8b1fb30
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Fri Jun 8 17:43:10 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Fri Jun 8 17:43:10 2012 -0700

----------------------------------------------------------------------
 bin/create.bat |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/24025419/bin/create.bat
----------------------------------------------------------------------
diff --git a/bin/create.bat b/bin/create.bat
index 12068a2..5cc227e 100644
--- a/bin/create.bat
+++ b/bin/create.bat
@@ -1 +1,15 @@
+@ECHO OFF
+IF NOT DEFINED JAVA_HOME GOTO MISSING
+FOR %%X in (java.exe ant.bat android.bat) do (
+    SET FOUND=%%~$PATH:X
+    IF NOT DEFINED FOUND GOTO MISSING
+)
 cscript %~dp0\create.js %*
+GOTO END
+:MISSING
+ECHO Missing one of the following:
+ECHO JDK: http://java.oracle.com
+ECHO Android SDK: http://developer.android.com
+ECHO Apache ant: http://ant.apache.org
+EXIT /B 1
+:END


Mime
View raw message