diff options
Diffstat (limited to 'src/Probe.java')
-rw-r--r-- | src/Probe.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Probe.java b/src/Probe.java index 0b8a73e..d560298 100644 --- a/src/Probe.java +++ b/src/Probe.java @@ -10,6 +10,10 @@ import gnu.getopt.Getopt; * * * Changelog: + * 1.2.2 + * - changes setProperty to a backward-compatible construct + * - now uses the bus.domains(String domain) in order to display the domain + * list * 1.2.1 * - new -t switch to print the date for each ivy message * - now displays the correct domain list @@ -51,7 +55,9 @@ class Probe implements IvyApplicationListener, IvyMessageListener, Runnable { timestamp=true; break; case 'd': - System.setProperty("IVY_DEBUG","yes"); + Properties sysProp = System.getProperties(); + sysProp.put("IVY_DEBUG","yes"); + //System.setProperty("IVY_DEBUG","yes"); break; case 'h': default: @@ -64,12 +70,7 @@ class Probe implements IvyApplicationListener, IvyMessageListener, Runnable { System.out.println("you want to subscribe to " + args[i]); bus.bindMsg(args[i],p); } - String s = "broadcasting on "; - Ivy.Domain[] d = bus.parseDomains(domain); - for (int index=0;index<d.length;index++) { - s+=d[index].getDomainaddr()+":"+d[index].getPort()+" "; - } - System.out.println(s); + System.out.println(bus.domains(domain)); bus.start(domain); p.start(bus); } |