incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject android commit: adding windows createAppInfoJar
Date Tue, 18 Sep 2012 00:14:30 GMT
Updated Branches:
  refs/heads/master f12bbf71e -> d859bb8e6


adding windows createAppInfoJar


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/d859bb8e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/d859bb8e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/d859bb8e

Branch: refs/heads/master
Commit: d859bb8e67fe0f07312b6c3eaf1b1dd655aba253
Parents: f12bbf7
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Mon Sep 17 17:14:25 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Mon Sep 17 17:14:25 2012 -0700

----------------------------------------------------------------------
 bin/create                                         |    8 ++++++++
 bin/create.js                                      |    6 ++++++
 .../cordova/ApplicationInfo/ApplicationInfo.class  |  Bin 2045 -> 0 bytes
 bin/templates/cordova/appinfo.jar                  |  Bin 1587 -> 0 bytes
 4 files changed, 14 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d859bb8e/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index de06cc7..c6609f0 100755
--- a/bin/create
+++ b/bin/create
@@ -58,6 +58,13 @@ function on_exit {
     fi
 }
 
+function createAppInfoJar {
+    (cd "$BUILD_PATH"/bin/templates/cordova/ApplicationInfo &&
+     javac ApplicationInfo.java &&
+     jar -cfe ../appinfo.jar ApplicationInfo ApplicationInfo.class
+    )
+}
+
 function on_error {
     echo "An error occured. Deleting project..."
     [ -d "$PROJECT_PATH" ] && rm -rf "$PROJECT_PATH"
@@ -139,6 +146,7 @@ replace "s/__APILEVEL__/${API_LEVEL}/g" "$MANIFEST_PATH"
 
 # creating cordova folder and copying emulate/debug/log/launch scripts
 mkdir "$PROJECT_PATH"/cordova
+createAppInfoJar
 cp "$BUILD_PATH"/bin/templates/cordova/appinfo.jar "$PROJECT_PATH"/cordova/appinfo.jar
 cp "$BUILD_PATH"/bin/templates/cordova/cordova "$PROJECT_PATH"/cordova/cordova
 cp "$BUILD_PATH"/bin/templates/cordova/debug "$PROJECT_PATH"/cordova/debug

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d859bb8e/bin/create.js
----------------------------------------------------------------------
diff --git a/bin/create.js b/bin/create.js
index 6f89365..e95250a 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -53,6 +53,12 @@ function exec(command) {
     }
 }
 
+function createAppInfoJar() {
+    exec("cd "+ROOT+"bin\\templates\\cordova");
+    exec("javac bin\\templates\\cordova\\ApplicationInfo\\ApplicationInfo.java");
+    exec("jar -cfe ..\\appinfo.jar ApplicationInfo ApplicationInfo.class");
+}
+
 function cleanup() {
     // Cleanup
 //    if(fso.FileExists(ROOT + '\\framework\\libs\\commons-codec-1.6.jar')) {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d859bb8e/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class b/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class
deleted file mode 100644
index 5ad90f5..0000000
Binary files a/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d859bb8e/bin/templates/cordova/appinfo.jar
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/appinfo.jar b/bin/templates/cordova/appinfo.jar
deleted file mode 100644
index 37e00df..0000000
Binary files a/bin/templates/cordova/appinfo.jar and /dev/null differ


Mime
View raw message