Changeset 3de1fa2 for core


Ignore:
Timestamp:
Jun 30, 2018 1:07:41 PM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
0b01cc5
Parents:
d8cc2a3
Message:

Minor change in routerconsole and core code for making I2P work great
in "portable" mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/I2PAppContext.java

    rd8cc2a3 r3de1fa2  
    323323            _appDir = _routerDir;
    324324        }
    325         /******
    326         (new Exception("Initialized by")).printStackTrace();
    327         System.err.println("Base directory:   " + _baseDir.getAbsolutePath());
    328         System.err.println("Config directory: " + _configDir.getAbsolutePath());
    329         System.err.println("Router directory: " + _routerDir.getAbsolutePath());
    330         System.err.println("App directory:    " + _appDir.getAbsolutePath());
    331         System.err.println("Log directory:    " + _logDir.getAbsolutePath());
    332         System.err.println("PID directory:    " + _pidDir.getAbsolutePath());
    333         System.err.println("Temp directory:   " + getTempDir().getAbsolutePath());
    334         ******/
     325        String isPortableStr = System.getProperty("i2p.dir.portableMode");
     326        boolean isPortable = Boolean.parseBoolean(isPortableStr);
     327        if (isPortable) {
     328            // In portable we like debug information :)
     329            //(new Exception("Initialized by")).printStackTrace();
     330            System.err.println("Base directory:   " + _baseDir.getAbsolutePath());
     331            System.err.println("Config directory: " + _configDir.getAbsolutePath());
     332            System.err.println("Router directory: " + _routerDir.getAbsolutePath());
     333            System.err.println("App directory:    " + _appDir.getAbsolutePath());
     334            System.err.println("Log directory:    " + _logDir.getAbsolutePath());
     335            System.err.println("PID directory:    " + _pidDir.getAbsolutePath());
     336            System.err.println("Temp directory:   " + getTempDir().getAbsolutePath());
     337        }
    335338
    336339        if (doInit) {
Note: See TracChangeset for help on using the changeset viewer.