cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [09/12] git commit: unused target-dir should not blow the thing up.
Date Fri, 17 May 2013 23:47:26 GMT
unused target-dir should not blow the thing up.


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

Branch: refs/heads/master
Commit: b018cfbc69242081738f0df2d370fd01d3e2f797
Parents: d6df914
Author: Fil Maj <maj.fil@gmail.com>
Authored: Fri May 17 16:12:53 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Fri May 17 16:46:01 2013 -0700

----------------------------------------------------------------------
 src/platforms/wp7.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/b018cfbc/src/platforms/wp7.js
----------------------------------------------------------------------
diff --git a/src/platforms/wp7.js b/src/platforms/wp7.js
index 4fe5ddf..4ede3f9 100644
--- a/src/platforms/wp7.js
+++ b/src/platforms/wp7.js
@@ -111,13 +111,13 @@ module.exports = {
     },
     "source-file":{
         install:function(source_el, plugin_dir, project_dir, plugin_id, project_file) {
-            var dest = path.join('Plugins', plugin_id, source_el.attrib['target-dir'], path.basename(source_el.attrib['src']));
+            var dest = path.join('Plugins', plugin_id, source_el.attrib['target-dir'] ? source_el.attrib['target-dir']
: '', path.basename(source_el.attrib['src']));
             common.copyFile(plugin_dir, source_el.attrib['src'], project_dir, dest);
             // add reference to this file to csproj.
             project_file.addSourceFile(dest);
         },
         uninstall:function(source_el, project_dir, plugin_id, project_file) {
-            var dest = path.join('Plugins', plugin_id, source_el.attrib['target-dir'], path.basename(source_el.attrib['src']));
+            var dest = path.join('Plugins', plugin_id, source_el.attrib['target-dir'] ? source_el.attrib['target-dir']
: '', path.basename(source_el.attrib['src']));
             common.removeFile(project_dir, dest);
             // remove reference to this file from csproj.
             project_file.removeSourceFile(dest);


Mime
View raw message