Changeset 24358 for main/trunk/gli
- Timestamp:
- 2011-08-01T15:37:22+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r24357 r24358 1417 1417 if(commands != null) { 1418 1418 StringBuffer whole_command = new StringBuffer(); 1419 for(int i = 0; i < commands.length; i++) { 1419 for(int i = 0; i < commands.length; i++) { 1420 // get rid of any quotes around parameters in file associations 1421 if(commands[i].startsWith("\"") || commands[i].startsWith("\'")) { 1422 commands[i] = commands[i].substring(1); 1423 } 1424 if(commands[i].endsWith("\"") || commands[i].endsWith("\'")) { 1425 commands[i] = commands[i].substring(0, commands[i].length()-1); 1426 } 1427 1420 1428 if (i>0) { 1421 // get rid of any quotes around parameters in file associations1422 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 }1428 1429 whole_command.append(" "); 1429 1430 } 1430 whole_command.append(commands[i]); 1431 whole_command.append(commands[i]); 1431 1432 } 1432 1433 DebugStream.println("Running " + whole_command.toString());
Note:
See TracChangeset
for help on using the changeset viewer.