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 18438] New: - Referenced xmlcatalog does not include the classpath
Date Fri, 28 Mar 2003 01:32:31 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=18438>.
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=18438

Referenced xmlcatalog does not include the classpath

           Summary: Referenced xmlcatalog does not include the classpath
           Product: Ant
           Version: 1.5.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: David.Holscher@nav-international.com


The following setup does not find the DTD in the servlet.jar file:
  <xmlcatalog id="commonDTDs">
    <classpath><pathelement location="lib/servlet.jar" /></classpath>
    <dtd 
      publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      location="javax/servlet/resources/web-app_2_3.dtd"/>
  </xmlcatalog>
  <target name="test">
    <xmlvalidate>
      <fileset dir="admin" includes="**/*.xml"/>  
      <xmlcatalog refid="commonDTDs" />
    </xmlvalidate>
  </target>

However, the following does:
  <target name="test">
    <xmlvalidate>
      <fileset dir="admin" includes="**/*.xml"/>  
      <xmlcatalog>
        <classpath><pathelement location="lib/servlet.jar" /></classpath>
        <dtd 
          publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          location="javax/servlet/resources/web-app_2_3.dtd"/>
      </xmlcatalog>
    </xmlvalidate>
  </target>

I browsed over the head revision of XMLCatalog and it appears that the 
classpath isn't being copied when setting a reference.

Mime
View raw message