[Remoterengine-commits] r177 - pkg/RemoteREngine.test/inst/java_src/src/org/rosuda/REngine/remote/common

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Sep 22 12:57:48 CEST 2009


Author: ian_long
Date: 2009-09-22 12:57:47 +0200 (Tue, 22 Sep 2009)
New Revision: 177

Modified:
   pkg/RemoteREngine.test/inst/java_src/src/org/rosuda/REngine/remote/common/RemoteREngineTestBase.java
Log:
Ensure output only says it has connected if the connection is okay

Modified: pkg/RemoteREngine.test/inst/java_src/src/org/rosuda/REngine/remote/common/RemoteREngineTestBase.java
===================================================================
--- pkg/RemoteREngine.test/inst/java_src/src/org/rosuda/REngine/remote/common/RemoteREngineTestBase.java	2009-09-21 15:17:33 UTC (rev 176)
+++ pkg/RemoteREngine.test/inst/java_src/src/org/rosuda/REngine/remote/common/RemoteREngineTestBase.java	2009-09-22 10:57:47 UTC (rev 177)
@@ -53,7 +53,8 @@
 				System.setSecurityManager(new SecurityManager());
 			}
 			r = new RemoteREngine( name , RemoteREngineConstants.RMIHOSTNAME , registryPort );
-			System.out.println("Connected to " + name + " via " + RemoteREngineConstants.RMIHOSTNAME + 
+			 
+			System.out.println(((r != null) ? "Connected to " : "Failed to connect to ") + name + " via " + RemoteREngineConstants.RMIHOSTNAME + 
 					" registry on port " + registryPort);
 		} catch( Exception e ){
 			System.err.println( "cannot connect to R engine" ) ;



More information about the Remoterengine-commits mailing list