Skip to content

Commit 2b8b151

Browse files
committed
Add stdio connection to PDE and stub test for code jars
1 parent d5e48e4 commit 2b8b151

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎java/gradle/src/main/kotlin/ProcessingPlugin.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class ProcessingPlugin @Inject constructor(private val objectFactory: ObjectFact
148148
.filterKeys { it.startsWith("processing") }
149149
.forEach { (key, value) -> task.systemProperty(key, value) }
150150

151+
// Connect the stdio to the PDE if ports are specified
151152
if(logPort != null) task.standardOutput = Socket("localhost", logPort.toInt()).outputStream
152153
if(errPort != null) task.errorOutput = Socket("localhost", errPort.toInt()).outputStream
153154

‎java/gradle/src/test/kotlin/ProcessingPluginTest.kt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ class ProcessingPluginTest{
270270
}
271271
}
272272

273+
@Test
274+
fun testUseCodeJar(){
275+
// TODO: test if adding jars to the code folder works
276+
}
277+
273278
fun isDebuggerAttached(): Boolean {
274279
val runtimeMxBean = ManagementFactory.getRuntimeMXBean()
275280
val inputArguments = runtimeMxBean.inputArguments

0 commit comments

Comments
 (0)