cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] git commit: CB-6041 createTemplates should install them for VS-2013 as well
Date Fri, 14 Feb 2014 19:18:11 GMT
Updated Branches:
  refs/heads/3.4.x 96f4d5e7c -> c8f7aee9e
Updated Tags:  refs/tags/3.4.0 [created] c8f7aee9e


CB-6041 createTemplates should install them for VS-2013 as well


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

Branch: refs/heads/3.4.x
Commit: 21660e5c3ba8253468f8524f48a1909b18750589
Parents: 96f4d5e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Feb 14 11:16:33 2014 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Feb 14 11:16:33 2014 -0800

----------------------------------------------------------------------
 wp7/tooling/scripts/createTemplates.js |  9 ++++++++-
 wp8/tooling/scripts/createTemplates.js | 10 +++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/21660e5c/wp7/tooling/scripts/createTemplates.js
----------------------------------------------------------------------
diff --git a/wp7/tooling/scripts/createTemplates.js b/wp7/tooling/scripts/createTemplates.js
index 7c7e8d1..816603c 100644
--- a/wp7/tooling/scripts/createTemplates.js
+++ b/wp7/tooling/scripts/createTemplates.js
@@ -268,7 +268,14 @@ function package_templates()
         {
             Log("WARNING: Could not find template directory in Visual Studio,\n you can manually
copy over the template .zip files.");
         }
-  }
+        // add to VS-2013 as well
+        template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual
Studio 2013\\Templates\\ProjectTemplates';
+        if(fso.FolderExists(template_dir ))
+        {
+            dest = shell.NameSpace(template_dir);
+            dest.CopyHere(templateOutFilename, 4|20);
+        }
+    }
 }
 
 function zip_project(zip_path, project_path) {

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/21660e5c/wp8/tooling/scripts/createTemplates.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/createTemplates.js b/wp8/tooling/scripts/createTemplates.js
index 650b375..608628f 100644
--- a/wp8/tooling/scripts/createTemplates.js
+++ b/wp8/tooling/scripts/createTemplates.js
@@ -275,6 +275,7 @@ function package_templates()
 
     zip_project(templateOutFilename, platformRoot + templatePath);
 
+
     if(addToVS)
     {
         var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual
Studio 2012\\Templates\\ProjectTemplates';
@@ -287,7 +288,14 @@ function package_templates()
         {
             Log("WARNING: Could not find template directory in Visual Studio,\n you can manually
copy over the template .zip files.");
         }
-  }
+        // add to VS-2013 as well
+        template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual
Studio 2013\\Templates\\ProjectTemplates';
+        if(fso.FolderExists(template_dir ))
+        {
+            dest = shell.NameSpace(template_dir);
+            dest.CopyHere(templateOutFilename, 4|20);
+        }
+    }
 }
 
 function zip_project(zip_path, project_path) {


Mime
View raw message