File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ static public File getJavaHome() {
398398 }
399399
400400 var home = System .getProperty ("java.home" );
401- if (home != null && new File ( home , "bin/java" ). exists () ){
401+ if (home != null ){
402402 return new File (home );
403403 }
404404 if (Platform .isMacOS ()) {
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ class GradleService(val editor: Editor) {
227227 // "location" to "0,0",
228228 // "ui.scale" to "1.0",
229229 )
230- val repository = Platform .getContentFile(" repository" ).absolutePath
230+ val repository = Platform .getContentFile(" repository" ).absolutePath.replace( """ \ """ , """ \\ """ )
231231
232232 val initGradle = workingDir.resolve(" init.gradle.kts" ).apply {
233233 val content = """
Original file line number Diff line number Diff line change @@ -88,3 +88,6 @@ tasks.withType<Jar> {
8888tasks.compileJava{
8989 options.encoding = " UTF-8"
9090}
91+ tasks.javadoc{
92+ options.encoding = " UTF-8"
93+ }
You can’t perform that action at this time.
0 commit comments