examples: exporting the io.grpc.examples.manualflowcontrol client & server to the example bin output folder. This commit improves gRPC to quickly find out this example exists, instead of having to go through the source code.

This commit is contained in:
Joris Scharp 2021-04-30 15:18:46 +02:00 committed by Eric Anderson
parent 4a339e41ba
commit f0c9ae26d7
1 changed files with 16 additions and 0 deletions

View File

@ -126,6 +126,20 @@ task compressingHelloWorldClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}
task manualFlowControlClient(type: CreateStartScripts) {
mainClassName = 'io.grpc.examples.manualflowcontrol.ManualFlowControlClient'
applicationName = 'manual-flow-control-client'
outputDir = new File(project.buildDir, 'tmp')
classpath = startScripts.classpath
}
task manualFlowControlServer(type: CreateStartScripts) {
mainClassName = 'io.grpc.examples.manualflowcontrol.ManualFlowControlServer'
applicationName = 'manual-flow-control-server'
outputDir = new File(project.buildDir, 'tmp')
classpath = startScripts.classpath
}
applicationDistribution.into('bin') {
from(routeGuideServer)
from(routeGuideClient)
@ -136,5 +150,7 @@ applicationDistribution.into('bin') {
from(retryingHelloWorldClient)
from(retryingHelloWorldServer)
from(compressingHelloWorldClient)
from(manualFlowControlClient)
from(manualFlowControlServer)
fileMode = 0755
}