commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r731709 - /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Date Mon, 05 Jan 2009 20:51:38 GMT
Author: rahul
Date: Mon Jan  5 12:51:37 2009
New Revision: 731709

URL: http://svn.apache.org/viewvc?rev=731709&view=rev
Log:
Create parents if they don't exist.

Modified:
    commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=731709&r1=731708&r2=731709&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
(original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Mon Jan  5 12:51:37 2009
@@ -280,7 +280,7 @@
 
     public static SCXML testModelSerializability(final SCXML scxml) throws Exception {
         File fileDir = new File(SERIALIZATION_DIR);
-        if (!fileDir.exists() && !fileDir.mkdir()) {
+        if (!fileDir.exists() && !fileDir.mkdirs()) {
             System.err.println("SKIPPED SERIALIZATION: Failed directory creation");
             return scxml;
         }
@@ -315,7 +315,7 @@
 
     public static SCXMLExecutor testExecutorSerializability(final SCXMLExecutor exec) throws
Exception {
         File fileDir = new File(SERIALIZATION_DIR);
-        if (!fileDir.exists() && !fileDir.mkdir()) {
+        if (!fileDir.exists() && !fileDir.mkdirs()) {
             System.err.println("SKIPPED SERIALIZATION: Failed directory creation");
             return exec;
         }



Mime
View raw message