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=20969>.
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=20969

<unzip><patternset><include name="foo/"/></></> does not match anything

           Summary: <unzip><patternset><include name="foo/"/></></> does not
                    match anything
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In Ant 1.5.3, if I e.g. have the XHTML 1.1 distribution and try:

<mkdir dir="dtds"/>
<unzip dest="dtds" src="xhtml1.zip">
    <patternset>
        <include name="xhtml1-20020801/DTD/"/>
    </patternset>
</unzip>

it does not work - the directory dtds/xhtml1-20020801/DTD/ is created but left
empty. If however I change the <include> to read:

        <include name="xhtml1-20020801/DTD/**"/>

then it works - all files in that part of the ZIP file (e.g. xhtml1-strict.dtd)
are extracted to the disk directory.

Generally appending "**" to a <include> name ending in "/" is supposed to be a
no-op, so this is inconsistent with usage in e.g. <fileset>. Intentional or bug?

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

Reply via email to