bodewig     00/10/18 01:46:11

  Modified:    src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  And no stack trace for classic compiler either.
  
  Revision  Changes    Path
  1.51      +5 -1      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- Javac.java        2000/10/18 08:44:35     1.50
  +++ Javac.java        2000/10/18 08:46:10     1.51
  @@ -484,7 +484,11 @@
               throw new BuildException("Cannot use classic compiler, as it is 
not available", location);
           }
           catch (Exception ex) {
  -            throw new BuildException("Error starting classic compiler: ", 
ex, location);
  +            if (ex instanceof BuildException) {
  +                throw (BuildException) ex;
  +            } else {
  +                throw new BuildException("Error starting classic compiler: 
", ex, location);
  +            }
           }
       }
   
  
  
  

Reply via email to