Re: renaming files

2010-10-19 Thread jpyork
://ant.1045680.n5.nabble.com/renaming-files-tp3219206p3219225.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h

Re: renaming files

2010-10-19 Thread Michael Shea
I believe you should look here: http://ant.apache.org/manual/Types/mapper.html (check out the globmapper). Mike Shea. I am wondering if there is a way to take a bunch of files and change the name of them without having to do them one at a time. this is an example of what i want to do: examp

renaming files

2010-10-19 Thread jpyork
i can just copy the file if I name each one, but there are a few hundred files and this could make for a ugly looking target. -- View this message in context: http://ant.1045680.n5.nabble.com/renaming-files-tp3219206p3219206.html Sent from the Ant - Users mailing list archive at Nabble.com

Re: Renaming files during copy

2008-08-25 Thread Paul Schabl
Works great, many thanks! Paul Schabl Am 25.08.2008 um 23:51 schrieb David Weintraub: Well, you're already using one Selector, why not use the "type" selector too: If you need empty folders too, you might h

Re: Renaming files during copy

2008-08-25 Thread David Weintraub
Well, you're already using one Selector, why not use the "type" selector too: If you need empty folders too, you might have to do another copy, but with . -- David Weintraub [EMAIL PROTECTED] On Mon, Aug 25,

Re: Renaming files during copy

2008-08-25 Thread Paul Schabl
Unluckily, all directories get renamed Thanks for your suggestion, Paul Schabl Am 25.08.2008 um 18:59 schrieb David Weintraub: You mention that the renamed directories are empty. Are all the directories renamed, or only the empty ones? If it is only the empty ones, can you add the includeEmpt

Re: Renaming files during copy

