[Webfunds-commits] java/webfunds/client/util UpgradesManager.java
Ian Grigg
iang@cypherpunks.ai
Thu, 12 Apr 2001 01:10:13 -0400 (AST)
iang 01/04/12 01:10:12
Modified: webfunds/client/contracts ChangeContractStore.java
webfunds/client/util UpgradesManager.java
Log:
now uses Log class
Revision Changes Path
1.5 +5 -1 java/webfunds/client/contracts/ChangeContractStore.java
Index: ChangeContractStore.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/contracts/ChangeContractStore.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ChangeContractStore.java 2001/02/17 20:36:37 1.4
+++ ChangeContractStore.java 2001/04/12 05:10:10 1.5
@@ -1,5 +1,5 @@
/*
- * $Id: ChangeContractStore.java,v 1.4 2001/02/17 20:36:37 gelderen Exp $
+ * $Id: ChangeContractStore.java,v 1.5 2001/04/12 05:10:10 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -12,6 +12,8 @@
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;
+import webfunds.util.Log;
+
import webfunds.sox.ItemId;
import webfunds.ricardian.DirContractStore;
@@ -34,6 +36,8 @@
public ChangeContractStore(File storedir)
throws ContractDirectoryException { super(storedir); }
public ChangeContractStore(File dir, PrintWriter bug)
+ throws ContractDirectoryException { super(dir, new Log(bug));}
+ public ChangeContractStore(File dir, Log bug)
throws ContractDirectoryException { super(dir, bug); }
private Core c;
1.7 +4 -3 java/webfunds/client/util/UpgradesManager.java
Index: UpgradesManager.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/util/UpgradesManager.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- UpgradesManager.java 2001/03/24 16:17:52 1.6
+++ UpgradesManager.java 2001/04/12 05:10:11 1.7
@@ -1,5 +1,5 @@
/*
- * $Id: UpgradesManager.java,v 1.6 2001/03/24 16:17:52 iang Exp $
+ * $Id: UpgradesManager.java,v 1.7 2001/04/12 05:10:11 iang Exp $
*
* Copyright (c) 2000 Systemics Inc on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -17,6 +17,7 @@
import webfunds.sox.*;
import webfunds.util.Panic;
+import webfunds.util.Log;
import webfunds.comms.RawHttp;
import webfunds.comms.RawException;
@@ -771,9 +772,9 @@
dir = args[0];
UpgradesManager cb = new UpgradesManager();
- cb.bug = new PrintWriter(System.err, true);
+ cb.bug = new Log();
cb.setUInterface(new UInterfaceImpl());
- cb.setContractStore(new ChangeContractStore(new File(dir)));
+ cb.setContractStore(new ChangeContractStore(new File(dir), bug));
cb.init();
cb.start();
}