-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove IBM-1047 export options and create test config files in EBCDIC…
… for JDK21+ on z/OS Signed-off-by: Pasam Soujanya <[email protected]>
- Loading branch information
Showing
6 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.openj9.envInfo; | ||
|
||
import java.io.FileOutputStream; | ||
import java.io.FileWriter; | ||
import java.io.IOException; | ||
import java.io.OutputStreamWriter; | ||
import java.io.Writer; | ||
import java.nio.charset.Charset; | ||
|
||
public class Utility { | ||
|
||
public static Writer writer; | ||
|
||
public static Writer getWriterObject(int jdkVersion, String SpecInfo, String fileName) { | ||
try { | ||
if (SpecInfo.toLowerCase().contains("zos") && (jdkVersion >= 21)) { | ||
writer = new OutputStreamWriter(new FileOutputStream(fileName, true), Charset.forName("IBM-1047")); | ||
} else { | ||
writer = new FileWriter(fileName, true); | ||
} | ||
} catch(IOException e) { | ||
e.printStackTrace(); | ||
System.exit(1); | ||
} | ||
return writer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters