MVC support for NPanday

Developer
Mar 29, 2010 at 9:31 AM

Hi All,

 

I've attached the patch I created to be able to successfully import a MVC project.  I only was able to successfully import a MVC application with no unit test yet.

 

I was also able to build successfully a simple MVC project.

 

Any thoughts/suggestions/comments?

 

Thanks!

 

Developer
Mar 29, 2010 at 9:33 AM

I can't attach the patch, here's my fix:

 

Index: dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Digest/PomConverter.cs
===================================================================
--- dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Digest/PomConverter.cs    (revision 43194)
+++ dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Digest/PomConverter.cs    (working copy)
@@ -70,6 +70,11 @@
                 VisualStudioProjectTypeEnum.Windows_Communication_Foundation__WCF | VisualStudioProjectTypeEnum.Windows__VbDotNet,
                 typeof(NormalPomConverter)
               );
+            __converterAlgorithms.Add(
+                VisualStudioProjectTypeEnum.Model_View_Controller_MVC | VisualStudioProjectTypeEnum.Windows__CSharp | VisualStudioProjectTypeEnum.Web_Application,
+                typeof(NormalPomConverter)
+              );
+
         }
 
 
Index: dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectType.cs
===================================================================
--- dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectType.cs    (revision 43194)
+++ dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectType.cs    (working copy)
@@ -178,6 +178,10 @@
             __visualStudioProjectTypeGuids.Add(VisualStudioProjectTypeEnum.Website_MVC, "603C0E0B-DB56-11DC-BE95-000D561079B0");
             __visualStudioProjectTypeSupported.Add("603C0E0B-DB56-11DC-BE95-000D561079B0", true);
 
+            //Model View Controller (MVC) {{F85E285D-A4E0-4152-9332-AB1D724D3325}}
+            __visualStudioProjectTypes.Add("F85E285D-A4E0-4152-9332-AB1D724D3325", VisualStudioProjectTypeEnum.Model_View_Controller_MVC);
+            __visualStudioProjectTypeGuids.Add(VisualStudioProjectTypeEnum.Model_View_Controller_MVC, "F85E285D-A4E0-4152-9332-AB1D724D3325");
+            __visualStudioProjectTypeSupported.Add("F85E285D-A4E0-4152-9332-AB1D724D3325", true);
         }
 
 
Index: dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectTypeEnum.cs
===================================================================
--- dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectTypeEnum.cs    (revision 43194)
+++ dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPanday/ProjectImporter/Parser/VisualStudioProjectTypes/VisualStudioProjectTypeEnum.cs    (working copy)
@@ -171,6 +171,12 @@
         /// GUID: {603c0e0b-db56-11dc-be95-000d561079b0}
         /// </summary>
         Website_MVC = 3,
+        
+        /// <summary>
+        /// Project Type: ASP MVC,
+        /// GUID: {69150728-AFCB-45A3-9D78-D96A5E0F1A27}
+        /// </summary>
+        Model_View_Controller_MVC = 67108864,
 
 

Thanks!

Coordinator
Mar 29, 2010 at 6:47 PM

what does the resulting POM look like? Does it rely on using MSBuild to build the project?

Developer
Apr 6, 2010 at 2:02 AM

Hi Brett,

 

Here's the pom:

 

parent pom --> http://pastie.org/904854

project pom --> http://pastie.org/904857

 

Based on the project pom, it doesn't rely on the MSBuild to build the project but on the maven-compiler.

 

Thanks!

Coordinator
Apr 6, 2010 at 5:35 AM

Thanks, sounds great. So no additional capabilities are needed in the build?

Are those systemPath elements meant to be there?