From f501df2315ecf9c013b494737b0687fe24b7eb04 Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 20 Jul 2017 13:45:17 -0700 Subject: [PATCH] Refactor the GemFireServer Groovy Plugin to log debug messages to System.err. Change process?.destroyForcibly() to process?.destroy(). --- buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy b/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy index 775c980..410a850 100644 --- a/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy +++ b/buildSrc/src/main/groovy/build/GemFireServerPlugin.groovy @@ -14,7 +14,8 @@ class GemFireServerPlugin implements Plugin { project.tasks.integrationTest.doLast { println 'Stopping GemFire Server...' - project.tasks.gemfireServer.process?.destroyForcibly() + project.tasks.gemfireServer.process?.destroy() +// project.tasks.gemfireServer.process?.destroyForcibly() } project.tasks.prepareAppServerForIntegrationTests { @@ -47,8 +48,8 @@ class GemFireServerPlugin implements Plugin { port = availablePort() println "Starting GemFire Server on port [$port]..." - def out = debug ? System.out : new StringBuilder() - def err = debug ? System.out : new StringBuilder() + def out = debug ? System.err : new StringBuilder() + def err = debug ? System.err : new StringBuilder() String classpath = project.sourceSets.main.runtimeClasspath.collect { it }.join(File.pathSeparator) String gemfireLogLevel = System.getProperty('spring.session.data.gemfire.log-level', 'warning')