mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
CORDA-742 PR #1951 Moved extension methods back.
This commit is contained in:
parent
92bbce711b
commit
ee3106fd5a
@ -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) }
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user