RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> Here's working code: > > > > > > > > > > >from="^[-_a-zA-Z0-9]+/lib/(.*)" > to="\1" /> > > > One more observation is that the is also a "grepper" (as in "map" and "grep" in Perl), i.e. a filter defining a match c

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> And this is hardly surprising as I was confounding shell patterns and > regular expressions. The following, while not working, is at least a > suitable regular expression: > >from="${source.dir}/[-_a-zA-Z0-9]+/lib/(.*)" > to="\1" /> But of course, just for the fun of it, I had i

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> The following does not work for me, though: > > > > > > > > > > >handledirsep="1"/> And this is hardly surprising as I was confounding shell patterns and regular expressions. The following, while not working, is at least a suitable regular

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> From: Ludwig, Michael > Unfortunately, however, the task in Ant 1.8.1 does not support > a nested . > > copy doesn't support the nested "regexmapper" element. Fortunately, however, it starts supporting it once you spell it correctly: The following does not work for me, though:

Re: Is ANT support WebDav task?

2010-09-18 Thread Chee Yang Chau
I don't understand, how to use ant-webdav? On Sat, Sep 18, 2010 at 10:24 PM, Ludwig, Michael < michael.lud...@delphi-mb.de> wrote: > > From: Chee Yang Chau > > To: Ant Users List > > Subject: Is ANT support WebDav task? > > > > As subject. > > From "Ant in Anger", apparently written in 2005: > >

RE: Is ANT support WebDav task?

2010-09-18 Thread Ludwig, Michael
> From: Chee Yang Chau > To: Ant Users List > Subject: Is ANT support WebDav task? > > As subject. >From "Ant in Anger", apparently written in 2005: A WebDav task has long been discussed, which would provide a more secure upload to web servers, but it is still in the todo list. Rumour has

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> Now I want to copy the files below src/*/lib, or most of them. > And I want to strip the leading two directories. I came up with > the following solution, but it is clumsy and I think there is > a better way that I'm missing. It appears to me from the documentation of the Mapper Type [1] that re

RE: simplify copy with regexpmapper (mapper/regexp)

2010-09-18 Thread Ludwig, Michael
> What about something like this: > > > > > > > > > > > > > I stole this from the ANTLR build script for actionscript target. It > does have a couple other replacestring elements, but this is the one > you would be interes

Is ANT support WebDav task?

2010-09-18 Thread Chee Yang Chau
As subject. -- Best regards, Chau Chee Yang E Stream Software Sdn Bhd URL: www.sql.com.my SQL Financial Accounting