82 new String[] { "-Xmx32m" },
83 new String[] { },
84 runningPort
85 );
86 }
87
88 private static void runwith(
89 String[] params, // extra args
90 String[] props, // extra system properties
91 int port // port on which to communicate
92 )
93 throws Exception
94 {
95 TestLibrary.suggestSecurityManager(TestParams.defaultSecurityManager);
96
97 // make a "watcher" which listens on a pipe and searches for
98 // the debugExec line while teeing to System.err
99 DebugExecWatcher watcher = DebugExecWatcher.makeWithPipe();
100
101 RMID.removeLog();
102 RMID rmid = RMID.createRMID(watcher.otherEnd(), watcher.otherEnd(),
103 true, // debugExec turned on
104 true, port);
105
106 rmid.start();
107
108 // compile props
109 Properties p = new Properties();
110 p.put("java.security.policy", TestParams.defaultGroupPolicy);
111 p.put("java.security.manager", TestParams.defaultSecurityManager);
112 //p.put("java.rmi.server.logCalls", "true");
113 int i;
114 for (i = 0; i < props.length; i++) {
115 p.put(props[i].substring(0, props[i].indexOf('=')),
116 props[i].substring(props[i].indexOf('=')+1));
117 }
118
119 // create CommandEnvironment and ActivationGroupDesc
120 ActivationGroupDesc.CommandEnvironment cmdenv =
121 new ActivationGroupDesc.CommandEnvironment(
122 null,
|
82 new String[] { "-Xmx32m" },
83 new String[] { },
84 runningPort
85 );
86 }
87
88 private static void runwith(
89 String[] params, // extra args
90 String[] props, // extra system properties
91 int port // port on which to communicate
92 )
93 throws Exception
94 {
95 TestLibrary.suggestSecurityManager(TestParams.defaultSecurityManager);
96
97 // make a "watcher" which listens on a pipe and searches for
98 // the debugExec line while teeing to System.err
99 DebugExecWatcher watcher = DebugExecWatcher.makeWithPipe();
100
101 RMID.removeLog();
102 RMID rmid = RMID.createRMIDOnEphemeralPort(watcher.otherEnd(), watcher.otherEnd(),
103 true, // debugExec turned on
104 true, port);
105
106 rmid.start();
107
108 // compile props
109 Properties p = new Properties();
110 p.put("java.security.policy", TestParams.defaultGroupPolicy);
111 p.put("java.security.manager", TestParams.defaultSecurityManager);
112 //p.put("java.rmi.server.logCalls", "true");
113 int i;
114 for (i = 0; i < props.length; i++) {
115 p.put(props[i].substring(0, props[i].indexOf('=')),
116 props[i].substring(props[i].indexOf('=')+1));
117 }
118
119 // create CommandEnvironment and ActivationGroupDesc
120 ActivationGroupDesc.CommandEnvironment cmdenv =
121 new ActivationGroupDesc.CommandEnvironment(
122 null,
|