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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

Reply via email to