ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1453400 - in /ant/core/trunk/src: main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java
Date Wed, 06 Mar 2013 16:16:31 GMT
Author: jglick
Date: Wed Mar  6 16:16:31 2013
New Revision: 1453400

URL: http://svn.apache.org/r1453400
Log:
Still more diagnostics for #54641.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java?rev=1453400&r1=1453399&r2=1453400&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java Wed Mar
 6 16:16:31 2013
@@ -528,7 +528,7 @@ public class TraXLiaison implements XSLT
      */
     public void fatalError(TransformerException e) {
         logError(e, "Fatal Error");
-        throw new BuildException("Fatal error during transformation using " + stylesheet,
e);
+        throw new BuildException("Fatal error during transformation using " + stylesheet
+ ": " + e.getMessageAndLocation(), e);
     }
 
     /**

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java?rev=1453400&r1=1453399&r2=1453400&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregatorTest.java
Wed Mar  6 16:16:31 2013
@@ -23,6 +23,7 @@ import java.io.FileOutputStream;
 import java.io.PrintWriter;
 import java.security.Permission;
 import junit.framework.TestCase;
+import org.apache.tools.ant.DefaultLogger;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.Delete;
 import org.apache.tools.ant.types.FileSet;
@@ -63,6 +64,11 @@ public class XMLResultAggregatorTest ext
         fs.setFile(xml);
         task.addFileSet(fs);
         Project project = new Project();
+        DefaultLogger logger = new DefaultLogger();
+        logger.setOutputPrintStream(System.out);
+        logger.setErrorPrintStream(System.err);
+        logger.setMessageOutputLevel(Project.MSG_INFO);
+        project.addBuildListener(logger);
         project.init();
         task.setProject(project);
         /* getResourceAsStream override unnecessary on JDK 7. Ought to work around JAXP #6723276
in JDK 6, but causes a TypeCheckError in FunctionCall for reasons TBD:



Mime
View raw message