You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2015/08/28 08:22:23 UTC
cordova-medic git commit: Fix cordova log windows script integration
Repository: cordova-medic
Updated Branches:
refs/heads/master 5e932c17c -> 389ab64e2
Fix cordova log windows script integration
Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/389ab64e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/389ab64e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/389ab64e
Branch: refs/heads/master
Commit: 389ab64e2d65f73d57f7d4b1db717562b5fba957
Parents: 5e932c1
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Thu Aug 27 23:21:57 2015 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Thu Aug 27 23:21:57 2015 -0700
----------------------------------------------------------------------
medic/medic-run.js | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/389ab64e/medic/medic-run.js
----------------------------------------------------------------------
diff --git a/medic/medic-run.js b/medic/medic-run.js
index b44df73..8eaf66f 100644
--- a/medic/medic-run.js
+++ b/medic/medic-run.js
@@ -239,25 +239,25 @@ function windowsSpecificPreparation(argv) {
" $Ole32::CoAllowSetForegroundWindow([System.Runtime.InteropServices.Marshal]::GetIUnknownForObject($appActivator), [System.IntPtr]::Zero)",
appUtilsPath
);
- }
-
- // start logging
- var logScriptPath = path.join(platformPath, 'cordova', 'log');
- if (fs.existsSync(logScriptPath)) {
- util.medicLog('Running windows log script')
- logProcess = cp.fork(logScriptPath, [], { silent: true });
-
- logProcess.stdout.on('data', function (data) {
- fs.appendFileSync('./out.log', data, { encoding: util.DEFAULT_ENCODING });
- });
- logProcess.stderr.on('data', function (data) {
- util.medicLog('Logging script STDERR: ' + data);
- fs.appendFileSync('./out.log', data, { encoding: util.DEFAULT_ENCODING });
- });
- logProcess.on('close', function () {
- // clear logProcess variable if logging process has exited so we won't try to kill it later
- logProcess = null;
- });
+
+ // start logging
+ var logScriptPath = path.join(platformPath, 'cordova', 'log');
+ if (fs.existsSync(logScriptPath)) {
+ util.medicLog('Running windows log script')
+ logProcess = cp.fork(logScriptPath, [], { silent: true });
+
+ logProcess.stdout.on('data', function (data) {
+ fs.appendFileSync('./out.log', data, { encoding: util.DEFAULT_ENCODING });
+ });
+ logProcess.stderr.on('data', function (data) {
+ util.medicLog('Logging script STDERR: ' + data);
+ fs.appendFileSync('./out.log', data, { encoding: util.DEFAULT_ENCODING });
+ });
+ logProcess.on('close', function () {
+ // clear logProcess variable if logging process has exited so we won't try to kill it later
+ logProcess = null;
+ });
+ }
}
return extraArgs;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org