From 8fe055ee91776c90c5f1b37de12788bb83bc2c94 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 21 Apr 2016 23:11:15 -0800 Subject: [PATCH] Refactor client. --- src/main/kotlin/com/beust/kobalt/app/remote/KobaltClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltClient.kt b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltClient.kt index b2ab98cb..3b2864ee 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltClient.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltClient.kt @@ -25,9 +25,9 @@ public class KobaltClient @Inject constructor() : Runnable { try { val socket = Socket("localhost", portNumber) outgoing = PrintWriter(socket.outputStream, true) - val testBuildfile = Paths.get(SystemProperties.homeDir, "java/testng/kobalt/src/Build.kt") + val testBuildfile = Paths.get(SystemProperties.homeDir, "kotlin/klaxon/kobalt/src/Build.kt") .toFile().absolutePath - val c : String = "{ \"name\":\"getDependencies\", \"buildFile\": \"$testBuildfile\"}" + val c : String = """{ "name": "getDependencies", "buildFile": "$testBuildfile"}""" outgoing!!.println(c) val ins = BufferedReader(InputStreamReader(socket.inputStream)) var line = ins.readLine()