From 5109115b7331d04f1eb876c356658fb16db50dde Mon Sep 17 00:00:00 2001 From: Kannan J Date: Wed, 4 Dec 2024 10:16:04 +0000 Subject: [PATCH] Fixes. --- examples/example-tls/build.gradle | 4 +++- .../examples/helloworldtls/HelloWorldClientTls.java | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/example-tls/build.gradle b/examples/example-tls/build.gradle index f46b2919a5f..9248749ea5e 100644 --- a/examples/example-tls/build.gradle +++ b/examples/example-tls/build.gradle @@ -75,6 +75,8 @@ application { applicationDistribution.into('bin') { from(helloWorldTlsServer) from(helloWorldTlsClient) - fileMode = 0755 + filePermissions { + unix(0755) + } } } diff --git a/examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java b/examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java index 9fa75cb2cb0..6239318de21 100644 --- a/examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java +++ b/examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java @@ -68,8 +68,8 @@ public static void main(String[] args) throws Exception { if (args.length < 2 || args.length == 4 || args.length > 5) { System.out.println("USAGE: HelloWorldClientTls host port [trustCertCollectionFilePath " + - "[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " + - "clientPrivateKeyFilePath are only needed if mutual auth is desired."); + "[clientCertChainFilePath clientPrivateKeyFilePath]]\n Note: clientCertChainFilePath and " + + "clientPrivateKeyFilePath are only needed if mutual auth is desired."); System.exit(0); } @@ -88,9 +88,9 @@ public static void main(String[] args) throws Exception { String host = args[0]; int port = Integer.parseInt(args[1]); ManagedChannel channel = Grpc.newChannelBuilderForAddress(host, port, tlsBuilder.build()) - /* Only for using provided test certs. */ - .overrideAuthority("foo.test.google.fr") - .build(); + /* Only for using provided test certs. */ + .overrideAuthority("foo.test.google.fr") + .build(); try { HelloWorldClientTls client = new HelloWorldClientTls(channel); client.greet(host);