Renamed corda output JAR to corda.jar.

This commit is contained in:
Clinton Alexander 2016-08-24 16:28:28 +01:00
parent 70c057dfef
commit 4652872338

View File

@ -197,9 +197,9 @@ applicationDistribution.into("bin") {
fileMode = 0755 fileMode = 0755
} }
task createCapsule(type: FatCapsule, dependsOn: 'quasarScan') { task buildCordaJAR(type: FatCapsule, dependsOn: 'quasarScan') {
applicationClass 'com.r3corda.node.MainKt' applicationClass 'com.r3corda.node.MainKt'
archiveName 'corda.jar'
applicationSource = files(project.tasks.findByName('jar'), 'build/classes/main/CordaCaplet.class') applicationSource = files(project.tasks.findByName('jar'), 'build/classes/main/CordaCaplet.class')
capsuleManifest { capsuleManifest {
@ -211,30 +211,30 @@ task createCapsule(type: FatCapsule, dependsOn: 'quasarScan') {
} }
} }
task installTemplateNodes(dependsOn: 'createCapsule') << { task installTemplateNodes(dependsOn: 'buildCordaJAR') << {
copy { copy {
from createCapsule.outputs.getFiles() from buildCordaJAR.outputs.getFiles()
from 'config/dev/nameservernode.conf' from 'config/dev/nameservernode.conf'
into "${buildDir}/nodes/nameserver" into "${buildDir}/nodes/nameserver"
rename 'nameservernode.conf', 'node.conf' rename 'nameservernode.conf', 'node.conf'
} }
copy { copy {
from createCapsule.outputs.getFiles() from buildCordaJAR.outputs.getFiles()
from 'config/dev/generalnodea.conf' from 'config/dev/generalnodea.conf'
into "${buildDir}/nodes/nodea" into "${buildDir}/nodes/nodea"
rename 'generalnodea.conf', 'node.conf' rename 'generalnodea.conf', 'node.conf'
} }
copy { copy {
from createCapsule.outputs.getFiles() from buildCordaJAR.outputs.getFiles()
from 'config/dev/generalnodeb.conf' from 'config/dev/generalnodeb.conf'
into "${buildDir}/nodes/nodeb" into "${buildDir}/nodes/nodeb"
rename 'generalnodeb.conf', 'node.conf' rename 'generalnodeb.conf', 'node.conf'
} }
delete("${buildDir}/nodes/runnodes") delete("${buildDir}/nodes/runnodes")
def jarName = createCapsule.outputs.getFiles().getSingleFile().getName() def jarName = buildCordaJAR.outputs.getFiles().getSingleFile().getName()
copy { copy {
from "buildSrc/scripts/runnodes" from "buildSrc/scripts/runnodes"
filter { String line -> line.replace("JAR_NAME", jarName) } filter { String line -> line.replace("JAR_NAME", jarName) }