Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FF51B749 for ; Thu, 12 Jan 2012 19:30:57 +0000 (UTC) Received: (qmail 17015 invoked by uid 500); 12 Jan 2012 19:30:57 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 16996 invoked by uid 500); 12 Jan 2012 19:30:57 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 16989 invoked by uid 99); 12 Jan 2012 19:30:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 19:30:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 19:30:55 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2C62B5549D; Thu, 12 Jan 2012 19:30:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [15/51] [abbrv] git commit: ManifestProcessor will correctly include linked files (shortcuts) Message-Id: <20120112193014.2C62B5549D@tyr.zones.apache.org> Date: Thu, 12 Jan 2012 19:30:14 +0000 (UTC) ManifestProcessor will correctly include linked files (shortcuts) 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/2e137b3b Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/2e137b3b Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/2e137b3b Branch: refs/heads/master Commit: 2e137b3bfbe58188c0cf2173fac5bbad5b0539ce Parents: e9c92a6 Author: Jesse MacFadyen Authored: Fri Dec 16 11:42:14 2011 -0800 Committer: Jesse MacFadyen Committed: Fri Dec 16 11:42:14 2011 -0800 ---------------------------------------------------------------------- example/ManifestProcessor.js | 20 +++++++++++++++++++ templates/custom/ManifestProcessor.js | 20 +++++++++++++++++++ templates/full/ManifestProcessor.js | 20 +++++++++++++++++++ tests/MobileSpecUnitTests/ManifestProcessor.js | 20 +++++++++++++++++++ 4 files changed, 80 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/2e137b3b/example/ManifestProcessor.js ---------------------------------------------------------------------- diff --git a/example/ManifestProcessor.js b/example/ManifestProcessor.js index 0148fa2..7f02c34 100644 --- a/example/ManifestProcessor.js +++ b/example/ManifestProcessor.js @@ -36,5 +36,25 @@ function enumerateFolder(folder,parentPath) } 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"); + + for(var n = 0; n < nodes.length; n++) + { + WScript.Echo("adding linked file :: " + nodes[n].text); + outFile.WriteLine(' '); + } + } +} + outFile.WriteLine(''); http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/2e137b3b/templates/custom/ManifestProcessor.js ---------------------------------------------------------------------- diff --git a/templates/custom/ManifestProcessor.js b/templates/custom/ManifestProcessor.js index 0148fa2..7f02c34 100644 --- a/templates/custom/ManifestProcessor.js +++ b/templates/custom/ManifestProcessor.js @@ -36,5 +36,25 @@ function enumerateFolder(folder,parentPath) } 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"); + + for(var n = 0; n < nodes.length; n++) + { + WScript.Echo("adding linked file :: " + nodes[n].text); + outFile.WriteLine(' '); + } + } +} + outFile.WriteLine(''); http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/2e137b3b/templates/full/ManifestProcessor.js ---------------------------------------------------------------------- diff --git a/templates/full/ManifestProcessor.js b/templates/full/ManifestProcessor.js index 0148fa2..7f02c34 100644 --- a/templates/full/ManifestProcessor.js +++ b/templates/full/ManifestProcessor.js @@ -36,5 +36,25 @@ function enumerateFolder(folder,parentPath) } 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"); + + for(var n = 0; n < nodes.length; n++) + { + WScript.Echo("adding linked file :: " + nodes[n].text); + outFile.WriteLine(' '); + } + } +} + outFile.WriteLine(''); http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/2e137b3b/tests/MobileSpecUnitTests/ManifestProcessor.js ---------------------------------------------------------------------- diff --git a/tests/MobileSpecUnitTests/ManifestProcessor.js b/tests/MobileSpecUnitTests/ManifestProcessor.js index 0148fa2..7f02c34 100644 --- a/tests/MobileSpecUnitTests/ManifestProcessor.js +++ b/tests/MobileSpecUnitTests/ManifestProcessor.js @@ -36,5 +36,25 @@ function enumerateFolder(folder,parentPath) } 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"); + + for(var n = 0; n < nodes.length; n++) + { + WScript.Echo("adding linked file :: " + nodes[n].text); + outFile.WriteLine(' '); + } + } +} + outFile.WriteLine('');