Ignore:
Timestamp:
06/26/13 15:33:10 (11 years ago)
Author:
pharms
Message:
  • small bug fix in correcting log directory structure
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcorrectHTMLLogDirs.java

    r1221 r1231  
    111111                if (!destination.exists()) { 
    112112                    if (!destination.mkdirs()) { 
    113                         Console.printerrln("Could create directory " + destination); 
     113                        Console.printerrln("Could not create directory " + destination); 
    114114                        Console.printerrln("not moving " + file); 
    115115                    } 
     
    123123                destination = new File(destination, file.getName()); 
    124124                 
    125                 if (!file.equals(destination)) { 
     125                // we seem to need both comparisons, as the first one does not always work 
     126                if (!file.equals(destination) && 
     127                    !file.getAbsolutePath().equals(destination.getAbsolutePath())) 
     128                { 
    126129                    file.renameTo(destination); 
    127130                 
Note: See TracChangeset for help on using the changeset viewer.