failonerror boolean attribute on manager Ant tasks would be a nice have to allow for more flexible operation within Ant build files. I will attach a patch next week that also fixes unecessary CRs during response read/print and missing url encoding in some tasks.
Created attachment 11484 [details] failonerror attribute
The patch also includes a small refactoring of the validation inside a validate () method, read/display response correctly (previous CRs problems) and add url encoding where it was not existing.
*** Bug 10225 has been marked as a duplicate of this bug. ***
failonerror support and the CR issue had already been fixed. I have added the URL encoding where it was missing. This has been fixed in 7.0.x for 7.0.10 onwards and has been proposed for 6.0.x and 5.5.x. Changing the version to 5.5.x since that is the earliest supported version affected by this issue.
Fixed in 6.0.x and will be included in 6.0.33 onwards.
Fixed in 5.5.x and will be included in 5.5.34 onwards.