Changeset 5bef86f for router


Ignore:
Timestamp:
Apr 10, 2018 1:52:46 PM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
7ae8381, f00ac6a
Parents:
4d23e1d
Message:

Adding initial support to the router for a more slim/portable runtime environment.

Location:
router/java/src/net/i2p/router
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    r4d23e1d r5bef86f  
    4444import net.i2p.router.networkdb.kademlia.FloodfillNetworkDatabaseFacade;
    4545import net.i2p.router.startup.CreateRouterInfoJob;
     46import net.i2p.router.startup.PortableWorkingDir;
    4647import net.i2p.router.startup.StartupJob;
    4748import net.i2p.router.startup.WorkingDir;
     
    271272        String migrate = System.getProperty("i2p.dir.migrate");
    272273        boolean migrateFiles = Boolean.parseBoolean(migrate);
    273         String userDir = WorkingDir.getWorkingDir(envProps, migrateFiles);
     274
     275
     276        String isPortableStr = System.getProperty("i2p.dir.portableMode");
     277        boolean isPortable = Boolean.parseBoolean(isPortableStr);
     278        String userDir = (!isPortable) ? WorkingDir.getWorkingDir(envProps, migrateFiles) : PortableWorkingDir.getWorkingDir(envProps, migrateFiles);
    274279
    275280        // Use the router.config file specified in the router.configLocation property
Note: See TracChangeset for help on using the changeset viewer.