mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
moved common JVM arguments for all builds to utils.gant
changed debug port to 5555 to avoid conflicts
This commit is contained in:
@@ -23,21 +23,15 @@ target('default': 'The default target') {
|
||||
depends(compile)
|
||||
|
||||
ant.junit(fork: "yes", showoutput: "true") {
|
||||
jvmarg (value: "-ea")
|
||||
pass("idea.test.group")
|
||||
pass("idea.test.patterns")
|
||||
pass("idea.fast.only")
|
||||
pass("teamcity.build.tempDir")
|
||||
pass("teamcity.tests.recentlyFailedTests.file")
|
||||
jvmarg (value: "-Didea.platform.prefix=Idea")
|
||||
jvmarg (value: "-Didea.home.path=$home")
|
||||
jvmarg (value: "-Xbootclasspath/p:${boot.output}")
|
||||
jvmarg (value: "-Djava.system.class.loader=com.intellij.util.lang.UrlClassLoader")
|
||||
jvmarg (value: "-XX:+HeapDumpOnOutOfMemoryError")
|
||||
jvmarg (value: "-Didea.system.path=${p("teamcity.build.tempDir")}/system")
|
||||
jvmarg (value: "-Didea.config.path=${p("teamcity.build.tempDir")}/config")
|
||||
jvmarg (value: "-Xdebug")
|
||||
jvmarg (value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005")
|
||||
|
||||
commonJvmArgs().each { jvmarg(value: it) }
|
||||
|
||||
if (isDefined("jvm_args")) {
|
||||
jvm_args.each { jvmarg(value: it) }
|
||||
|
||||
@@ -95,4 +95,16 @@ binding.setVariable("notifyArtifactBuilt", { String artifactPath ->
|
||||
}
|
||||
def relativePath = artifactPath.substring(home.length())
|
||||
project.info("##teamcity[publishArtifacts '$relativePath']")
|
||||
})
|
||||
})
|
||||
|
||||
binding.setVariable("commonJvmArgs", {
|
||||
return [
|
||||
"-ea",
|
||||
"-Didea.home.path=$home",
|
||||
"-Xbootclasspath/p:${boot.output}",
|
||||
"-XX:+HeapDumpOnOutOfMemoryError",
|
||||
"-Didea.system.path=${p("teamcity.build.tempDir")}/system",
|
||||
"-Didea.config.path=${p("teamcity.build.tempDir")}/config",
|
||||
"-Xdebug",
|
||||
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555"]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user