From d859bb8e67fe0f07312b6c3eaf1b1dd655aba253 Mon Sep 17 00:00:00 2001 From: Anis Kadri Date: Mon, 17 Sep 2012 17:14:25 -0700 Subject: [PATCH] adding windows createAppInfoJar --- bin/create | 8 ++++++++ bin/create.js | 6 ++++++ .../ApplicationInfo/ApplicationInfo.class | Bin 2045 -> 0 bytes bin/templates/cordova/appinfo.jar | Bin 1587 -> 0 bytes 4 files changed, 14 insertions(+) delete mode 100644 bin/templates/cordova/ApplicationInfo/ApplicationInfo.class delete mode 100644 bin/templates/cordova/appinfo.jar 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 5ad90f5ce8c8ac798634fe1588fd2919528fd5aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2045 zcma)7>sK2^6#q?LyKJ_GhIeU;RD&TvR%v|{u*$QdA)vupY}F3Q5SAvp+s!TyAODJ9 z`CLDwpvN9R`!{*iJDWfg%sFy$a%bl5ef;j7d++@D_pdJjOyegF3Ea`}F5Z*meGMPr zZX7e1RWTPw93QH)X2n_^6)^#S8{!*;SFpl_?jU$XIiFrk0G2Mf4~q~v`c~^ zkuxok_p95&-Q?R9;`BP)t%-T7D(UQ=SGEFWuxG^rd6JmcCHjW zUVOU7oj_f|BL$BMDS;$>e90Wr5xR8Z0(u*0A@gn^fZjxu%`R9^JVebYPAVPa3gQympl8G3BD zY#iJ!8YR1GELTKTSQMGg8?nwbHP7(pi8nz11>>Mq*Wj#>8IAiU+nqHtuKIu4Lx7?jYYPK_TL zh53i)-wAc#-?WX@^%m~HD^!i!Sn$nCNw^ffPtLL>lYkv!SH}^)XBaTDS>wW`X33w9 zAMm4&v_zh`kp8yN8%`L~(rDe8Dh7>M}M+dGvolGDL&hVaRkU>|AT5oWUT&y`A_3wk*6esq?xTAh50C%@1Tn zC-HfYdT87CC^KUn5nQ}q>7DeNR%#1Jo4lN-ioHw(dFu6?S@SMNaK@)TH9bKc(wAOs z2Q4K?tEC4DN3}pSZ2NL7G}@Y~bAv{LM^z$tl@t_LI2A7MeW^9N#a-?e#4}$|NzArP zgf@PoPTD37wd0QMRyldR+iI^lh+2nBqeo{u8aZ#J7O--9Naz(BQ;A>~OteimKp&@+ zZ@9K2T#qU`#vMmkC5EXEApYyI*$|Wt)w9nUsJB_eZSi50=5&JI4j>FBCmzu;I^Cd^ zW(}g57hun6!|)c-SitOpCOen*B+6n?X(j>w2|~GvI>Py>OdXN6$x}obW+Fq8Wb715 z2s6>iqLihvmq~7=v`vq5$uSI`HVk zBs)UdLwJH~DAB%5&(|)l)8rl@D>vZaCOpbhhO7)D@(&4z6ig_X1XD0|UqP1sMud#N zjdvP3A!8x>0pppMKSRrer*p>`{td%hFK|71;{-SB7)icPq>j0dh}%rURAR{{lo&3l;zX diff --git a/bin/templates/cordova/appinfo.jar b/bin/templates/cordova/appinfo.jar deleted file mode 100644 index 37e00dfc428e59282c6c0e30f76b15b30a8a499f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1587 zcmWIWW@Zs#-~d9UyM=y+8qJQkMp=CV7Q?j$0j zvsfe1)sa6;wPxJ{{}=iqJRGq>1|8N$*F?BJE{(96@^R{gevv(`rJV7`N78sMe|Tru zaygk_QmHts)mVkA?PPad?PTlhUunHMcelOUVUr&wb9#l&>t!2{#`Z5%kG*lRymald z*`aHnShhu;?X(E@nip5MYt8M(-7Uw3<_QEVdH&&8woY2jIsaE-b@|eipMEp-r5H=@ zZOe9x{LXVa#%TMRH3fl%+?rgg9!b}%eq^2Fq3~Gkl#rH|#Wo3**%mKC*DdPGWsB6W zKDO?m>-vi6+wJ>_$C_D;XqRda<5LL)Y;jMEH1 zy)35f-1Q^jX5|$#V;vg(+qM*)x>de!&gOlAs|(sUedpAP zHte`zw=GoWLABMo)XlecPM@V}BWnM^T{QEcP2svf=|TBT221ppndeWf4Ll{x)*VuN z+A^VIc1`}t65G2vmru|2=oi&{Jv-TB(&wGNZC6s0CVW2eUoNSG&6;OsS#PYxT}|C^ zt~+=|?p@7~>2}Mfo%lO_Z|=K|x~EsZZmHPryKQ;9_vgNC{Fkn_t(hU06uQ`Z z>W0~6v(&Qv4%qpr#+T~Mww5a`@!6i67bc;m|MgUy`I0x0Yq_t?&2#2eHd!t#u-{|@ONph@$}nzMo{@UZO!?^ z7Ay=5f7wAr4(1 dm3#>B2*|`*4hDF$vVoK_1K|N69m@*h0RTIVddvU-