[freenet-cvs] r11997 - trunk/freenet/src/freenet/node
nextgens at freenetproject.org
nextgens at freenetproject.org
Tue Mar 6 17:22:43 UTC 2007
Author: nextgens
Date: 2007-03-06 17:22:42 +0000 (Tue, 06 Mar 2007)
New Revision: 11997
Modified:
trunk/freenet/src/freenet/node/Node.java
Log:
revert r11834 : see bug #1092 for details
Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java 2007-03-06 16:53:37 UTC (rev 11996)
+++ trunk/freenet/src/freenet/node/Node.java 2007-03-06 17:22:42 UTC (rev 11997)
@@ -403,8 +403,6 @@
public static final short DEFAULT_MAX_HTL = (short)10;
public static final int DEFAULT_SWAP_INTERVAL = 2000;
private short maxHTL;
- private String homeDir;
- private final String systemDefaultHomeDir = System.getProperty("user.home");
public static final int EXIT_STORE_FILE_NOT_FOUND = 1;
public static final int EXIT_STORE_IOEXCEPTION = 2;
public static final int EXIT_STORE_OTHER = 3;
@@ -850,29 +848,6 @@
maxHTL = nodeConfig.getShort("maxHTL");
- nodeConfig.register("homeDir", "", sortOrder++, true, false, "Freenet-used home directory", "Freenet used home directory (i.e. where to put Onion FEC library files)(leave empty for user's default home directory (recommended))",
- new StringCallback() {
-
- public String get() {
- return homeDir;
- }
-
- public void set(String val) throws InvalidConfigValueException {
- if(homeDir == null) throw new InvalidConfigValueException("Tried setting the home directory to null");
- homeDir = val;
- if(!homeDir.equals("")) {
- System.setProperty("user.home", homeDir);
- } else {
- System.setProperty("user.home", systemDefaultHomeDir);
- }
- }
- });
-
- homeDir = nodeConfig.getString("homeDir");
- if(!homeDir.equals("")) {
- System.setProperty("user.home", homeDir);
- }
-
// FIXME maybe these should persist? They need to be private.
decrementAtMax = random.nextDouble() <= DECREMENT_AT_MAX_PROB;
decrementAtMin = random.nextDouble() <= DECREMENT_AT_MIN_PROB;
More information about the cvs
mailing list