ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit AggregateTransformer.java
Date Sun, 18 Aug 2002 18:47:41 GMT
bodewig     2002/08/18 11:47:40

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit Tag:
                        ANT_15_BRANCH AggregateTransformer.java
  Log:
  merge of Stephane's change from HEAD
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.16.2.1  +10 -15    jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
  
  Index: AggregateTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java,v
  retrieving revision 1.16
  retrieving revision 1.16.2.1
  diff -u -r1.16 -r1.16.2.1
  --- AggregateTransformer.java	15 Apr 2002 14:56:33 -0000	1.16
  +++ AggregateTransformer.java	18 Aug 2002 18:47:40 -0000	1.16.2.1
  @@ -53,24 +53,18 @@
    */
   package org.apache.tools.ant.taskdefs.optional.junit;
   
  -import org.apache.tools.ant.Task;
  -import org.apache.tools.ant.Project;
  -import org.apache.tools.ant.BuildException;
  -import org.apache.tools.ant.types.EnumeratedAttribute;
  -
   import java.io.File;
  -import java.io.InputStream;
   import java.io.FileInputStream;
  -import java.io.IOException;
   import java.io.FileNotFoundException;
  -
  -
  -
  +import java.io.IOException;
  +import java.io.InputStream;
   import java.net.URL;
  -
  -import javax.xml.parsers.DocumentBuilderFactory;
   import javax.xml.parsers.DocumentBuilder;
  -
  +import javax.xml.parsers.DocumentBuilderFactory;
  +import org.apache.tools.ant.BuildException;
  +import org.apache.tools.ant.Project;
  +import org.apache.tools.ant.Task;
  +import org.apache.tools.ant.types.EnumeratedAttribute;
   import org.w3c.dom.Document;
   
   /**
  @@ -184,11 +178,12 @@
       public void transform() throws BuildException {
           checkOptions();
           final long t0 = System.currentTimeMillis();
  +        XalanExecutor executor = XalanExecutor.newInstance(this);
           try {
  -            XalanExecutor executor = XalanExecutor.newInstance(this);
               executor.execute();
           } catch (Exception e){
  -            throw new BuildException("Errors while applying transformations", e);
  +            throw new BuildException("Errors while applying transformations: "
  +                + e.getMessage(), e);
           }
           final long dt = System.currentTimeMillis() - t0;
           task.log("Transform time: " + dt + "ms");
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message