You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by lc...@apache.org on 2011/02/11 13:04:36 UTC

svn commit: r1069790 - /incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java

Author: lcorneliussen
Date: Fri Feb 11 13:04:36 2011
New Revision: 1069790

URL: http://svn.apache.org/viewvc?rev=1069790&view=rev
Log:
Fix for OSX compile: Test creates directories with mkdir. On linux/osx it can only create one at a time.

Modified:
    incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java

Modified: incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java?rev=1069790&r1=1069789&r2=1069790&view=diff
==============================================================================
--- incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java (original)
+++ incubator/npanday/trunk/components/dotnet-executable/src/test/java/npanday/executable/CommandExecutorTest.java Fri Feb 11 13:04:36 2011
@@ -42,6 +42,11 @@ public class CommandExecutorTest
         {
             File f = new File( "test" );
             parentPath = System.getProperty( "user.dir" ) + File.separator + "target" + File.separator + "test-resources";
+
+            File parentPathFile = new File(parentPath);
+            if (!parentPathFile.exists())
+                parentPathFile.mkdir();
+
             cmdExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
         }