Changeset 479 for trunk/src/org/expeditee/actions
- Timestamp:
- 06/07/13 16:27:45 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r463 r479 510 510 String[] paramStrings = parameters.split("\\s+"); 511 511 /** 512 * Any extra paramet res will be treated as the rest of the512 * Any extra parameters will be treated as the rest of the 513 513 * string if the last param is a string 514 514 */ 515 if (paramCount > paramStrings.length) 515 if (paramCount > paramStrings.length) { 516 516 continue; 517 } 518 517 519 /** 518 * If there are extra paramet res the last param must be a520 * If there are extra parameters the last param must be a 519 521 * String 520 522 */ 521 523 int lastParam = paramTypes.length - 1; 522 524 523 if (paramCount < paramStrings.length 524 && !paramTypes[lastParam].equals(String.class)) 525 if (paramCount < paramStrings.length && !paramTypes[lastParam].equals(String.class)) { 525 526 continue; 527 } 528 526 529 try { 527 530 for (int i = 0; i < paramCount; i++) { … … 553 556 } 554 557 } 555 } catch (Exception e) { 558 } 559 catch (Exception e) { 556 560 continue; 557 561 } 558 /** Append extra params on the end of the last string param */ 559 String s = params[lastParam].toString(); 560 for (int i = paramCount; i < paramStrings.length; i++) { 561 s += ' ' + paramStrings[i]; 562 563 564 if (paramCount < paramStrings.length) { 565 566 /** Append extra params on the end of the last string param */ 567 String s = params[lastParam].toString(); 568 for (int i = paramCount; i < paramStrings.length; i++) { 569 s += ' ' + paramStrings[i]; 570 } 571 params[lastParam] = s; 562 572 } 563 params[lastParam] = s; 564 573 565 574 con = c; 566 575 break; … … 587 596 + "' is not an action or agent."); 588 597 } 598 } 599 600 601 public static void LaunchAgent(String name, String parameters,Frame source) throws Exception 602 { 603 LaunchAgent(name,parameters,source,null); 589 604 } 590 605
Note:
See TracChangeset
for help on using the changeset viewer.