ert Rebhan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 10:25 PM
To: Ant Users List
Subject: Re: Rename directories in Ant
[...]
2. the jruby-complete-1.0.jar, as it contains all
needed ruby libraries the script includes with
'require ...' (like import in java)
the n
Gilbert Rebhan wrote:
> Hi,
>
> as there's still no post how to achieve what you
> need with vanilla ant ...
>
> ... i wrote a small ruby script for that purpose
> might be used for backups too
>
Thank you very much for the interest. I will give it a try.
Regards,
--
César Martínez Izquierdo
Hi,
as there's still no post how to achieve what you
need with vanilla ant ...
Gilbert Rebhan wrote:
Finally will do the job.
sorry for now ...
... i wrote a small ruby script for that purpose
might be used for backups too
you need available for
Cesar Martinez Izquierdo wrote:
Sorry, it doesn't seem to work.
[...]
Probably, something similar can be performed using the glob mapper as
you suggested, but it will fail when there is a 'search' directory
inside another 'search' directory (as far as I understand...).
you're right, /search
rt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 13, 2007 2:50 PM
> To: Ant Users List
> Subject: RE: Rename directories in Ant
>
>
> Hi,
>
>
> -Original Message-
> From: Cesar Martinez Izquierdo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June
Hi,
sorry, the mapper is wrong =
must be =
the glob mapper seems to handle only single ' * '
Regards, Gilbert
-Original Message-
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 2:50 PM
To: Ant Users List
Subject: RE: Rename director
There's a slight problem in that the java.util.regex.Pattern class
used by Ant doesn't support what in Perl would be the "g" flag. That
Java class is the java.util.regex.Matcher and I don't know how the
regexmapper would call this particular class.
You might have to run this multiple times until
Hi,
-Original Message-
From: Cesar Martinez Izquierdo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 12:57 PM
To: Ant Users List
Subject: Re: Rename directories in Ant
/*
Hi Qazwart, thanks for your reply.
The problem is that I don't want to rename ONE directory, bu
Qazwart wrote:
> What version of Ant are you using? You seem to take the hard way:
>
> If you're using at least version 1.3, you can simply do this:
>
> todir="/tmp/myDir/test/hello/search_"/>
>
> If it's earlier than version 1.3:
>
>
>
>
>
> No need to use a mapper or anything:
>
What version of Ant are you using? You seem to take the hard way:
If you're using at least version 1.3, you can simply do this:
If it's earlier than version 1.3:
No need to use a mapper or anything:
BTW, the problem you're running into is that regex is naturally
greedy, so it always
Hi, I'm trying to rename every "search" directory in a tree to
"search_", but I'm not able to find the right way to do it.
For example, if I have the files:
/tmp/myDir/test/hello/search/Hello.html
/tmp/myDir/test/hello/search/nice/lists/search/Greetings.html
/tmp/myDir/test/hello/searchstrings/He