Index: Script.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/Script.java,v
retrieving revision 1.2
diff -u -r1.2 Script.java
--- Script.java	2000/03/19 20:27:44	1.2
+++ Script.java	2000/10/12 08:26:10
@@ -109,9 +109,13 @@
             // execute the script
             manager.exec(language, "<ANT>", 0, 0, script);
         } catch (BSFException be) {
-	    Exception e = be;
+            Exception e = be;
             Throwable te = be.getTargetException();
             if (te != null && te instanceof Exception) e = (Exception) te;
+            if (e != null && e instanceof BuildException) {
+                BuildException buildEx = (BuildException)e;
+                throw buildEx;
+            }
             throw new BuildException(e);
         }
     }
