incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r539674 - /incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
Date Sat, 19 May 2007 02:07:46 GMT
Author: sisbell
Date: Fri May 18 19:07:45 2007
New Revision: 539674

URL: http://svn.apache.org/viewvc?view=rev&rev=539674
Log:
Fixed problem with nunit-console failing on linux because the path of the test assembly began
with '/' which nunit thought was an option.

Modified:
    incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java

Modified: incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java?view=diff&rev=539674&r1=539673&r2=539674
==============================================================================
--- incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
(original)
+++ incubator/nmaven/branches/SI_XPT/plugins/maven-test-plugin/src/main/java/org/apache/maven/dotnet/plugin/test/TesterMojo.java
Fri May 18 19:07:45 2007
@@ -120,6 +120,11 @@
     {
         String finalName = project.getBuild().getFinalName();
         List<String> commands = new ArrayList<String>();
+        if(testAssemblyPath.startsWith( "/"))//nunit-console thinks *nix file format /home/user/
is an option due to / and fails.
+        {
+            testAssemblyPath = "/" + testAssemblyPath;            
+        }
+
         commands.add( testAssemblyPath + File.separator + project.getArtifactId() + "-test.dll"
);
         commands.add( "/xml:" + reportsDirectory + File.separator + "TEST-" + finalName +
".xml" );
 



Mime
View raw message