Changeset 24357 for main


Ignore:
Timestamp:
2011-08-01T15:29:43+12:00 (13 years ago)
Author:
ak19
Message:

Now can put the %1 in file associations menu inside single or double quotes (John Rose found that this was not working previously).

File:
1 edited

Legend:

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

    r24356 r24357  
    14191419                    for(int i = 0; i < commands.length; i++) {
    14201420                        if (i>0) {
     1421                            // get rid of any quotes around parameters in file associations
     1422                            if(commands[i].startsWith("\"") || commands[i].startsWith("\'")) {
     1423                            commands[i] = commands[i].substring(1);
     1424                            }
     1425                            if(commands[i].endsWith("\"") || commands[i].endsWith("\'")) {
     1426                            commands[i] = commands[i].substring(0, commands[i].length()-1);
     1427                            }                           
    14211428                            whole_command.append(" ");
    14221429                        }
Note: See TracChangeset for help on using the changeset viewer.