View | Details | Raw Unified | Return to bug 60125
Collapse All | Expand All

(-)a/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java (-3 / +12 lines)
Lines 76-83 public class ReportGenerator { Link Here
76
            .equalsIgnoreCase(JMeterUtils.getPropDefault(
76
            .equalsIgnoreCase(JMeterUtils.getPropDefault(
77
                    "jmeter.save.saveservice.output_format", "csv"));
77
                    "jmeter.save.saveservice.output_format", "csv"));
78
78
79
    private static final char CSV_DEFAULT_SEPARATOR =
79
    private static final char CSV_DEFAULT_SEPARATOR = extractDefaultSeparator();
80
            JMeterUtils.getPropDefault("jmeter.save.saveservice.default_delimiter", ",").charAt(0); //$NON-NLS-1$ //$NON-NLS-2$
81
80
82
    private static final String INVALID_CLASS_FMT = "Class name \"%s\" is not valid.";
81
    private static final String INVALID_CLASS_FMT = "Class name \"%s\" is not valid.";
83
    private static final String INVALID_EXPORT_FMT = "Data exporter \"%s\" is unable to export data.";
82
    private static final String INVALID_EXPORT_FMT = "Data exporter \"%s\" is unable to export data.";
Lines 104-109 public class ReportGenerator { Link Here
104
     */
103
     */
105
    private final ResultCollector resultCollector;
104
    private final ResultCollector resultCollector;
106
105
106
    private static final char extractDefaultSeparator() {
107
            String delimiter = JMeterUtils.getPropDefault("jmeter.save.saveservice.default_delimiter", ","); //$NON-NLS-1$ //$NON-NLS-2$
108
            switch (delimiter) {
109
                "TAB":
110
                    return '\t';
111
                "SPACE":
112
                    return ' ';
113
                default: return delimiter.charAt(0);
114
            }
115
    }
116
107
    /**
117
    /**
108
     * Instantiates a new report generator.
118
     * Instantiates a new report generator.
109
     *
119
     *
110
- 

Return to bug 60125