Can now run nodes via a batch file.

This commit is contained in:
Clinton Alexander 2016-11-17 18:21:45 +00:00
parent 01adc816a1
commit b469cd5382
2 changed files with 8 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class Cordform extends DefaultTask {
protected void installRunScript() {
project.copy {
from Cordformation.getPluginFile(project, "net/corda/plugins/runnodes")
from Cordformation.getPluginFile(project, "net/corda/plugins/runnodes.bat")
filter { String line -> line.replace("JAR_NAME", Node.JAR_NAME) }
// Replaces end of line with lf to avoid issues with the bash interpreter and Windows style line endings.
filter(FixCrLfFilter.class, eol: FixCrLfFilter.CrLf.newInstance("lf"))

View File

@ -0,0 +1,7 @@
@echo off
FOR /R ".\" %%G in (.) DO (
Pushd %%G
start java -jar corda.jar
Popd
)