Changeset 11734 for branches


Ignore:
Timestamp:
2006-04-28T14:11:02+12:00 (18 years ago)
Author:
kjdon
Message:

fixed a bug in the arguments passed to export.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gsdl-2_70-distribution-branch/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java

    r10370 r11734  
    297297    command_parts_list.add(export_type);
    298298    command_parts_list.add("-exportdir");
    299     command_parts_list.add(LocalGreenstone.getTmpDirectoryPath());
    300 
     299    String export_dir = LocalGreenstone.getTmpDirectoryPath();
    301300    if (cd_title.equals("")) {
    302         command_parts_list.add("exported_" + export_type);
     301        export_dir += "exported_" + export_type;
    303302    }
    304303    else {
    305         command_parts_list.add("exported_" + cd_title.replaceAll("\\s", ""));
    306     }
     304        export_dir += "exported_" + cd_title.replaceAll("\\s", "");
     305    }
     306    command_parts_list.add(export_dir);
     307
    307308   
    308309    for (int i = 0; i < num_collections; i++) {
Note: See TracChangeset for help on using the changeset viewer.