public class RenameSourceFilesForJava9Build extends Object
ManAttr_8.java ManAttr_9.java9If we change a java9 file, we need to temporarily rename the Java 8 version to '*.java8' and rename the java9 version to '*.java', compile with Java 9, copy the corresponding Java 9 .class files to the resource dir, reverse the renaming, and recompile back to Java 8. It's messy, but is infrequent enough to justify the process. Renames java source files:
MyClass_X.javaX -> MyClass_X.java MyClass_Y.java -> MyClass_Y.javaYWhere X and Y are supplied as local variables
javaNum
and {$code textNum}, respectively.Modifier and Type | Class and Description |
---|---|
static class |
RenameSourceFilesForJava9Build._8_will_become_java_files |
static class |
RenameSourceFilesForJava9Build._9_will_become_java_files
IMPORTANT: define env var:
|
Constructor and Description |
---|
RenameSourceFilesForJava9Build() |
Copyright © 2020. All rights reserved.