incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [31/50] [abbrv] wp7 commit: removed bunk
Date Thu, 23 Feb 2012 22:29:31 GMT
removed bunk


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/9e067e6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/9e067e6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/9e067e6f

Branch: refs/heads/master
Commit: 9e067e6f7f839f20ee101409f38101e34adbba2f
Parents: 6a7c52f
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Feb 14 15:01:08 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Feb 14 15:01:08 2012 -0800

----------------------------------------------------------------------
 templates/custom/ManifestProcessor.js |   65 ----------------------------
 1 files changed, 0 insertions(+), 65 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/9e067e6f/templates/custom/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/custom/ManifestProcessor.js b/templates/custom/ManifestProcessor.js
deleted file mode 100644
index 18c2163..0000000
--- a/templates/custom/ManifestProcessor.js
+++ /dev/null
@@ -1,65 +0,0 @@
-
-var objArgs = WScript.Arguments;
-for (i = 0; i < objArgs.length; i++)
-{
-   WScript.Echo("Arg :: " + objArgs(i));
-}
-
-var projectFilePath = null;
-if(objArgs && objArgs.length > 0)
-{
-    projectFilePath = objArgs(0);
-}
-
-
-var fso = WScript.CreateObject("Scripting.FileSystemObject");
-
-var folder = fso.GetFolder("..\\..\\www");
-
-var outFile = fso.CreateTextFile("..\\..\\GapSourceDictionary.xml", true);
-
-outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>');
-outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->');
-outFile.WriteLine('<GapSourceDictionary>');
-
-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();
-	}
-}
-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");
-    
-    projXml.async = false;
-    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++)
-        {
-            outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
-        }
-    }
-}
-
-outFile.WriteLine('</GapSourceDictionary>');
-


Mime
View raw message