cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r612293 - /incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
Date Tue, 15 Jan 2008 23:06:46 GMT
Author: dkulp
Date: Tue Jan 15 15:06:44 2008
New Revision: 612293

URL: http://svn.apache.org/viewvc?rev=612293&view=rev
Log:
Fix issue with tests running in eclipse creating a "null" subdirectory 

Modified:
    incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java

Modified: incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java?rev=612293&r1=612292&r2=612293&view=diff
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
(original)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
Tue Jan 15 15:06:44 2008
@@ -248,7 +248,13 @@
                 try {
                     fos = new FileOutputStream(outputDir + className + ".out");
                 } catch (FileNotFoundException fex) {
-                    outputDir = System.getProperty("basedir") + "/target/surefire-reports/";
+                    outputDir = System.getProperty("basedir");
+                    if (outputDir == null) {
+                        outputDir = "target/surefire-reports/";
+                    } else {
+                        outputDir += "/target/surefire-reports/";
+                    }
+                    
                     File file = new File(outputDir);
                     file.mkdirs();
                     fos = new FileOutputStream(outputDir + className + ".out");



Mime
View raw message