diff --git a/bin/templates/cordova/cordova.js b/bin/templates/cordova/cordova.js index 6353b55d..b25ee6b5 100644 --- a/bin/templates/cordova/cordova.js +++ b/bin/templates/cordova/cordova.js @@ -8,7 +8,7 @@ function exec(command) { if(!oExec.StdOut.AtEndOfStream) { var line = oExec.StdOut.ReadLine(); // XXX: Change to verbose mode - //WScript.StdOut.WriteLine(line); + // WScript.StdOut.WriteLine(line); output += line; } WScript.sleep(100); @@ -79,7 +79,7 @@ function debug_install() { } function log() { - WScript.Echo(exec("%comspec% /c adb.bat logcat")); + shell.Run("%comspec% /c adb logcat"); } function launch() { diff --git a/bin/templates/cordova/log.bat b/bin/templates/cordova/log.bat index e69de29b..688d0d02 100644 --- a/bin/templates/cordova/log.bat +++ b/bin/templates/cordova/log.bat @@ -0,0 +1 @@ +%~dp0\cordova.bat log