Author: brett
Date: Wed Oct  1 00:10:38 2008
New Revision: 700700

URL: http://svn.apache.org/viewvc?rev=700700&view=rev
Log:
it is not always nunit-console2 on mono, and nunit-console is still available 
(SDK 1.1). Best to use toolchains / platform matching for this, but keep it 
simple to start with

Modified:
    
incubator/nmaven/branches/NMAVEN-8-nunit/plugins/maven-dotnet-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/nunit/DotnetTestMojo.java

Modified: 
incubator/nmaven/branches/NMAVEN-8-nunit/plugins/maven-dotnet-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/nunit/DotnetTestMojo.java
URL: 
http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN-8-nunit/plugins/maven-dotnet-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/nunit/DotnetTestMojo.java?rev=700700&r1=700699&r2=700700&view=diff
==============================================================================
--- 
incubator/nmaven/branches/NMAVEN-8-nunit/plugins/maven-dotnet-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/nunit/DotnetTestMojo.java
 (original)
+++ 
incubator/nmaven/branches/NMAVEN-8-nunit/plugins/maven-dotnet-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/nunit/DotnetTestMojo.java
 Wed Oct  1 00:10:38 2008
@@ -108,18 +108,7 @@
         getLog().debug( "NMaven-test: workingDirectory(" + 
testAssemblies.getAbsolutePath() + ")" );
 
         commandline.setWorkingDirectory( testAssemblies.getAbsolutePath() );
-        if ( vendor.equals( Vendor.MICROSOFT ) )
-        {
-            commandline.setExecutable( "nunit-console" );
-        }
-        else if ( vendor.equals( Vendor.NOVELL ) )
-        {
-            commandline.setExecutable( "nunit-console2" );
-        }
-        else
-        {
-            throw new MojoExecutionException("Vendor not found.");
-        }
+        commandline.setExecutable( "nunit-console" );
         commandline.addArguments( getNUnitArguments() );
 
         NUnitStreamConsumer systemOut = new NUnitStreamConsumer( getLog() );


Reply via email to