comparison src/alice/test/codesegment/remote/beta/TestRemoteConfig.java @ 136:bb023f060f2f working

add different version test
author sugi
date Sun, 19 Aug 2012 21:31:21 +0900
parents
children
comparison
equal deleted inserted replaced
135:2f401fd70311 136:bb023f060f2f
1 package alice.test.codesegment.remote.beta;
2
3 import alice.daemon.Config;
4
5 public class TestRemoteConfig extends Config {
6
7 public String hostname;
8 public int connectPort = 10000;
9 public String key;
10
11 public TestRemoteConfig(String[] args) {
12 super(args);
13 for (int i = 0; i< args.length; i++) {
14 if ("-h".equals(args[i])) {
15 hostname = args[++i];
16 } else if ("-cp".equals(args[i])) {
17 connectPort = Integer.parseInt(args[++i]);
18 } else if ("-key".equals(args[i])) {
19 key = args[++i];
20 }
21 }
22 }
23
24 }