On Jan 21, 2006, at 8:21 PM, Clifton Craig wrote:

I'm having trouble doing something that I think should be really simple. I have a comma separated list of directories that I want to copy to a destination. I want those directories and everything in them to copy. When I use the copy task I get only the directories and not their contents. Eg. I have:

prj1
|
*---lib
    |
    *---default
    |   |
    |   *---default.jar
    *---debug
    |   |
    |   *---debug.jar
    *---prod
        |
        *---prod.jar

I code: <copy todir="${build.deploy.target}">
<fileset dir="${build.lib.dir}" includes="${confs-to- deploy}"/>

Here is the error: the includes attribute should contain patterns matching the file names you want copied.
The patterns only match the directories.
        Try: includes="**/*.jar""
        </copy>
where build.lib.dir = prj1/lib and confs-to-deploy = "default,debug,prod". I get the default, debug, and prod folders created in my build.deploy.target directory but they are all empty. How can I get the directories along with their contents?
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems -  A Division of GBG
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]




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

Reply via email to