mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
Build: Keep Java 8 output while compiling 26.2 sources
- Compile main sources with --release 8 - Move record-dependent v26_2 input classes to a separate source set - Use a JDK 25 toolchain for that source set, still emitting class version 52 - Fix the Injector PrintStream charset constructor for Java 8
This commit is contained in:
1 parent
a84b04877d
commit
c8e23c5d1c
3 files changed
+37
-4
No files matched your search
@@ -13,17 +13,17 @@ public class Main {
|
||||
public static String orangexPath = new File(System.getProperty("user.home") + "/.orangex").getAbsolutePath();
|
||||
private static int pid = -1;
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws Exception {
|
||||
System.setOut(new PrintStream(
|
||||
new FileOutputStream(FileDescriptor.out),
|
||||
true,
|
||||
StandardCharsets.UTF_8
|
||||
StandardCharsets.UTF_8.name()
|
||||
));
|
||||
|
||||
System.setErr(new PrintStream(
|
||||
new FileOutputStream(FileDescriptor.err),
|
||||
true,
|
||||
StandardCharsets.UTF_8
|
||||
StandardCharsets.UTF_8.name()
|
||||
));
|
||||
|
||||
System.out.println("================");
|
||||
|
||||
Reference in new issue
Block a user