ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AW: Unzip specific folders in ANT
Date Wed, 28 Jan 2009 06:57:18 GMT
>I tried with the wildcard that you provided and checked with 
>verbose option.
>Extracting of files doesn't seem to happen for specified folder names.

This works for me:

<project>

    <mkdir dir="_allImages_"/>
    <unzip src="${ant.home}/lib/ant.jar" dest="_allImages_">
        <patternset>
            <include name="images/"/>
        </patternset>
    </unzip>
    
    <mkdir dir="_selectedFiles_"/>
    <unzip src="${ant.home}/lib/ant.jar" dest="_selectedFiles_">
        <patternset>
            <include name="**/ant_logo_large.gif"/>
            <include name="**/LICENSE.txt"/>
        </patternset>
    </unzip>

</project>


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message