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/04/17 01:54:34 UTC
[1/2] wp7 commit: rename project and solution on create
Updated Branches:
refs/heads/master 4551e1e58 -> 0b107ab42
rename project and solution on create
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/1266d3a5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/1266d3a5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/1266d3a5
Branch: refs/heads/master
Commit: 1266d3a54be277d15790515a59e6a845d1819fd5
Parents: 4551e1e
Author: Benn Mapes <be...@gmail.com>
Authored: Tue Apr 16 14:39:24 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Tue Apr 16 16:07:20 2013 -0700
----------------------------------------------------------------------
bin/create.js | 12 ++++++++----
templates/standalone/cordova/lib/build.js | 4 ++--
2 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/1266d3a5/bin/create.js
----------------------------------------------------------------------
diff --git a/bin/create.js b/bin/create.js
index ec19ed8..a789e20 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -38,11 +38,9 @@ var args = WScript.Arguments,
TEMPLATES_PATH = '\\templates',
// sub folder for standalone project
STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
- // sub folder for full project
- FULL_PATH = TEMPLATES_PATH + '\\full',
- CUSTOM_PATH = TEMPLATES_PATH + '\\custom',
// default template to use when creating the project
CREATE_TEMPLATE = STANDALONE_PATH,
+ USE_DLL = false,
PROJECT_PATH,
PACKAGE,
NAME;
@@ -173,9 +171,15 @@ function create(path, namespace, name) {
replaceInFile(path + "\\MainPage.xaml",/\$safeprojectname\$/g,namespace);
replaceInFile(path + "\\MainPage.xaml.cs",/\$safeprojectname\$/g,namespace);
replaceInFile(path + "\\CordovaAppProj.csproj",/\$safeprojectname\$/g,namespace);
+ if (NAME != "CordovaAppProj") {
+ replaceInFile(path + "\\CordovaSolution.sln",/CordovaAppProj/g,NAME);
+ // rename project and solution
+ exec('%comspec% /c ren ' + path + "\\CordovaSolution.sln " + NAME + '.sln');
+ exec('%comspec% /c ren ' + path + "\\CordovaAppProj.csproj " + NAME + '.csproj');
+ }
//copy .dll if necessary
- if (CREATE_TEMPLATE == FULL_PATH || CREATE_TEMPLATE == CUSTOM_PATH) {
+ if (USE_DLL) {
var dllPath = ROOT + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll';
if (fso.FileExists(dllPath)) {
Log("WPCordovaClassLib.dll Found, creating project");
http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/1266d3a5/templates/standalone/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/templates/standalone/cordova/lib/build.js b/templates/standalone/cordova/lib/build.js
index 948fca7..9986a7e 100644
--- a/templates/standalone/cordova/lib/build.js
+++ b/templates/standalone/cordova/lib/build.js
@@ -92,7 +92,7 @@ function build_xap_release(path) {
Log("\tDirectory : " + path);
wscript_shell.CurrentDirectory = path;
- exec_verbose('msbuild CordovaSolution.sln /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Release');
+ exec_verbose('msbuild /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Release');
// check if file xap was created
if (fso.FolderExists(path + '\\Bin\\Release')) {
@@ -116,7 +116,7 @@ function build_xap_debug(path) {
Log("\tDirectory : " + path);
wscript_shell.CurrentDirectory = path;
- exec_verbose('msbuild CordovaSolution.sln /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Debug');
+ exec_verbose('msbuild /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Debug');
// check if file xap was created
if (fso.FolderExists(path + '\\Bin\\Debug')) {
[2/2] wp7 commit: Merge pull request #17 from bennmapes/update
Posted by pu...@apache.org.
Merge pull request #17 from bennmapes/update
rename project and solution on create
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/0b107ab4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/0b107ab4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/0b107ab4
Branch: refs/heads/master
Commit: 0b107ab427ac117c2ae0741fa3e6ad0709d20db3
Parents: 4551e1e 1266d3a
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Apr 16 16:52:53 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Apr 16 16:52:53 2013 -0700
----------------------------------------------------------------------
bin/create.js | 12 ++++++++----
templates/standalone/cordova/lib/build.js | 4 ++--
2 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------