You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2001/12/03 21:24:50 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs ExecTask.java
stevel 01/12/03 12:24:50
Modified: src/main/org/apache/tools/ant/taskdefs ExecTask.java
Log:
Last weeks changes took away helpful information about why exec failed to run; this puts it back in.
Revision Changes Path
1.23 +1 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
Index: ExecTask.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ExecTask.java 2001/11/30 20:43:27 1.22
+++ ExecTask.java 2001/12/03 20:24:50 1.23
@@ -323,7 +323,7 @@
runExecute(exe);
} catch (IOException e) {
if (failIfExecFails) {
- throw new BuildException("Execute failed: ",e, location);
+ throw new BuildException("Execute failed: "+e.toString(),e, location);
} else {
log("Execute failed: "+e.toString(), Project.MSG_ERR);
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>