From acaedb9d66cfab0329c49a9120938143b7c15487 Mon Sep 17 00:00:00 2001 From: jestin Date: Mon, 30 Dec 2002 13:07:11 +0000 Subject: use of the old Vector API and old System.getProperties in order to allow the classes to be compiled with a 1.1.7A jdk --- src/Probe.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/Probe.java') 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