You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/09/24 05:44:16 UTC

[02/21] js commit: Removed check for "c:" and added check for windows platform

Removed check for "c:" and added check for windows platform


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/bf4c4db8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/bf4c4db8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/bf4c4db8

Branch: refs/heads/cb-7219
Commit: bf4c4db8539bf036e83107d9250c99c266a7a991
Parents: 826be56
Author: Suraj Pindoria <su...@yahoo.com>
Authored: Tue Aug 19 11:23:45 2014 -0700
Committer: Suraj Pindoria <su...@yahoo.com>
Committed: Tue Aug 19 11:23:45 2014 -0700

----------------------------------------------------------------------
 tasks/lib/require-tr.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/bf4c4db8/tasks/lib/require-tr.js
----------------------------------------------------------------------
diff --git a/tasks/lib/require-tr.js b/tasks/lib/require-tr.js
index 12117dd..6c61b1a 100644
--- a/tasks/lib/require-tr.js
+++ b/tasks/lib/require-tr.js
@@ -91,7 +91,7 @@ function _updateRequires(code) {
 
         // Uglify is not able to recognize Windows style paths using '\' instead of '/'
         // So replacing all of the '/' back to Windows '\'
-        if (node.args[0].value != undefined && node.args[0].value.indexOf('c:') != -1) {
+        if (node.args[0].value !== undefined && node.args[0].value.indexOf('/android/app') !== -1 && process.platform === 'win32') {
             node.args[0].value = node.args[0].value.replace(/\//g, '\\');
         }