File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 15
15
package org .testKitGen ;
16
16
17
17
import java .io .File ;
18
- import java .io .FileWriter ;
19
18
import java .io .IOException ;
19
+ import java .io .Writer ;
20
20
import java .nio .file .Path ;
21
21
import java .nio .file .Paths ;
22
22
import java .util .HashSet ;
23
23
import java .util .Set ;
24
24
25
+ import org .openj9 .envInfo .JavaInfo ;
26
+ import org .openj9 .envInfo .Utility ;
27
+
25
28
public class BuildList {
26
29
private Arguments arg ;
30
+ private JavaInfo jInfo ;
27
31
private Set <String > originalSet = new HashSet <>();
28
32
private Set <String > newSet = new HashSet <>();
29
33
private String buildInfomk ;
30
34
31
35
public BuildList (Arguments arg ) {
32
36
this .arg = arg ;
37
+ this .jInfo = new JavaInfo ();
33
38
buildInfomk = arg .getProjectRootDir () + "/TKG/" + Constants .BUILDINFOMK ;
34
39
initializeSet ();
35
40
}
@@ -92,7 +97,7 @@ private String getStr() {
92
97
}
93
98
94
99
public void generateList () {
95
- try (FileWriter f = new FileWriter ( buildInfomk )) {
100
+ try (Writer f = Utility . getWriterObject ( jInfo . getJDKVersion (), arg . getSpec (), buildInfomk )) {
96
101
f .write (Constants .HEADERCOMMENTS );
97
102
f .write ("REFINED_BUILD_LIST := " + getStr () + "\n " );
98
103
System .out .println ("Generated " + buildInfomk + "\n " );
You can’t perform that action at this time.
0 commit comments