Changeset 429 for trunk/src/org/expeditee/actions/Simple.java
- Timestamp:
- 01/07/09 19:46:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Simple.java
r425 r429 255 255 // if the throws exception annotation is on the frame then 256 256 // it passes only if an exception is thrown 257 if (title.getParentOrCurrentFrame().hasAnnotation(258 257 assert (title.getParent() != null); 258 if (title.getParent().hasAnnotation("ThrowsException")) { 259 259 errorMessage = "Expected exception " + title.toString(); 260 260 passed = false; … … 499 499 } catch (ArrayIndexOutOfBoundsException e) { 500 500 FlagError(item); 501 throw new IncorrectUseOfStatementException("Too few parametres: " + item.toString(), item.getStatement()); 501 throw new IncorrectUseOfStatementException( 502 "Too few parametres: " + item.toString(), item 503 .getStatement()); 502 504 } catch (NullPointerException e) { 503 505 FlagError(item); … … 506 508 } catch (RuntimeException e) { 507 509 FlagError(item); 508 throw new IncorrectUseOfStatementException(e.getMessage() + " " + item.toString(), item.getStatement()); 510 throw new IncorrectUseOfStatementException(e.getMessage() + " " 511 + item.toString(), item.getStatement()); 509 512 } catch (Exception e) { 510 513 throw new Exception(e.getMessage()); … … 1700 1703 1); 1701 1704 Runtime.getRuntime().exec(command); 1702 } else if (tokens[0].equals("executeoscommand") || tokens[0].equals("runoscommandwithoutput")) { 1705 } else if (tokens[0].equals("executeoscommand") 1706 || tokens[0].equals("runoscommandwithoutput")) { 1703 1707 String command = getMessage(tokens, context, code.toString(), " ", 1704 1708 1); 1705 1709 try { 1706 1710 Process p = Runtime.getRuntime().exec(command); 1707 //Process p = Runtime.getRuntime().exec(new String[]{"date", ">", "test.date"}); 1711 // Process p = Runtime.getRuntime().exec(new String[]{"date", 1712 // ">", "test.date"}); 1708 1713 MessageBay.displayMessage(command, Color.darkGray); 1709 1714
Note:
See TracChangeset
for help on using the changeset viewer.