Changeset 24357

Show
Ignore:
Timestamp:
01.08.2011 15:29:43 (8 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).

Files:
1 modified

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                        }