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 8088] New: - XmlValidate doesnt resolve DTDs properly in a multi-directory build
Date Mon, 15 Apr 2002 06:50:52 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=8088>.
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=8088

XmlValidate doesnt resolve DTDs properly in a multi-directory build

           Summary: XmlValidate doesnt resolve DTDs properly in a multi-
                    directory build
           Product: Ant
           Version: 1.5 alpha (nightly)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: steve_l@iseran.com


I have checked this stuff in, so you can test it yourselves.

Validate a file using the validate.xml build file in optional\xml and the non 
standard url schema is handled propertly, mapping to the system ID passed in.

but call it from a parent build file in a different directory 
(optional\xmlvalidate.xml), or even from Ant triggered junit tests, and this 
mapping fails... we get

[xmlvalidate] Could not resolve ( publicId: -//stevo//DTD doc 1.0//EN, 
systemId: file:C:/Java/Apps/jakarta-
ant/src/etc/testcases/taskdefs/optional/xml/nap:chemical+brothers) to a local 
entity
[xmlvalidate] C:/Java/Apps/jakarta-
ant/src/etc/testcases/taskdefs/optional/xml/about.xml:5: External entity not 
found: "file:C:/Java/Apps/jakarta-
ant/src/etc/testcases/taskdefs/optional/xml/nap:chemical+brothers".

The effective result is that you cannot use XmlValidate in a complex project. 

...to fix this I'd be in favour of going to XmlCatalog in <xmlvalidate> then 
see if the problem still exists. Given that the xslt tests seem to work, I 
think it 'goes away.

--
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