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 36712] - Sql task fails even when onerror=continue when sql login fails
Date Sat, 22 Oct 2005 19:11:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36712>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36712





------- Additional Comments From Lothsahn@yahoo.com  2005-10-22 21:11 -------
We are indeed trying for #1.

Yes, the code treats the login error separately from a sql error.  Either both
the login and the sql execution should be handled by the onerror, or there
should be a configuration flag in the sql target for the login failure as well.

Ant contrib's try/catch will indeed work...  however, this is for a production
environment and I am not allowed to include extra libraries at this time.  We
managed to work around this issue another way, although it's not ideal.


(In reply to comment #2)
> Maybe the code treats a login error as a more serious error.
> 
> What exactly is that you are trying to do, as I may have misread this, is it 
> 
> 1. keep going over any SQL failure
> 2. halt the build on an error.
> 
> if it is (#1). the try/catch task from ant-contrib.sf.net lets you catch and
> ignore a build failure, giving you an immediate workaround for this issue.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message