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 18154] - SimpleP4OutputHandler can throw exceptions that should be build exceptions
Date Wed, 30 Jul 2003 08:03:58 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=18154>.
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=18154

SimpleP4OutputHandler can throw exceptions that should be build exceptions





------- Additional Comments From antoine@apache.org  2003-07-30 08:03 -------
My proposition : change SimpleP4OutputHandler so that it is only going to throw 
build exceptions if the attribute failonerror of P4Base is set to true (the 
default). If failonerror is set to false, then the error message would be logged 
with Project.MSG_ERR as you suggested in your patch.

On top of that, one could add a new Perforce property called p4.failonerror 
which, if set, would contain the default value for failonerror.

So :
<property name="p4.failonerror" value="false"/> at the top of a build file
would disable exception throwing from SimpleP4OutputHandler.

Alternatively or parallel, you would be able to add the "failonerror" attribute 
for problem tasks.

Is this OK ?

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


Mime
View raw message