adding windows createAppInfoJar

This commit is contained in:
Anis Kadri 2012-09-17 17:14:25 -07:00
parent f12bbf71ed
commit d859bb8e67
4 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,13 @@ function on_exit {
fi fi
} }
function createAppInfoJar {
(cd "$BUILD_PATH"/bin/templates/cordova/ApplicationInfo &&
javac ApplicationInfo.java &&
jar -cfe ../appinfo.jar ApplicationInfo ApplicationInfo.class
)
}
function on_error { function on_error {
echo "An error occured. Deleting project..." echo "An error occured. Deleting project..."
[ -d "$PROJECT_PATH" ] && rm -rf "$PROJECT_PATH" [ -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 # creating cordova folder and copying emulate/debug/log/launch scripts
mkdir "$PROJECT_PATH"/cordova mkdir "$PROJECT_PATH"/cordova
createAppInfoJar
cp "$BUILD_PATH"/bin/templates/cordova/appinfo.jar "$PROJECT_PATH"/cordova/appinfo.jar 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/cordova "$PROJECT_PATH"/cordova/cordova
cp "$BUILD_PATH"/bin/templates/cordova/debug "$PROJECT_PATH"/cordova/debug cp "$BUILD_PATH"/bin/templates/cordova/debug "$PROJECT_PATH"/cordova/debug

View File

@ -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() { function cleanup() {
// Cleanup // Cleanup
// if(fso.FileExists(ROOT + '\\framework\\libs\\commons-codec-1.6.jar')) { // if(fso.FileExists(ROOT + '\\framework\\libs\\commons-codec-1.6.jar')) {

Binary file not shown.