Permalink
Browse files

remove references to gant.TargetExecutionException for now

  • Loading branch information...
1 parent c28cdc2 commit ba1a0dc8e44464b103ff8b0dad2ef0250720f485 @jeffbrown jeffbrown committed Feb 10, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 grails/src/java/org/codehaus/groovy/grails/cli/GrailsScriptRunner.java
@@ -17,7 +17,6 @@
package org.codehaus.groovy.grails.cli;
import gant.Gant;
-import gant.TargetExecutionException;
import grails.util.BuildSettings;
import grails.util.BuildSettingsHolder;
import grails.util.Environment;
@@ -365,7 +364,7 @@ else if (script.name.equalsIgnoreCase("exit") || script.name.equalsIgnoreCase("q
catch (ScriptNotFoundException ex) {
out.println("No script found for " + script.name);
}
- catch (TargetExecutionException ex) {
+ catch (Throwable ex) {
if (ex.getCause() instanceof ScriptExitException) {
out.println("Script exited with code " + ((ScriptExitException) ex.getCause()).getExitCode());
}

0 comments on commit ba1a0dc

Please sign in to comment.