CORDA-742 PR #1951 Moved extension methods back.

This commit is contained in:
Mat Rizzo 2017-10-26 16:49:15 +01:00 committed by mat-rizzo-r3
parent 92bbce711b
commit ee3106fd5a
2 changed files with 4 additions and 5 deletions

View File

@ -224,6 +224,6 @@ open class Cordform : DefaultTask() {
}
}
}
private fun logFile(): Path = this.logDirectory().resolve("generate-info.log")
private fun ProcessBuilder.addEnvironment(key: String, value: String) = this.apply { environment().put(key, value) }
}

View File

@ -24,10 +24,9 @@ class Node(private val project: Project) : CordformNode() {
val capsuleCacheDir: String = "./cache"
}
fun fullPath(): Path = project.projectDir.toPath().resolve(this.nodeDir.toPath())
fun logDirectory(): Path = this.fullPath().resolve("logs")
fun makeLogDirectory() = Files.createDirectories(this.logDirectory())
fun logFile(): Path = this.logDirectory().resolve("generate-info.log")
fun fullPath(): Path = project.projectDir.toPath().resolve(nodeDir.toPath())
fun logDirectory(): Path = fullPath().resolve("logs")
fun makeLogDirectory() = Files.createDirectories(logDirectory())
/**
* Set the list of CorDapps to install to the plugins directory. Each cordapp is a fully qualified Maven