aboutsummaryrefslogtreecommitdiff
path: root/src/IvyDaemon.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/IvyDaemon.java')
-rw-r--r--src/IvyDaemon.java8
1 files changed, 6 insertions, 2 deletions
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 <a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a>
*/
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 <a href="http://www.tls.cena.fr/products/ivy/">http://www.tls.cena.fr/products/ivy/</a>
*
* 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="";