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 2013/07/30 01:36:30 UTC
[10/12] git commit: plugins are added to www/plugins/ folder
plugins are added to www/plugins/ folder
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/f13edb19
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/f13edb19
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/f13edb19
Branch: refs/heads/master
Commit: f13edb19920dca7ae4622221a358d68e592533da
Parents: 4db9a96
Author: purplecabbage <pu...@gmail.com>
Authored: Mon Jul 29 14:20:39 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Mon Jul 29 16:34:08 2013 -0700
----------------------------------------------------------------------
src/platforms/windows8.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/f13edb19/src/platforms/windows8.js
----------------------------------------------------------------------
diff --git a/src/platforms/windows8.js b/src/platforms/windows8.js
index beb5e40..35779fd 100644
--- a/src/platforms/windows8.js
+++ b/src/platforms/windows8.js
@@ -35,10 +35,8 @@ module.exports = {
return manifest.find("Properties/DisplayName").text;
},
parseProjectFile:function(project_dir) {
- var project_files = glob.sync('*.jsproj', {
- cwd:project_dir
- });
- if (project_files.length === 0) {
+ var project_files = glob.sync('*.jsproj', { cwd:project_dir });
+ if (project_files.length == 0) {
throw new Error(this.InvalidProjectPathError);
}
return new w8jsproj(path.join(project_dir, project_files[0]));
@@ -46,13 +44,15 @@ module.exports = {
"source-file":{
install:function(source_el, plugin_dir, project_dir, plugin_id, project_file) {
var targetDir = source_el.attrib['target-dir'] || '';
- var dest = path.join('Plugins', plugin_id, targetDir, path.basename(source_el.attrib['src']));
+ var dest = path.join('www', 'plugins', plugin_id, targetDir, path.basename(source_el.attrib['src']));
common.copyFile(plugin_dir, source_el.attrib['src'], project_dir, dest);
// add reference to this file to jsproj.
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'] ? source_el.attrib['target-dir'] : '', path.basename(source_el.attrib['src']));
+ var dest = path.join('www', '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);