incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r595395 - /incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs
Date Thu, 15 Nov 2007 19:08:22 GMT
Author: sisbell
Date: Thu Nov 15 11:08:21 2007
New Revision: 595395

URL: http://svn.apache.org/viewvc?rev=595395&view=rev
Log:
Fixed a bug that caused the adding of references to fail if the project was in the default
maven project structure.

Modified:
    incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs

Modified: incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs?rev=595395&r1=595394&r2=595395&view=diff
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs
(original)
+++ incubator/nmaven/trunk/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/AddArtifactsForm.cs
Thu Nov 15 11:08:21 2007
@@ -145,10 +145,16 @@
         {
             String pomFileName = 
                 (new FileInfo(project.FileName).Directory).FullName + @"\pom.xml";
-            if (!new FileInfo(pomFileName).Exists)
+            if (!new FileInfo(pomFileName).Exists)//No flat directory structure.
             {
-                MessageBox.Show("Could not add reference. Missing pom file: File = " + pomFileName);
-                return;
+                pomFileName = (new FileInfo(project.FileName).Directory.Parent.Parent.Parent).FullName

+                    + @"\pom.xml";
+
+                if (!new FileInfo(pomFileName).Exists)
+                {
+                    MessageBox.Show("Could not add reference. Missing pom file: File = "
+ pomFileName);
+                    return;
+                }
             }
 
             XmlReader reader = XmlReader.Create(pomFileName);



Mime
View raw message