jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1728216 - in /jmeter/trunk: src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java xdocs/changes.xml
Date Tue, 02 Feb 2016 21:22:28 GMT
Author: pmouawad
Date: Tue Feb  2 21:22:28 2016
New Revision: 1728216

URL: http://svn.apache.org/viewvc?rev=1728216&view=rev
Log:
Bug 58957 - Report/Dashboard: HTML Exporter does not create parent directories for output
directory
#resolve #103
Bugzilla Id: 58957

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java?rev=1728216&r1=1728215&r2=1728216&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java Tue
Feb  2 21:22:28 2016
@@ -23,6 +23,7 @@ import java.nio.file.Files;
 import java.util.Map;
 import java.util.TimeZone;
 
+import org.apache.commons.io.FileUtils;
 import org.apache.commons.lang3.Validate;
 import org.apache.jmeter.report.config.ConfigurationException;
 import org.apache.jmeter.report.config.ExporterConfiguration;
@@ -263,6 +264,8 @@ public class HtmlTemplateExporter extend
             templateCfg.setDirectoryForTemplateLoading(templateDirectory);
             templateCfg
                     .setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+            LOG.info("Report will be generated in:"+outputDir.getAbsolutePath()+", creating
folder structure");
+            FileUtils.forceMkdir(outputDir);
             TemplateVisitor visitor = new TemplateVisitor(
                     templateDirectory.toPath(), outputDir.toPath(),
                     templateCfg, dataContext);

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1728216&r1=1728215&r2=1728216&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Tue Feb  2 21:22:28 2016
@@ -190,6 +190,7 @@ Summary
 <li><bug>58864</bug>Arguments Panel : when moving parameter with up / down,
ensure that the selection remains visible. Based on a contribution by Benoit Wiart (benoit
dot wiart at gmail.com)</li>
 <li><bug>58924</bug>Dashboard / report : It should be possible to export
the generated graph as image (PNG). Contributed by Benoit Wiart (benoit dot wiart at gmail.com)</li>
 <li><bug>58884</bug>JMeter report generator : need better error message.
Developed by Florent Sabbe (f dot sabbe at ubik-ingenierie.com) and contributed by Ubik-Ingenierie</li>
+<li><bug>58957</bug>Report/Dashboard: HTML Exporter does not create parent
directories for output directory. Developed by Florent Sabbe (f dot sabbe at ubik-ingenierie.com)
and contributed by Ubik-Ingenierie</li>
 </ul>
 <ch_section>Non-functional changes</ch_section>
 <ul>



Mime
View raw message