mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-16 23:33:31 +00:00
SEC-2963: Select Available Port for appengine
This commit is contained in:
parent
22aa91c8e1
commit
485fbdc1ee
@ -49,4 +49,14 @@ dependencies {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
project.tasks.appengineFunctionalTest.enabled = false
|
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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user