2008-08-25 Thread David Weintraub
You mention that the renamed directories are empty. Are all the directories renamed, or only the empty ones? If it is only the empty ones, can you add the includeEmptyDirs="false" parameter to your copy task? -- David Weintraub [EMAIL PROTECTED] On Mon, Aug 25, 2008 at 6:28 AM, Paul Schabl <[

Renaming files during copy

2008-08-25 Thread Paul Schabl
Hej, The following target copies and renames files as expected, but also creates emtpy directories named "somedir.deploy". How can i make sure, that only files get renamed during copy?

RE: copyng and renaming files

2007-08-30 Thread Anderson, Rob (Global Trade)
: Pomè Elisabetta [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 29, 2007 4:19 AM > To: 'Ant Users List' > Subject: R: copyng and renaming files > > Thank you all, > I got some problem with your suggets > > 1) I tried to use ant-

Re: R: copyng and renaming files

2007-08-29 Thread Gilbert Rebhan
Hi, Peter Peter Reilly wrote: btw, i had several problems with antcontrib 1.0b3, i recommend using version 1.0b2 instead. What are the issues with 1.0b3? I use it in production here without problems. Peter see = http://marc.info/?l=ant-user&m=118061703508041&w=2 Maybe that has been fixed in

Re: R: copyng and renaming files

2007-08-29 Thread Peter Reilly
On 8/29/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > Hi, > > -Original Message- > From: Pomè Elisabetta [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 29, 2007 3:33 PM > To: 'Ant Users List' > Subject: R: R: copyng and renaming files &g

RE: R: copyng and renaming files

2007-08-29 Thread Rebhan, Gilbert
Hi, -Original Message- From: Pomè Elisabetta [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 29, 2007 3:33 PM To: 'Ant Users List' Subject: R: R: copyng and renaming files /* Problem: failed to create task or type for Cause: The name is undefined. Action: Check the spelli

R: R: copyng and renaming files

2007-08-29 Thread Pomè Elisabetta
07 13.25 A: Ant Users List Oggetto: Re: R: copyng and renaming files On 8/29/07, Pomè Elisabetta <[EMAIL PROTECTED]> wrote: > Thank you all, > I got some problem with your suggets > > 1) I tried to use ant-contrib with ant 1.7 but I got the error: >java.lang.Unsuppo

Re: R: copyng and renaming files

2007-08-29 Thread Peter Reilly
t; Elisabetta > > -Messaggio originale- > Da: Vijay Aravamudhan [mailto:[EMAIL PROTECTED] > Inviato: mercoledì 29 agosto 2007 12.39 > A: Ant Users List > Oggetto: Re: copyng and renaming files > > > you can achieve the same without using ant-contrib: by using a >

R: copyng and renaming files

2007-08-29 Thread Pomè Elisabetta
couldn't be able to let it work Any ideas on how to go on? Thank you Elisabetta -Messaggio originale- Da: Vijay Aravamudhan [mailto:[EMAIL PROTECTED] Inviato: mercoledì 29 agosto 2007 12.39 A: Ant Users List Oggetto: Re: copyng and renaming files you can achieve the same without

Re: copyng and renaming files

2007-08-29 Thread Vijay Aravamudhan
{dest.dir}/${file2copy.filename}"/> Have a nice day, kriss - Original Message - From: "Pomè Elisabetta" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 29, 2007 10:53 AM Subject: copyng and renaming files Hi everybody, I apologize if this issue have been posted p

Re: copyng and renaming files

2007-08-29 Thread Kriss
gt; Have a nice day, kriss - Original Message - From: "Pomè Elisabetta" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 29, 2007 10:53 AM Subject: copyng and renaming files Hi everybody, I apologize if this issue have been posted previously, but I search the

copyng and renaming files

2007-08-29 Thread Pomè Elisabetta
Hi everybody, I apologize if this issue have been posted previously, but I search the mailing list and I couldn't find nothing similar. I need to copy files (says A.java e B.java) from a directoy Origin to a directory Destination. The directory Destination already contains an older version of A.jav

RE: Renaming files in a fileset??

2005-03-10 Thread Jacob Kjome
Kjome [] > Sent: Wednesday, March 09, 2005 4:48 PM > To: Ant Users List > Subject: Re: Renaming files in a fileset?? > > > > I'm not going to guarantee that this works. I worked on this a while back > and > commented it out because I went another route, but wanted to

RE: Renaming files in a fileset??

2005-03-10 Thread Casey Daniell
Jacob, Nice. Your Mapper and Regex worked like a charm. Dominique/Matt thanks for pointing out the Mapper function, I had forgotten using that. Casey -Original Message- From: Jacob Kjome [] Sent: Wednesday, March 09, 2005 4:48 PM To: Ant Users List Subject: Re: Renaming files in a

Re: Renaming files in a fileset??

2005-03-09 Thread Matt Benson
--- Jacob Kjome <[EMAIL PROTECTED]> wrote: > > Oh, you know what. I think I ended up having to > first copy all the files to a > single directory so that I could first use the > "flatten" mapper on my fileset > first (since all libs live inside a single parent > base directory, but are > scatte

Re: Renaming files in a fileset??

2005-03-09 Thread Jacob Kjome
Oh, you know what. I think I ended up having to first copy all the files to a single directory so that I could first use the "flatten" mapper on my fileset first (since all libs live inside a single parent base directory, but are scattered within at different levels of depth). Then I did the cop

Re: Renaming files in a fileset??

2005-03-09 Thread Jacob Kjome
I'm not going to guarantee that this works. I worked on this a while back and commented it out because I went another route, but wanted to keep this around for reference. The Regexp might be able to be written better as well. Try it and see if it works for you. Let me know if it does.

Re: Renaming files in a fileset??

2005-03-09 Thread Matt Benson
Read about File Mappers under the Concepts and Types section of the Ant manual... specifically you probably need a regexpmapper. HTH, Matt --- Casey Daniell <[EMAIL PROTECTED]> wrote: > Is there any good way to automatically rename files > in a fileset? > > Situation, I have many different produ

RE: Renaming files in a fileset??

2005-03-09 Thread Dominique Devienne
> From: Casey Daniell [mailto:[EMAIL PROTECTED] > I would like to be able to rename the libraries from log4j-1.2.8.jar to > log4j.jar, when I copy the file contained in a fileset to the distro > point. Is there any easy way to do this? (Basically just strip out > the number part of the library name

Renaming files in a fileset??

2005-03-09 Thread Casey Daniell
Is there any good way to automatically rename files in a fileset? Situation, I have many different products that I support, instead of including specific libraries in the build script I include a reference to the files which is resolved in a properties file. This allows me to easily vary different

AW: Problems with copying and renaming files

2005-01-31 Thread Jan . Materne
For and the files dont have to specified - use s. Does the work then? Jan > -Ursprüngliche Nachricht- > Von: Swathi Rao [mailto:[EMAIL PROTECTED] > Gesendet am: Sonntag, 30. Januar 2005 21:21 > An: user@ant.apache.org > Betreff: Problems with copying and renaming files

Problems with copying and renaming files

2005-01-30 Thread Swathi Rao
doing so resulted the file to be renamed asd d1.outxyz1.out Is there a better way of renaming files? Thanks, Swathi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]