> -----Ursprungliche Nachricht-----
> Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 25. September 2002 12:14
> An: [EMAIL PROTECTED]
> Betreff: Re: [PATCH] XMLValidate
>
>
> On Mon, 23 Sep 2002, Nick Pellow <[EMAIL PROTECTED]> wrote:
>
> > The XMLValidateTask will throw a BuildException however when a
> > feature is not supported by a parser!
>
> So the testcase itself could catch that exception and swallow it
> (given its message can be identified) so that the test itself becomes
> a NOP if the parser doesn't support schema?

I just took another look at the code, and the XMLValidateTask will log a
warning if the parser does not support the feature, then continue:

        } catch (SAXNotSupportedException  e) {
            if (warn) {
                log("Could not set feature '"
                    + feature
                    + "' because the '" +
                        readerClassName + "' parser doesn't support it",
                    Project.MSG_WARN);
            }
        }

Should this behaviour be changed? I am not sure what happens in the style
task?



Nick

>
> Stefan
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to