ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Pellow" <nick.pel...@mindmatics.de>
Subject AW: [PATCH] XMLValidate
Date Wed, 25 Sep 2002 17:03:37 GMT

> -----Ursprungliche Nachricht-----
> Von: Stefan Bodewig [mailto:bodewig@apache.org]
> Gesendet: Mittwoch, 25. September 2002 12:14
> An: ant-dev@jakarta.apache.org
> Betreff: Re: [PATCH] XMLValidate
>
>
> On Mon, 23 Sep 2002, Nick Pellow <nick.pellow@mindmatics.de> 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:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>
>


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


Mime
View raw message