You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/06/05 21:20:15 UTC
git commit: Escapes paths in target() function
Repository: cordova-wp8
Updated Branches:
refs/heads/master f752917d1 -> 1bd7f196d
Escapes paths in target() function
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/1bd7f196
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/1bd7f196
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/1bd7f196
Branch: refs/heads/master
Commit: 1bd7f196dcf22904a47905c93c522e2696c6b5eb
Parents: f752917
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Thu Jun 5 10:17:12 2014 +0400
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Thu Jun 5 10:17:12 2014 +0400
----------------------------------------------------------------------
wp8/template/cordova/lib/deploy.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/1bd7f196/wp8/template/cordova/lib/deploy.js
----------------------------------------------------------------------
diff --git a/wp8/template/cordova/lib/deploy.js b/wp8/template/cordova/lib/deploy.js
index 5056a9e..d18db43 100644
--- a/wp8/template/cordova/lib/deploy.js
+++ b/wp8/template/cordova/lib/deploy.js
@@ -230,8 +230,7 @@ function target(path) {
if (!fso.FileExists(path + CORDOVA_DEPLOY_EXE)) {
cordovaDeploy(path);
}
- wscript_shell.CurrentDirectory = path + CORDOVA_DEPLOY + '\\CordovaDeploy\\bin\\Debug';
- var cmd = 'CordovaDeploy -devices';
+ var cmd = '"' + path + CORDOVA_DEPLOY_EXE + '" -devices';
var out = wscript_shell.Exec(cmd);
while(out.Status == 0) {
WScript.Sleep(100);
@@ -251,7 +250,7 @@ function target(path) {
if (targets[target].match(check_id)) {
//TODO: this only gets single digit index, account for device index of 10+?
var index = targets[target].substr(0,1);
- exec_verbose(path + CORDOVA_DEPLOY_EXE + ' ' + path + ' -d:' + index);
+ exec_verbose('"' + path + CORDOVA_DEPLOY_EXE + '" "' + path + '" -d:' + index);
return;
}
}