Malcolm
Malcolm

Reputation: 1807

Copy files from a zip folder to another folder in nant

I want to copy the files from the zip folder to another folder. I am doing this , but it doesn't works

    <copy todir="Lib">
<fileset basedir="Output/RCxSL.Client.zip/ServiceClientDlls">
    <include name="*.dll" />
</fileset>
    </copy>

How to achieve this ? the folder is zipped.

Upvotes: 0

Views: 1816

Answers (1)

Abel
Abel

Reputation: 57149

A ZIP folder is not a folder, it is a ZIP file, even though the operating system (through your files explorer) may make it look like a folder. Instead of using <fileset> and <copy>, use the unzip task of NAnt.

<unzip zipfile="Output/RCxSL.Client.zip" todir="Lib" />

Upvotes: 2

Related Questions