From 7317c090cc100456c735037f9c9f26cd4e042ce1 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 29 Jul 2015 09:57:57 -0500 Subject: [PATCH] SEC-2963: Disable appengineRun if contains functional tests --- samples/gae-xml/gae.gradle | 12 +----------- samples/gae-xml/pom.xml | 10 +++++----- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/samples/gae-xml/gae.gradle b/samples/gae-xml/gae.gradle index cb8972187c..6caf0a337c 100644 --- a/samples/gae-xml/gae.gradle +++ b/samples/gae-xml/gae.gradle @@ -49,14 +49,4 @@ dependencies { } -appengine.httpPort = reservePorts(1)[0] - -def reservePorts(int count) { - def sockets = [] - for(int i in 1..count) { - sockets << new ServerSocket(0) - } - def result = sockets*.localPort - sockets*.close() - result -} \ No newline at end of file +appengineRun.onlyIf { !gradle.taskGraph.hasTask(appengineFunctionalTest) } \ No newline at end of file diff --git a/samples/gae-xml/pom.xml b/samples/gae-xml/pom.xml index 7cc1a355f7..0617e304a8 100644 --- a/samples/gae-xml/pom.xml +++ b/samples/gae-xml/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.springframework.security spring-security-samples-gae-xml - 4.0.2.CI-SNAPSHOT + 4.0.3.CI-SNAPSHOT war spring-security-samples-gae-xml spring-security-samples-gae-xml @@ -65,13 +65,13 @@ org.springframework.security spring-security-core - 4.0.2.CI-SNAPSHOT + 4.0.3.CI-SNAPSHOT compile org.springframework.security spring-security-web - 4.0.2.CI-SNAPSHOT + 4.0.3.CI-SNAPSHOT compile @@ -139,13 +139,13 @@ org.springframework.security spring-security-config - 4.0.2.CI-SNAPSHOT + 4.0.3.CI-SNAPSHOT runtime org.springframework.security spring-security-taglibs - 4.0.2.CI-SNAPSHOT + 4.0.3.CI-SNAPSHOT runtime