ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Nordgren <tommy.nordg...@chello.se>
Subject Re: Copy a directory list
Date Sat, 21 Jan 2006 20:11:10 GMT

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
> ccc@icsaward.com
> ccraig@gbg.com

-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
tommy.nordgren@chello.se




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


Mime
View raw message