Changeset 8264


Ignore:
Timestamp:
2004-10-11T09:43:59+13:00 (20 years ago)
Author:
mdewsnip
Message:

Tidied up debug file generation code.

File:
1 edited

Legend:

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

    r8261 r8264  
    176176
    177177        Calendar now = Calendar.getInstance();
    178         StringBuffer name = new StringBuffer("debug");
    179         name.append(now.get(Calendar.DATE));
    180         name.append("-");
    181         name.append(now.get(Calendar.MONTH));
    182         name.append("-");
    183         name.append(now.get(Calendar.YEAR));
    184         name.append(".txt");
     178        String debug_file_path = "debug" + now.get(Calendar.DATE) + "-" + now.get(Calendar.MONTH) + "-" + now.get(Calendar.YEAR) + ".txt";
    185179
    186180        // Debug file is created in the GLI directory, unless the GLI is running as an applet
    187         String debug_file_path = name.toString();
    188181        if (isGsdlRemote) {
    189182        debug_file_path = Utility.getGLIUserFolder().toString() + File.separator + debug_file_path;
Note: See TracChangeset for help on using the changeset viewer.