From d74dc7aaf8f9c23ae015b20af8988ad4bc2ae448 Mon Sep 17 00:00:00 2001 From: Dave McKnight Date: Wed, 22 Oct 2014 12:43:27 -0400 Subject: [PATCH] [448400] [dstore] automatically fallback to exec(hostname) if no hostname detected and print message if needed --- .../eclipse/dstore/internal/core/server/ServerAttributes.java | 1 + 1 file changed, 1 insertion(+) diff --git a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/server/ServerAttributes.java b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/server/ServerAttributes.java index e4dd6438247..ce7fdc69b6c 100644 --- a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/server/ServerAttributes.java +++ b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/internal/core/server/ServerAttributes.java @@ -96,6 +96,7 @@ public class ServerAttributes extends DataStoreAttributes } if (hostname == null){ // fall back to reading hostname from shell + System.err.println("The server can not resolve the hostname so falling back to reading hostname from the console."); try { Process p = Runtime.getRuntime().exec("hostname"); //$NON-NLS-1$ InputStream inStream = p.getInputStream();