On Thu, 08 Jul 2004, Nicolas Mailhot <[EMAIL PROTECTED]>
wrote:
> I thought about it - the problem of course is unicity. Is there a
> way in ant to take a text file list and remove duplicates ?
The dirsets shouldn't contain duplicates. Uhm, I see, you have
duplicates via separates dirsets.
Put
Le jeu, 08/07/2004 Ã 16:51 +0200, Stefan Bodewig a Ãcrit :
> On Thu, 08 Jul 2004, Nicolas Mailhot <[EMAIL PROTECTED]>
> wrote:
>
> > I more or less managed to generate the file lists but I'm stuck on
> > the dir list part
>
> It should work the same way you do it for your file list, just usind
>
On Thu, 08 Jul 2004, Nicolas Mailhot <[EMAIL PROTECTED]>
wrote:
> I more or less managed to generate the file lists but I'm stuck on
> the dir list part
It should work the same way you do it for your file list, just usind
nested into the path you pass to pathconvert.
Stefan
---
I actually tried to replace / by ${file.separator}. It did not work.
Then I tried \${file.separator} and it's good now (regexp just ignored the
single '\').
Thanks,
Patrick
> -Original Message-
> From: Peter Reilly <[EMAIL PROTECTED]>@SUNGARD
> Sent: jeudi 8 juillet 2004 16:09
It seems to work on unix but not on windows...
> -Original Message-
> From: Patrick Martin <[EMAIL PROTECTED]>@SUNGARD
> Sent: jeudi 8 juillet 2004 15:57
> To: 'Ant Users List'
> Subject: RE: Mapper: renaming + flattening
>
> I get the same problem with ant 1.6.1 and ant
Ah, you are using a version of dos.
In dos and windows, directories use '\', so the regex or glob needs to
modified to do that.
Peter
Patrick Martin wrote:
I get the same problem with ant 1.6.1 and ant 1.6.2beta1.
-Original Message-
From: Patrick Martin <[EMAIL PROTECTED]>@SUNGARD
Sen
I get the same problem with ant 1.6.1 and ant 1.6.2beta1.
> -Original Message-
> From: Patrick Martin <[EMAIL PROTECTED]>@SUNGARD
> Sent: jeudi 8 juillet 2004 15:47
> To: 'Ant Users List'
> Subject: RE: Mapper: renaming + flattening
>
>
> It might be because I am using
It might be because I am using ant 1.5.3 then because I get this output:
[mkdir] Created dir: D:\DVLP\Dir-a\subdir
[mkdir] Created dir: D:\DVLP\Dir-b\subdir
[mkdir] Created dir: D:\DVLP\Dir-c\subdir
[touch] Creating D:\DVLP\Dir-a\subdir\file.template
[touch] Creating D:\DVLP\Dir
Your example works fine for me.
outputs:
c:
Created dir: /home/preilly/learning/a/copy/Dir-a/subdir
Created dir: /home/preilly/learning/a/copy/Dir-b/subdir
Created dir: /home/preilly/learning/a/copy/Dir-c/subdir
Creating /home/preilly/learning/a/co