moved common JVM arguments for all builds to utils.gant

changed debug port to 5555 to avoid conflicts
This commit is contained in:
Alexey Kudravtsev
2010-09-06 12:51:27 +04:00
parent b000cd0572
commit a4e56c2ee1
2 changed files with 15 additions and 9 deletions
+2 -8
View File
@@ -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) }
+13 -1
View File
@@ -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"]
})