ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24877] - exec task doesn't handle error conditions well
Date Fri, 21 Nov 2003 21:54:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24877>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24877

exec task doesn't handle error conditions well





------- Additional Comments From eric@timebytes.com  2003-11-21 21:54 -------
OK, here's an update: the suggestion to set a property based on the return 
value doesn't work when you're execing more than one sub-program.

Why?

Because of the way Ant properties work - they're immutable.  So after the first 
exec call, execError and errorText are both set and can't be changed! I suppose 
I could bury each exec call in an ant task that I <antcall> - but where does 
the ugliness end??

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


Mime
View raw message