@@ -195,12 +195,10 @@ tasks {
195
195
serverDir.deleteRecursively()
196
196
unzipTo(serverDir, deployDir.resolve(" software-challenge-server.zip" ))
197
197
198
- println (" Testing TestClient..." )
199
- val testClient =
200
- ProcessBuilder (
201
- (project(" :test-client" ).getTasksByName(" createStartScripts" , false ).single() as ScriptsTask ).content.split(' ' ) +
202
- arrayOf(" --start-server" , " --tests" , testClientGames.toString(), " --port" , " 13055" )
203
- ).directory(serverDir).start()
198
+ val command = (project(" :test-client" ).getTasksByName(" createStartScripts" , false ).single() as ScriptsTask ).content.split(' ' ) +
199
+ arrayOf(" --start-server" , " --tests" , testClientGames.toString(), " --port" , " 13055" )
200
+ println (" Testing TestClient with $command " )
201
+ val testClient = ProcessBuilder (command).directory(serverDir).start()
204
202
if (testClient.waitFor(maxGameLength * testClientGames, TimeUnit .SECONDS )) {
205
203
val value = testClient.exitValue()
206
204
// TODO check whether TestClient actually played games
@@ -306,11 +304,6 @@ allprojects {
306
304
manifest.attributes(
307
305
" Main-Class" to project.extensions.getByType<JavaApplication >().mainClass.get(),
308
306
" Add-Opens" to arrayOf(
309
- " javafx.controls/javafx.scene.control.skin" ,
310
- " javafx.controls/javafx.scene.control" ,
311
- " javafx.graphics/javafx.scene" ,
312
- // For accessing InputMap used in RangeSliderBehavior
313
- " javafx.controls/com.sun.javafx.scene.control.inputmap" ,
314
307
// Expose list internals for xstream conversion: https://github.com/x-stream/xstream/issues/253
315
308
" java.base/java.util" ).joinToString(" " )
316
309
)
0 commit comments