[jboss-svn-commits] JBL Code SVN: r24368 - labs/jbosstm/trunk/qa/tests/src/org/jboss/jbossts/qa/Utils.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Dec 12 11:35:26 EST 2008
Author: jhalliday
Date: 2008-12-12 11:35:25 -0500 (Fri, 12 Dec 2008)
New Revision: 24368
Modified:
labs/jbosstm/trunk/qa/tests/src/org/jboss/jbossts/qa/Utils/RegisterOTSServer2.java
Log:
File handling fix for local DTF tests.
Modified: labs/jbosstm/trunk/qa/tests/src/org/jboss/jbossts/qa/Utils/RegisterOTSServer2.java
===================================================================
--- labs/jbosstm/trunk/qa/tests/src/org/jboss/jbossts/qa/Utils/RegisterOTSServer2.java 2008-12-12 16:22:57 UTC (rev 24367)
+++ labs/jbosstm/trunk/qa/tests/src/org/jboss/jbossts/qa/Utils/RegisterOTSServer2.java 2008-12-12 16:35:25 UTC (rev 24368)
@@ -80,7 +80,9 @@
public static void registerService(String name, String ior) throws IOException
{
File file = new File(name);
- file.getParentFile().mkdirs();
+ if(file.getParentFile() != null) {
+ file.getParentFile().mkdirs();
+ }
FileOutputStream fout = new FileOutputStream(file);
fout.write(ior.getBytes());
fout.close();
More information about the jboss-svn-commits
mailing list