cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] git commit: Fixed solution/project renaming issue
Date Wed, 19 Jun 2013 23:30:15 GMT
Fixed solution/project renaming issue


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

Branch: refs/heads/master
Commit: 7d3b04a297c173386f7f4e69042496a3f1c77dba
Parents: 1d6a69c
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Jun 19 16:28:25 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Jun 19 16:28:25 2013 -0700

----------------------------------------------------------------------
 wp7/bin/create.js | 2 +-
 wp8/bin/create.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/7d3b04a2/wp7/bin/create.js
----------------------------------------------------------------------
diff --git a/wp7/bin/create.js b/wp7/bin/create.js
index db22352..7b98f7c 100644
--- a/wp7/bin/create.js
+++ b/wp7/bin/create.js
@@ -162,7 +162,7 @@ function create(path, namespace, name) {
 
     if (name != "CordovaWP7AppProj") {
         var valid_name = name.replace(/(\.\s|\s\.|\s+|\.+)/g, '_');
-        replaceInFile(path + "\\CordovaSolution.sln", /CordovaAppProj/g, valid_name);
+        replaceInFile(path + "\\CordovaWP7Solution.sln", /CordovaWP7AppProj/g, valid_name);
         // rename project and solution
         exec('%comspec% /c ren ' + path + "\\CordovaWP7Solution.sln " + valid_name + '.sln');
         exec('%comspec% /c ren ' + path + "\\CordovaWP7AppProj.csproj " + valid_name + '.csproj');

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/7d3b04a2/wp8/bin/create.js
----------------------------------------------------------------------
diff --git a/wp8/bin/create.js b/wp8/bin/create.js
index c505c68..38ef289 100644
--- a/wp8/bin/create.js
+++ b/wp8/bin/create.js
@@ -162,7 +162,7 @@ function create(path, namespace, name) {
 
     if (name != "CordovaWP8AppProj") {
         var valid_name = name.replace(/(\.\s|\s\.|\s+|\.+)/g, '_');
-        replaceInFile(path + "\\CordovaSolution.sln", /CordovaAppProj/g, valid_name);
+        replaceInFile(path + "\\CordovaWP8Solution.sln", /CordovaWP8AppProj/g, valid_name);
         // rename project and solution
         exec('%comspec% /c ren ' + path + "\\CordovaWP8Solution.sln " + valid_name + '.sln');
         exec('%comspec% /c ren ' + path + "\\CordovaWP8AppProj.csproj " + valid_name + '.csproj');


Mime
View raw message