incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [14/51] [abbrv] git commit: properly process project files - requires argument
Date Thu, 12 Jan 2012 19:30:14 GMT
properly process project files - requires argument


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

Branch: refs/heads/master
Commit: 279501002b93b6d01134128cf9a7e60e30c46462
Parents: 2e137b3
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Dec 16 12:14:52 2011 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Dec 16 12:14:52 2011 -0800

----------------------------------------------------------------------
 .gitignore                                         |   10 +++++++---
 example/GapExample.csproj                          |    2 +-
 example/ManifestProcessor.js                       |    9 +++++++--
 templates/custom/ManifestProcessor.js              |    9 +++++++--
 templates/full/ManifestProcessor.js                |    9 +++++++--
 tests/MobileSpecUnitTests/ManifestProcessor.js     |    9 +++++++--
 .../MobileSpecUnitTests/MobileSpecUnitTests.csproj |    2 +-
 7 files changed, 37 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index a7e4e7c..0dabdfc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,12 +10,10 @@ obj
 bin
 Bin
 *.csproj.user
-*ReSharper*
-*resharper*
 *.suo
 *.cache
 Thumbs.db
-ARMADILLO_CACHE
+
  
 # Other useful stuff
 *.bak
@@ -37,4 +35,10 @@ httpd.parse.errors
  
 # Exclude ALL DLLs? (
 # *.dll
+
+/example/GapSourceDictionary.xml
+/tests/MobileSpecUnitTests/GapSourceDictionary.xml
+
+
+
  
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/example/GapExample.csproj
----------------------------------------------------------------------
diff --git a/example/GapExample.csproj b/example/GapExample.csproj
index 5dcc03d..de7c079 100644
--- a/example/GapExample.csproj
+++ b/example/GapExample.csproj
@@ -167,7 +167,7 @@
   -->
   <ProjectExtensions />
   <PropertyGroup>
-    <PreBuildEvent>CScript "$(ProjectDir)/ManifestProcessor.js"</PreBuildEvent>
+    <PreBuildEvent>CScript "$(ProjectDir)/ManifestProcessor.js" "$(ProjectPath)"</PreBuildEvent>
   </PropertyGroup>
   <PropertyGroup>
     <PostBuildEvent>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/example/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/example/ManifestProcessor.js b/example/ManifestProcessor.js
index 7f02c34..18c2163 100644
--- a/example/ManifestProcessor.js
+++ b/example/ManifestProcessor.js
@@ -5,6 +5,12 @@ 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");
 
@@ -47,10 +53,9 @@ if(projectFilePath != null)
     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++)
         {
-            WScript.Echo("adding linked file :: " + nodes[n].text);
             outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/templates/custom/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/custom/ManifestProcessor.js b/templates/custom/ManifestProcessor.js
index 7f02c34..18c2163 100644
--- a/templates/custom/ManifestProcessor.js
+++ b/templates/custom/ManifestProcessor.js
@@ -5,6 +5,12 @@ 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");
 
@@ -47,10 +53,9 @@ if(projectFilePath != null)
     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++)
         {
-            WScript.Echo("adding linked file :: " + nodes[n].text);
             outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/templates/full/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/templates/full/ManifestProcessor.js b/templates/full/ManifestProcessor.js
index 7f02c34..18c2163 100644
--- a/templates/full/ManifestProcessor.js
+++ b/templates/full/ManifestProcessor.js
@@ -5,6 +5,12 @@ 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");
 
@@ -47,10 +53,9 @@ if(projectFilePath != null)
     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++)
         {
-            WScript.Echo("adding linked file :: " + nodes[n].text);
             outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/tests/MobileSpecUnitTests/ManifestProcessor.js
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/ManifestProcessor.js b/tests/MobileSpecUnitTests/ManifestProcessor.js
index 7f02c34..18c2163 100644
--- a/tests/MobileSpecUnitTests/ManifestProcessor.js
+++ b/tests/MobileSpecUnitTests/ManifestProcessor.js
@@ -5,6 +5,12 @@ 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");
 
@@ -47,10 +53,9 @@ if(projectFilePath != null)
     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++)
         {
-            WScript.Echo("adding linked file :: " + nodes[n].text);
             outFile.WriteLine('    <FilePath Value="' + nodes[n].text + '"/>');
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/27950100/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj b/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
index f7c1159..d615e9e 100644
--- a/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
+++ b/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
@@ -136,6 +136,6 @@
   -->
   <ProjectExtensions />
   <PropertyGroup>
-    <PreBuildEvent>CScript "$(ProjectDir)/ManifestProcessor.js"</PreBuildEvent>
+    <PreBuildEvent>CScript "$(ProjectDir)/ManifestProcessor.js" "$(ProjectPath)"</PreBuildEvent>
   </PropertyGroup>
 </Project>
\ No newline at end of file


Mime
View raw message