incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/3] wp7 commit: updated readme, added resource files to BuildStep
Date Tue, 10 Apr 2012 00:41:14 GMT
updated readme, added resource files to BuildStep


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/15df9d3c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/15df9d3c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/15df9d3c

Branch: refs/heads/master
Commit: 15df9d3cb86c4cd3b0927c68bd580bb0415f999b
Parents: ca5117e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon Apr 9 16:16:28 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Mon Apr 9 16:16:28 2012 -0700

----------------------------------------------------------------------
 README.md                                |   10 ++--
 templates/full/BuildManifestProcessor.js |   57 ++++++++++++-------------
 2 files changed, 32 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/15df9d3c/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 8e39be8..d5a8e73 100644
--- a/README.md
+++ b/README.md
@@ -13,17 +13,18 @@ Requires
 Getting Started
 ---
 
-- copy the file Cordova-1.5.0-Starter.zip to the folder : \My Documents\Visual Studio 2010\Templates\ProjectTemplates\
+- copy the file CordovaStarter-1.6.0.zip to the folder : \My Documents\Visual Studio 2010\Templates\ProjectTemplates\
 -- if you have just installed VisualStudio, you should launch it once to create this folder
--- if you prefer, you may add the project instead to the "Silverlight for Windows Phone"
subfolder of "Visual C#".  This is up to you, and only affects where the project template
is shown when creating a new project. You may need to create this folder.
+-- if you prefer, you may add the project instead to the "Silverlight for Windows Phone"
subfolder of "Visual C#".  This is up to you, and only affects where the project template
is shown when creating a new project. Also, You may need to create this folder.
 - Launch Visual Studio 2010 and select to create a new project
--- Cordova-1.5.0-Starter should be listed as an option, give your new project a name
+-- CordovaStarter should be listed as an option, give your new project a name
+--- Note: The description will let you know the version of Cordova you are targetting, if
you have multiple templates.
 -- If you do not see it, you may have to select the top level 'Visual C#' to see it
 - Build and Run it!
 
 
 
-Note!!!
+Important!!!
 ---
 
 When you add or remove files/folders in the www folder you will need to do the following
@@ -38,7 +39,6 @@ BUGS?
 -----
 File them at Apache Incubator 
 https://issues.apache.org/jira/browse/CB
-<br />
 
 
 Further Reading

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/15df9d3c/templates/full/BuildManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/full/BuildManifestProcessor.js b/templates/full/BuildManifestProcessor.js
index d794e70..1ccb16c 100644
--- a/templates/full/BuildManifestProcessor.js
+++ b/templates/full/BuildManifestProcessor.js
@@ -1,13 +1,11 @@
 
 var objArgs = WScript.Arguments;
-for (i = 0; i < objArgs.length; i++)
-{
-   WScript.Echo("Arg :: " + objArgs(i));
+for (i = 0; i < objArgs.length; i++) {
+    WScript.Echo("Arg :: " + objArgs(i));
 }
 
 var projectFilePath = null;
-if(objArgs && objArgs.length > 0)
-{
+if (objArgs && objArgs.length > 0) {
     projectFilePath = objArgs(0);
 }
 
@@ -22,40 +20,39 @@ outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>');
 outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->');
 outFile.WriteLine('<CordovaSourceDictionary>');
 
-function enumerateFolder(folder,parentPath)
-{
-	var files = new Enumerator(folder.files);
-	while(!files.atEnd())
-	{
-		WScript.Echo(parentPath + "\\" + fso.GetFileName(files.item()));
-		outFile.WriteLine('    <FilePath Value="' + parentPath + "\\" + fso.GetFileName(files.item())
+ '"/>');
-		files.moveNext();
-	}
+function enumerateFolder(folder, parentPath) {
+    var files = new Enumerator(folder.files);
+    while (!files.atEnd()) {
+        WScript.Echo(parentPath + "\\" + fso.GetFileName(files.item()));
+        outFile.WriteLine('    <FilePath Value="' + parentPath + "\\" + fso.GetFileName(files.item())
+ '"/>');
+        files.moveNext();
+    }
 
-	var subFolders = new Enumerator(folder.SubFolders);
-	while(!subFolders.atEnd())
-	{
-		var item = subFolders.item();
-		enumerateFolder(item, parentPath + "\\" + fso.GetFileName(item));
-		subFolders.moveNext();
-	}
+    var subFolders = new Enumerator(folder.SubFolders);
+    while (!subFolders.atEnd()) {
+        var item = subFolders.item();
+        enumerateFolder(item, parentPath + "\\" + fso.GetFileName(item));
+        subFolders.moveNext();
+    }
 }
-enumerateFolder(folder,"www");
+enumerateFolder(folder, "www");
 
 // Next we need to get any Linked files from the project
 
 WScript.Echo("Adding Linked Files ...");
-if(projectFilePath != null)
-{
-    var projXml =  WScript.CreateObject("Microsoft.XMLDOM");
-    
+if (projectFilePath != null) {
+    var projXml = WScript.CreateObject("Microsoft.XMLDOM");
+
     projXml.async = false;
-    if(projXml.load(projectFilePath))
-    {
+    if (projXml.load(projectFilePath)) {
         var nodes = projXml.selectNodes("Project/ItemGroup/Content/Link");
         WScript.Echo("nodes.length" + nodes.length);
-        for(var n = 0; n < nodes.length; n++)
-        {
+        for (var n = 0; n < nodes.length; n++) {
+            outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
+        }
+        nodes = projXml.selectNodes("Project/ItemGroup/Resource/Link");
+        WScript.Echo("nodes.length" + nodes.length);
+        for (var n = 0; n < nodes.length; n++) {
             outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
         }
     }


Mime
View raw message