106 * Spawn a vm and feed it a property which sets the client's rmi 107 * hostname. 108 */ 109 public static void testProperty(String property, 110 String propertyValue, 111 String extraProp) 112 { 113 try { 114 String propOption = ""; 115 String equal = ""; 116 if (!property.equals("")) { 117 propOption = " -D"; 118 equal = "="; 119 } 120 121 // create a client to tell checkFQDN what its rmi name is. 122 JavaVM jvm = new JavaVM("CheckFQDNClient", 123 propOption + property + 124 equal + 125 propertyValue + extraProp + 126 " -XaddExports:java.rmi/sun.rmi.registry=ALL-UNNAMED" + 127 " -XaddExports:java.rmi/sun.rmi.server=ALL-UNNAMED" + 128 " -XaddExports:java.rmi/sun.rmi.transport=ALL-UNNAMED" + 129 " -XaddExports:java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED" + 130 " -Drmi.registry.port=" + 131 REGISTRY_PORT, 132 ""); 133 134 propertyBeingTested=property; 135 propertyBeingTestedValue=propertyValue; 136 137 if (jvm.execute() != 0) { 138 TestLibrary.bomb("Test failed, error in client."); 139 } 140 141 } catch (Exception e) { 142 TestLibrary.bomb(e); 143 } 144 } 145 146 CheckFQDN() throws RemoteException { } 147 148 /** 149 * Remote method to allow client vm to tell the main test what its | 106 * Spawn a vm and feed it a property which sets the client's rmi 107 * hostname. 108 */ 109 public static void testProperty(String property, 110 String propertyValue, 111 String extraProp) 112 { 113 try { 114 String propOption = ""; 115 String equal = ""; 116 if (!property.equals("")) { 117 propOption = " -D"; 118 equal = "="; 119 } 120 121 // create a client to tell checkFQDN what its rmi name is. 122 JavaVM jvm = new JavaVM("CheckFQDNClient", 123 propOption + property + 124 equal + 125 propertyValue + extraProp + 126 " --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED" + 127 " --add-exports=java.rmi/sun.rmi.server=ALL-UNNAMED" + 128 " --add-exports=java.rmi/sun.rmi.transport=ALL-UNNAMED" + 129 " --add-exports=java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED" + 130 " -Drmi.registry.port=" + 131 REGISTRY_PORT, 132 ""); 133 134 propertyBeingTested=property; 135 propertyBeingTestedValue=propertyValue; 136 137 if (jvm.execute() != 0) { 138 TestLibrary.bomb("Test failed, error in client."); 139 } 140 141 } catch (Exception e) { 142 TestLibrary.bomb(e); 143 } 144 } 145 146 CheckFQDN() throws RemoteException { } 147 148 /** 149 * Remote method to allow client vm to tell the main test what its |