mirror of
https://github.com/corda/corda.git
synced 2025-02-01 00:45:59 +00:00
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:
parent
561ac60b95
commit
c626f8b306
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user