Skip to content

Commit 8fdae33

Browse files
authored
Add auto start option to runViaProxy task (ViaVersion#4225)
1 parent 4054e83 commit 8fdae33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ tasks.register<JavaExec>("runViaProxy") {
3232
workingDir = file("run")
3333
jvmArgs = listOf("-DskipUpdateCheck")
3434

35+
if (System.getProperty("viaproxy.gui.autoStart") != null) {
36+
jvmArgs("-Dviaproxy.gui.autoStart")
37+
}
38+
3539
doFirst {
3640
val jarsDir = file("$workingDir/jars")
3741
jarsDir.mkdirs()

0 commit comments

Comments
 (0)