mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Fixing up the commons-codec issue - CB-1483
This commit is contained in:
parent
9ba5bae34d
commit
47daaaf14f
@ -94,12 +94,12 @@ function downloadCommonsCodec() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var app = WScript.CreateObject('Shell.Application');
|
var app = WScript.CreateObject('Shell.Application');
|
||||||
var ource = app.NameSpace(savePath).Items();
|
var source = app.NameSpace(savePath).Items();
|
||||||
var target = app.NameSpace(ROOT + '\\framework\\libs');
|
var target = app.NameSpace(ROOT + '\\framework\\libs');
|
||||||
target.CopyHere(source, 256);
|
target.CopyHere(source, 256);
|
||||||
|
|
||||||
// Move the jar into libs
|
// Move the jar into libs
|
||||||
fso.MoveFile(ROOT + '\\framework\\libs\\commons-codec-1.6\\commons-codec-1.7.jar', ROOT + '\\framework\\libs\\commons-codec-1.7.jar');
|
fso.MoveFile(ROOT + '\\framework\\libs\\commons-codec-1.7\\commons-codec-1.7.jar', ROOT + '\\framework\\libs\\commons-codec-1.7.jar');
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
fso.DeleteFile(ROOT + '\\framework\\libs\\commons-codec-1.7-bin.zip');
|
fso.DeleteFile(ROOT + '\\framework\\libs\\commons-codec-1.7-bin.zip');
|
||||||
@ -113,6 +113,7 @@ var args = WScript.Arguments, PROJECT_PATH="example",
|
|||||||
|
|
||||||
// working dir
|
// working dir
|
||||||
var ROOT = WScript.ScriptFullName.split('\\bin\\create.js').join('');
|
var ROOT = WScript.ScriptFullName.split('\\bin\\create.js').join('');
|
||||||
|
WScript.echo("Root Directory:" + ROOT);
|
||||||
|
|
||||||
if (args.Count() == 3) {
|
if (args.Count() == 3) {
|
||||||
PROJECT_PATH=args(0);
|
PROJECT_PATH=args(0);
|
||||||
@ -140,7 +141,7 @@ if (!fso.FileExists(ROOT+'\\cordova-'+VERSION+'.jar') &&
|
|||||||
exec('android.bat update project --target '+TARGET+' --path '+ROOT+'\\framework');
|
exec('android.bat update project --target '+TARGET+' --path '+ROOT+'\\framework');
|
||||||
// pull down commons codec if necessary
|
// pull down commons codec if necessary
|
||||||
downloadCommonsCodec();
|
downloadCommonsCodec();
|
||||||
exec('ant.bat -f '+ ROOT +'\\framework\\build.xml jar');
|
exec('ant.bat -f \"'+ ROOT +'\\framework\\build.xml\" jar');
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy in the project template
|
// copy in the project template
|
||||||
|
Loading…
Reference in New Issue
Block a user