incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r507722 - /incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java
Date Wed, 14 Feb 2007 22:31:30 GMT
Author: maartenc
Date: Wed Feb 14 14:31:29 2007
New Revision: 507722

URL: http://svn.apache.org/viewvc?view=rev&rev=507722
Log:
Added more logging to discover why tests fail in gump.

Modified:
    incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java

Modified: incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java?view=diff&rev=507722&r1=507721&r2=507722
==============================================================================
--- incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java (original)
+++ incubator/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java Wed Feb 14 14:31:29
2007
@@ -30,6 +30,7 @@
 import org.apache.ivy.plugins.trigger.Trigger;
 import org.apache.ivy.util.Message;
 import org.apache.ivy.util.MessageImpl;
+import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.Ant;
 import org.apache.tools.ant.taskdefs.Property;
@@ -91,7 +92,13 @@
                 MessageImpl impl = IvyContext.getContext().getMessageImpl();
                 try {
                 	IvyContext.getContext().setMessageImpl(null);
-                	ant.execute();
+                	try {
+                		ant.execute();
+                	} catch (BuildException e) {
+                		Message.verbose("Exception occurred while executing target " + target);
+                		e.printStackTrace(); // TODO: remove when finished debugging
+                		throw e;
+                	}
                 	markBuilt(f);
                 } finally {
                 	IvyContext.getContext().setMessageImpl(impl);



Mime
View raw message