Changeset 8196


Ignore:
Timestamp:
2004-09-30T16:28:31+12:00 (20 years ago)
Author:
mdewsnip
Message:

Debug files are now written correctly when running as an applet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r8062 r8196  
    188188        name.append(now.get(Calendar.YEAR));
    189189        name.append(".txt");
    190         this.debug = new PrintStream(new FileOutputStream(name.toString()));
     190
     191        // Debug file is created in the GLI directory, unless the GLI is running as an applet
     192        String debug_file_path = name.toString();
     193        if (isGsdlRemote) {
     194            debug_file_path = Utility.getGLIUserFolder().toString() + File.separator + debug_file_path;
     195        }
     196        Gatherer.println("Debug file path: " + debug_file_path);
     197        this.debug = new PrintStream(new FileOutputStream(debug_file_path));
     198
    191199        Properties props = System.getProperties();
    192200        props.list(debug);
Note: See TracChangeset for help on using the changeset viewer.