ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Java.java
Date Fri, 15 Apr 2005 08:10:39 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message