updating glob since it sucked on windows.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/208ef8c5 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/208ef8c5 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/208ef8c5 Branch: refs/heads/master Commit: 208ef8c5d7f23856bf86a944e9997a09df9e1caa Parents: afb532a Author: Fil Maj <[email protected]> Authored: Fri May 17 16:07:07 2013 -0700 Committer: Fil Maj <[email protected]> Committed: Fri May 17 16:46:01 2013 -0700 ---------------------------------------------------------------------- package.json | 2 +- src/platforms/wp7.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/208ef8c5/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index 5a9e9b9..385e3e4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "nopt": "1.0.x", - "glob": "3.0.x", + "glob": "3.2.x", "elementtree": "0.1.x", "xcode": "0.6.x", "plist": "0.4.x", http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/208ef8c5/src/platforms/wp7.js ---------------------------------------------------------------------- diff --git a/src/platforms/wp7.js b/src/platforms/wp7.js index 617297a..ac2a5c7 100644 --- a/src/platforms/wp7.js +++ b/src/platforms/wp7.js @@ -101,7 +101,9 @@ module.exports = { return xml_helpers.parseElementtreeSync(path.join(project_dir, 'Properties', 'WMAppManifest.xml')).find('App').attrib.ProductID; }, parseWP7ProjectFile:function(project_dir) { - var project_files = glob.sync(project_dir.split('\\').join('/') + '/*.csproj'); + var project_files = glob.sync('*.csproj', { + cwd:project_dir + }); if (project_files.length === 0) { throw new Error('does not appear to be a Windows Phone project (no .csproj file)'); }
