This repository was archived by the owner on Jun 27, 2019. It is now read-only.
File tree 1 file changed +2
-22
lines changed
eu.mondo.sam.core/src/main/java/eu/mondo/sam/core/publishers
1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,16 @@ public class CsvPublisher implements Publisher {
16
16
17
17
protected FilenameFactory factory ;
18
18
19
- protected String resultPath ;
20
-
21
- protected String extension ;
19
+ protected String resultPath = "../results/results.csv" ;;
22
20
23
21
public CsvPublisher (final FilenameFactory factory ) {
24
22
this .factory = factory ;
25
- resultPath = "../results/csv/" ;
26
- extension = ".csv" ;
27
23
}
28
24
29
25
@ Override
30
26
public void publish (final BenchmarkResult benchmarkResult ) throws IOException {
31
27
final CSVFormat format = CSVFormat .DEFAULT ;
32
- FileWriter fileWriter = new FileWriter ("results.csv" , true );
28
+ FileWriter fileWriter = new FileWriter (resultPath , true );
33
29
34
30
// CSV rows
35
31
// Scenario, Tool, Run, Case attributes
@@ -67,24 +63,8 @@ public void publish(final BenchmarkResult benchmarkResult) throws IOException {
67
63
}
68
64
}
69
65
70
- public String getExtension () {
71
- return extension ;
72
- }
73
-
74
- public void setExtension (final String extension ) {
75
- this .extension = extension ;
76
- }
77
-
78
66
public String getResultPath () {
79
67
return resultPath ;
80
68
}
81
69
82
- public void setResultPath (final String resultPath ) {
83
- this .resultPath = resultPath ;
84
- }
85
-
86
- public String getFullname () {
87
- return resultPath + factory .getFilename () + extension ;
88
- }
89
-
90
70
}
You can’t perform that action at this time.
0 commit comments