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/IvyDaemon.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
(limited to 'src/IvyDaemon.java')
diff --git a/src/IvyDaemon.java b/src/IvyDaemon.java
index 13b6f0c..72c83ec 100644
--- a/src/IvyDaemon.java
+++ b/src/IvyDaemon.java
@@ -4,9 +4,9 @@
* @author http://www.tls.cena.fr/products/ivy/
*/
package fr.dgac.ivy ;
-
import java.io.*;
import java.net.*;
+import java.util.Properties ;
import gnu.getopt.Getopt;
/**
@@ -19,6 +19,8 @@ import gnu.getopt.Getopt;
* @author http://www.tls.cena.fr/products/ivy/
*
* changelog:
+ * 1.2.2
+ * changes the setProperty to a backward compatible construct
* 1.0.12
* - class goes public access !
*/
@@ -39,7 +41,9 @@ public class IvyDaemon implements Runnable {
domain=opt.getOptarg();
break;
case 'd':
- System.setProperty("IVY_DEBUG","yes");
+ Properties sysProp = System.getProperties();
+ sysProp.put("IVY_DEBUG","yes");
+ //System.setProperty("IVY_DEBUG","yes");
break;
case 'p':
String s="";
--
cgit v1.1