cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/7] js commit: Removed check for "c:" and added check for windows platform
Date Tue, 26 Aug 2014 18:07:45 GMT
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/master
Commit: bf4c4db8539bf036e83107d9250c99c266a7a991
Parents: 826be56
Author: Suraj Pindoria <suraj.pindoria@yahoo.com>
Authored: Tue Aug 19 11:23:45 2014 -0700
Committer: Suraj Pindoria <suraj.pindoria@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, '\\');
         }
 


Mime
View raw message