Changeset 530


Ignore:
Timestamp:
10/11/05 15:42:12 (15 years ago)
Author:
curtis
Message:

Don't create errors.log unless necessary.

Location:
trunk/loci/visbio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/util/OutputConsole.java

    r465 r530  
    6666    super(); 
    6767    log = logFile; 
    68     if (log != null) { 
     68    if (log != null && new File(log).exists()) { 
    6969      // clear log file content 
    70       try { new FileWriter(log).close(); } 
    71       catch (IOException exc) { } 
     70      File f = new File(log); 
     71      if (f.exists()) { 
     72        try { f.delete(); } 
     73        catch (SecurityException exc) { 
     74          // delete access is denied; try clearing file contents 
     75          try { new FileWriter(log).close(); } 
     76          catch (IOException exc2) { } 
     77        } 
     78      } 
    7279    } 
    7380    frame = new JFrame(title); 
  • trunk/loci/visbio/whatsnew.txt

    r529 r530  
    22 
    33- TWEAK: Report more information during initial dataset creation 
     4- TWEAK: Don't create errors.log unless necessary 
    45 
    56 
Note: See TracChangeset for help on using the changeset viewer.