mirror of
https://github.com/corda/corda.git
synced 2025-02-02 01:08:09 +00:00
Fix a bug in the trader-demo gradle that prevented the sample from working when run from the command line.
This commit is contained in:
parent
179975fe2b
commit
0a6cdb77c3
@ -82,10 +82,12 @@ dependencies {
|
||||
|
||||
task deployNodes(type: net.corda.plugins.Cordform, dependsOn: [':install']) {
|
||||
directory "./build/nodes"
|
||||
networkMap "Controller"
|
||||
// This name "Notary" is hard-coded into TraderDemoClientApi so if you change it here, change it there too.
|
||||
// In this demo the node that runs a standalone notary also acts as the network map server.
|
||||
networkMap "Notary"
|
||||
node {
|
||||
name "Controller"
|
||||
dirName "controller"
|
||||
name "Notary"
|
||||
dirName "notary"
|
||||
nearestCity "London"
|
||||
advertisedServices = ["corda.notary.validating"]
|
||||
artemisPort 10002
|
||||
@ -137,3 +139,17 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task runBuyer(type: JavaExec) {
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
main = 'net.corda.traderdemo.TraderDemoKt'
|
||||
args '--role'
|
||||
args 'BUYER'
|
||||
}
|
||||
|
||||
task runSeller(type: JavaExec) {
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
main = 'net.corda.traderdemo.TraderDemoKt'
|
||||
args '--role'
|
||||
args 'SELLER'
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user