1
1
import gg.jte.*
2
2
import org.gradle.api.tasks.testing.logging.*
3
+ import org.gradle.internal.os.OperatingSystem
3
4
import org.jetbrains.dokka.gradle.*
4
5
import org.jetbrains.kotlin.config.*
5
6
import org.jetbrains.kotlin.gradle.tasks.*
@@ -42,7 +43,7 @@ val appMainClass: String by project
42
43
application {
43
44
mainClass.set(appMainClass)
44
45
45
- val tmp = " /tmp/ " // "${System.getProperty("java.io.tmpdir")}${File.pathSeparator} "
46
+ val tmp = if ( OperatingSystem .current().isWindows) " c:/TEMP " else " /tmp "
46
47
applicationDefaultJvmArgs + = listOf (
47
48
" --show-version" ,
48
49
" --enable-preview" ,
@@ -51,12 +52,12 @@ application {
51
52
" -Xmx128M" ,
52
53
" -XX:+PrintCommandLineFlags" ,
53
54
" -XX:+UseZGC" ,
54
- " -Xlog:gc*:${ tmp} $name -gc.log" ,
55
- " -XX:StartFlightRecording:filename=${ tmp} $name .jfr,settings=default.jfc,name=$name ,maxsize=100m,dumponexit=true" ,
55
+ " -Xlog:gc*:\" $ tmp/ $name -gc-%p-%t .log\" :time,uptime,level,tid,tags:filecount=5,filesize=10m " ,
56
+ " -XX:StartFlightRecording:filename=$tmp / $name .jfr,settings=default.jfc,name=$name ,maxsize=100m,dumponexit=true" ,
56
57
" -XX:FlightRecorderOptions:stackdepth=128" ,
57
58
" -XX:+HeapDumpOnOutOfMemoryError" ,
58
- " -XX:HeapDumpPath=${ tmp} $name .hprof" ,
59
- " -XX:ErrorFile=${ tmp} java-error- $name -%p.log" ,
59
+ " -XX:HeapDumpPath=$tmp / $name -%p .hprof" ,
60
+ " -XX:ErrorFile=$tmp / $name -hs-err -%p.log" ,
60
61
" -Dfile.encoding=UTF-8" ,
61
62
" -Djava.awt.headless=true" ,
62
63
" -Djdk.attach.allowAttachSelf=true" ,
0 commit comments