jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1210092 - /jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java
Date Sun, 04 Dec 2011 11:52:07 GMT
Author: pmouawad
Date: Sun Dec  4 11:52:07 2011
New Revision: 1210092

URL: http://svn.apache.org/viewvc?rev=1210092&view=rev
Log:
Code clarification for findbugs

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java?rev=1210092&r1=1210091&r2=1210092&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/reporters/ResultCollector.java Sun Dec  4 11:52:07
2011
@@ -390,7 +390,10 @@ public class ResultCollector extends Abs
             // and create it - if there is one
             File pdir = new File(filename).getParentFile();
             if (pdir != null) {
-                pdir.mkdirs();// returns false if directory already exists, so need to check
again
+            	// returns false if directory already exists, so need to check again
+                if(pdir.mkdirs()){
+                	log.info("Folder "+pdir.getAbsolutePath()+" was created");
+                } // else if might have been created by another process so not a problem
                 if (!pdir.exists()){
                     log.warn("Error creating directories for "+pdir.toString());
                 }



Mime
View raw message