bodewig 2005/04/15 01:10:39 Modified: src/main/org/apache/tools/ant/taskdefs Java.java Log: Make sure we add a location when <java> fails Revision Changes Path 1.104 +4 -1 ant/src/main/org/apache/tools/ant/taskdefs/Java.java Index: Java.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Java.java,v retrieving revision 1.103 retrieving revision 1.104 diff -u -r1.103 -r1.104 --- Java.java 18 Mar 2005 17:32:14 -0000 1.103 +++ Java.java 15 Apr 2005 08:10:39 -0000 1.104 @@ -194,6 +194,9 @@ } } } catch (BuildException e) { + if (e.getLocation() == null && getLocation() != null) { + e.setLocation(getLocation()); + } if (failOnError) { throw e; } else { @@ -202,7 +205,7 @@ } } catch (Throwable t) { if (failOnError) { - throw new BuildException(t); + throw new BuildException(t, getLocation()); } else { log(t); return 0;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]