Jim Collings wrote:
> So what I want to produce is a zip file that contains:
> 
> An installation script
> A directory with OpenSSO files for the app server.
> Possibly a directory with the app server itself.
> 
> Problem: I can't, for the life of me, figure out how to copy and zip a
> directory into an assembly. I've been trying to use fileSets but they
> don't seem to pertain to directories at all.

FileSets are the way to go. Here's what I use:

<fileSet>
    <directory>deployment</directory>
    <outputDirectory></outputDirectory>
    <excludes>
        <exclude>README.txt</exclude>
    </excludes>
</fileSet>

where the deployment directory looks like this:

deployment
deployment/log
deployment/www
deployment/README.txt

The log and www directories are just empty directories and are zipped up
happily in the assembly.

-dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to