Changeset ddc5e2c


Ignore:
Timestamp:
Apr 19, 2013 11:44:57 AM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ca1e8d0
Parents:
3086fd3
Message:
  • WorkingDir?: Correctly strip DOS line endings while migrating,

to fix eepsite location on 0.9.5 Windows installs (ticket #919)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/startup/WorkingDir.java

    r3086fd3 rddc5e2c  
    295295            boolean isDaemon = DAEMON_USER.equals(System.getProperty("user.name"));
    296296            while ((s = DataHelper.readLine(in)) != null) {
     297                // readLine() doesn't strip \r
     298                if (s.endsWith("\r"))
     299                    s = s.substring(0, s.length() - 1);
    297300                if (s.endsWith("=\"eepsite/jetty.xml\"")) {
    298301                    s = s.replace("=\"eepsite/jetty.xml\"", "=\"" + todir.getAbsolutePath() +
     
    334337            String s = null;
    335338            while ((s = DataHelper.readLine(in)) != null) {
     339                // readLine() doesn't strip \r
     340                if (s.endsWith("\r"))
     341                    s = s.substring(0, s.length() - 1);
    336342                if (s.indexOf(oldString) >= 0) {
    337343                    s = s.replace(oldString, newString);
Note: See TracChangeset for help on using the changeset viewer.