ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Poonam" <poo...@harbinger-systems.com>
Subject Re: Copying folders
Date Thu, 06 Jan 2005 10:45:00 GMT
Hi,

Thanks, that was really useful.
Actually I am trying to copy a set of folders over network. Is there any way
to change the name of the folder while copying at runtime.
For eg. The folder name is like
ReleaseLock.4BA6844C-8F19-429F-BE93-B8A6AAA2E735. I want to change this name
to run1. Similarly there is another folder named
ReleaseLock.4371A6844C-8F19-429F-BE93-B8A6AAA2E735. I want to change this
name to run2. And another to run3.

Can I do it? I tried to use mapper, but was not able to do it. Can you help
me?

Regards,
Poonam

----- Original Message -----
From: "Antoine Levy-Lambert" <antoine@gmx.de>
To: "Poonam" <poonam@harbinger-systems.com>
Sent: Thursday, January 06, 2005 2:29 PM
Subject: Re: Copying folders


> if you are listing directory names in the contents of Driverlists.txt,
> just make sure that your patterns end with /**, then you will copy
> everything.
>
> for instance :
>
> foo/bar/**
> orange/lemon/**
>
> will catch everything recursively under foo/bar and orange/lemon.
>
> Cheers,
> Antoine
>
>
> > Hi,
> >
> > Actually, the main folder contains around 50 folders, out of which I
have
> > to
> > copy 20 folders. These folders are again 4 level deep, but it is not
> > copying
> > these folders upto 4th level. It just creates the 1st level folders as
> > empty
> > folders. But these are not empty folders.
> >
> > Regards,
> > Poonam
> >
> > ----- Original Message -----
> > From: "EJ Ciramella" <eciramella@upromise.com>
> > To: "Ant Users List" <user@ant.apache.org>
> > Sent: Thursday, January 06, 2005 10:53 AM
> > Subject: RE: Copying folders
> >
> >
> > but also, why not just create them up one directory instead of copying?
> >
> > -----Original Message-----
> > From: EJ Ciramella [mailto:eciramella@upromise.com]
> > Sent: Thursday, January 06, 2005 12:21 AM
> > To: Ant Users List
> > Subject: RE: Copying folders
> >
> >
> > doesn't ant have a "includeEmptyDirs" parameter to the copy task?
> >
> > -----Original Message-----
> > From: Poonam [mailto:poonam@harbinger-systems.com]
> > Sent: Thursday, January 06, 2005 12:06 AM
> > To: Ant Users List
> > Subject: Copying folders
> >
> >
> > Hi,
> >
> > I tried using filesets and selectors, but was not able to copy those
> > selected 20 directories upto 3 levels. It just copied the first level
> > files and empty directories.
> > I used fileset as follows -
> >
> > <copy todir=${Drivers}">
> > <fileset dir="${VssSourcePath}\Drivers">
> > <includesfile name="DriversList.txt"/>
> > </fileset>
> > </copy>
> >
> > where DriversList.txt contains the folder name I am want to copy. I want
> > to copy these folders completely i.e. upto n level.
> >
> > Regards,
> > Poonam
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
>


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


Mime
View raw message