You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nmaven-commits@incubator.apache.org by si...@apache.org on 2007/02/26 20:59:36 UTC
svn commit: r512011 -
/incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java
Author: sisbell
Date: Mon Feb 26 12:59:35 2007
New Revision: 512011
URL: http://svn.apache.org/viewvc?view=rev&rev=512011
Log:
Fixed bug NMAVEN_10: Unit test handles testing of .NET module.
Modified:
incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java
Modified: incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java?view=diff&rev=512011&r1=512010&r2=512011
==============================================================================
--- incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java (original)
+++ incubator/nmaven/branches/SI_IDE/components/dotnet-executable/src/main/java/org/apache/maven/dotnet/executable/impl/CompilerContextImpl.java Mon Feb 26 12:59:35 2007
@@ -133,6 +133,13 @@
{
artifacts.add( project.getArtifact() );
}
+
+ if ( config.isTestCompile() &&
+ project.getArtifact().getType().equals( ArtifactType.MODULE.getArtifactTypeName() ) &&
+ project.getArtifact().getFile() != null && project.getArtifact().getFile().exists() )
+ {
+ artifacts.add( project.getArtifact() );
+ }
return artifacts;
}
@@ -153,7 +160,7 @@
{
if ( config.isTestCompile() && config.getArtifactType().equals( ArtifactType.LIBRARY ) &&
project.getArtifact().getFile() != null && project.getArtifact().getFile().exists() &&
- !libraries.contains( project.getArtifact() ) )
+ !libraries.contains( project.getArtifact() ) && !project.getArtifact().getType().equals( "module" ) )
{
libraries.add( project.getArtifact() );
}