diff --git a/bin/create b/bin/create index de06cc72..c6609f0c 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 diff --git a/bin/create.js b/bin/create.js index 6f893657..e95250a7 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')) { diff --git a/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class b/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class deleted file mode 100644 index 5ad90f5c..00000000 Binary files a/bin/templates/cordova/ApplicationInfo/ApplicationInfo.class and /dev/null differ diff --git a/bin/templates/cordova/appinfo.jar b/bin/templates/cordova/appinfo.jar deleted file mode 100644 index 37e00dfc..00000000 Binary files a/bin/templates/cordova/appinfo.jar and /dev/null differ