CORDA-742 Test capsule cache directory

This commit is contained in:
Mat Rizzo 2017-10-25 16:30:21 +01:00 committed by mat-rizzo-r3
parent 4e07add161
commit 3bcf526f47

View File

@ -176,7 +176,7 @@ open class Cordform : DefaultTask() {
} }
private fun buildNodeProcess(node: Node, logDir: File): Process { private fun buildNodeProcess(node: Node, logDir: File): Process {
return ProcessBuilder("java", "-Dcapsule.log=verbose", "-DCAPSULE_CACHE_DIR=./cache", "-jar", Node.nodeJarName, "--just-generate-node-info") return ProcessBuilder("java", "-Dcapsule.log=verbose", "-DCAPSULE_CACHE_DIR=`pwd`/cache", "-jar", Node.nodeJarName, "--just-generate-node-info")
.directory(fullNodePath(node).toFile()) .directory(fullNodePath(node).toFile())
.redirectErrorStream(true) .redirectErrorStream(true)
// InheritIO causes hangs on windows due the gradle buffer also not being flushed. // InheritIO causes hangs on windows due the gradle buffer also not being flushed.