Changeset 4d00534


Ignore:
Timestamp:
Aug 6, 2009 6:59:06 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f188e02a
Parents:
c65a978
Message:
  • I2PTunnel:
    • Move the privkey files from the app dir to the config dir, in preparation for splitting the two dirs by default
Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnel.java

    rc65a978 r4d00534  
    374374            privKeyFile = new File(args[2]);
    375375            if (!privKeyFile.isAbsolute())
    376                 privKeyFile = new File(_context.getAppDir(), args[2]);
     376                privKeyFile = new File(_context.getConfigDir(), args[2]);
    377377            if (!privKeyFile.canRead()) {
    378378                l.log("private key file does not exist");
     
    423423            privKeyFile = new File(args[2]);
    424424            if (!privKeyFile.isAbsolute())
    425                 privKeyFile = new File(_context.getAppDir(), args[2]);
     425                privKeyFile = new File(_context.getConfigDir(), args[2]);
    426426            if (!privKeyFile.canRead()) {
    427427                l.log("private key file does not exist");
     
    482482            privKeyFile = new File(args[3]);
    483483            if (!privKeyFile.isAbsolute())
    484                 privKeyFile = new File(_context.getAppDir(), args[3]);
     484                privKeyFile = new File(_context.getConfigDir(), args[3]);
    485485            if (!privKeyFile.canRead()) {
    486486                l.log("private key file does not exist");
     
    878878            File privKeyFile = new File(args[1]);
    879879            if (!privKeyFile.isAbsolute())
    880                 privKeyFile = new File(_context.getAppDir(), args[1]);
     880                privKeyFile = new File(_context.getConfigDir(), args[1]);
    881881            if (!privKeyFile.canRead()) {
    882882                l.log("private key file does not exist");
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java

    rc65a978 r4d00534  
    7474        File keyFile = new File(getPrivKeyFile());
    7575        if (!keyFile.isAbsolute())
    76             keyFile = new File(I2PAppContext.getGlobalContext().getAppDir(), getPrivKeyFile());
     76            keyFile = new File(I2PAppContext.getGlobalContext().getConfigDir(), getPrivKeyFile());
    7777        if (keyFile.exists()) {
    7878            //log("Not overwriting existing private keys in " + keyFile.getAbsolutePath());
Note: See TracChangeset for help on using the changeset viewer.