Make the corda.jar executable on UNIX. When run in this way, it eliminates the overhead of a second JVM.

This commit is contained in:
Mike Hearn 2017-03-05 15:38:50 +01:00
parent 561ac60b95
commit c626f8b306

View File

@ -73,6 +73,11 @@ task buildCordaJAR(type: FatCapsule) {
jvmArgs = ['-Xmx200m', '-XX:+UseG1GC']
}
// Make the resulting JAR file directly executable on UNIX by prepending a shell script to it.
// This lets you run the file like so: ./corda.jar
// Other than being slightly less typing, this has one big advantage: Ctrl-C works properly in the terminal.
reallyExecutable { trampolining() }
manifest {
attributes('Corda-Version': corda_version)
}