Skip to content

Commit 4602ef1

Browse files
committed
Fixes for windows
1 parent 0d3795f commit 4602ef1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/src/processing/app/Platform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

app/src/processing/app/gradle/GradleService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = """

core/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,6 @@ tasks.withType<Jar> {
8888
tasks.compileJava{
8989
options.encoding = "UTF-8"
9090
}
91+
tasks.javadoc{
92+
options.encoding = "UTF-8"
93+
}

0 commit comments

Comments
 (0)