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 20969] New: - <unzip><patternset><include name="foo/"/></></> does not match anything
Date Fri, 20 Jun 2003 20:20:27 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=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: dev@ant.apache.org
        ReportedBy: jesse.glick@netbeans.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message