Automatically download OpenJFX when JavaFX is missing

This commit is contained in:
Glavo
2021-09-20 13:27:09 +08:00
committed by Yuhui Huang
parent 01158c2320
commit 6ac8519a9f
2 changed files with 62 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ processResources {
def bssFile = new File(this.projectDir, "build/compiled-resources/" + resource[0..-4] + "bss")
bssFile.parentFile.mkdirs()
javaexec {
classpath = sourceSets.main.compileClasspath
mainClass = "com.sun.javafx.css.parser.Css2Bin"
args = [cssFile, bssFile]
}