incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r512117 - /incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java
Date Tue, 27 Feb 2007 02:29:35 GMT
Author: sisbell
Date: Mon Feb 26 18:29:35 2007
New Revision: 512117

URL: http://svn.apache.org/viewvc?view=rev&rev=512117
Log:
Fixed bug where GAC dependency breaks build on multi-module builds.

Modified:
    incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java

Modified: incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java?view=diff&rev=512117&r1=512116&r2=512117
==============================================================================
--- incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java
(original)
+++ incubator/nmaven/branches/SI_IDE/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java
Mon Feb 26 18:29:35 2007
@@ -127,6 +127,16 @@
         artifact.getMetadataList().clear();
         try
         {
+            List<Dependency> dependencies = project.getDependencies();
+            List<Dependency> newDependencies = new ArrayList<Dependency>();
+            for(Dependency dependency : dependencies)
+            {
+                if(!dependency.getType().equals("gac"))
+                {
+                    newDependencies.add( dependency );
+                }
+            }
+            project.setDependencies( newDependencies );
             artifact.addMetadata( createArtifactMetadataFor( artifact, pomFile, project.getDependencies()
) );
         }
         catch ( IOException e )



Mime
View raw message