Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Wayne Hassman
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 interested in "removing" high level

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Michael Ludwig
Niklas Matthies schrieb am 17.09.2010 um 15:08 (+0200): > Well, Michael wrote "I want to strip the leading two directories", and > also "/lib/**/*.*", which suggests that there can be directories below > "lib", and his regex just strips the directories up to "lib". Right. > Anyway, I'd be intere

Help publishing from one repository to another repository

2010-09-17 Thread Scott Goldstein
I'm trying to write a java app that will publish artifacts from one repository to another. The problem I'm running into seems to be caused by the PublishEngine behavior with respect to revision. Specifically, in my first repository, the revision is the build number. In my second repository, t

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Michael Ludwig
Stefan Bodewig schrieb am 17.09.2010 um 14:54 (+0200): > On 2010-09-17, Niklas Matthies wrote: > > On Fri 2010-09-17 at 14:36h, Stefan Bodewig wrote on user: > >> On 2010-09-16, Ludwig, Michael wrote: > > >>> What I'm wondering is if there isn't some option like in tools > >>> such as wget (--cut-

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Niklas Matthies
On Fri 2010-09-17 at 14:54h, Stefan Bodewig wrote on user: > On 2010-09-17, Niklas Matthies wrote: : > > But "flatten" also cuts away all sub-directories. > > Absolutely, hence "since you really want to remove all dirs". > > > If for example the files to copy are Java source files under multiple

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Stefan Bodewig
On 2010-09-17, Niklas Matthies wrote: > On Fri 2010-09-17 at 14:36h, Stefan Bodewig wrote on user: >> On 2010-09-16, Ludwig, Michael wrote: >>> What I'm wondering is if there isn't some option like in tools such >>> as wget (--cut-dirs to shorten the path) or cpio or tar, which in >>> Ant's case

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Niklas Matthies
On Fri 2010-09-17 at 14:36h, Stefan Bodewig wrote on user: > On 2010-09-16, Ludwig, Michael wrote: > > > What I'm wondering is if there isn't some option like in tools such > > as wget (--cut-dirs to shorten the path) or cpio or tar, which in > > Ant's case would probably translate to a mapper, li

Re: simplify copy with regexpmapper (mapper/regexp)

2010-09-17 Thread Stefan Bodewig
On 2010-09-16, Ludwig, Michael wrote: > What I'm wondering is if there isn't some option like in tools such > as wget (--cut-dirs to shorten the path) or cpio or tar, which in > Ant's case would probably translate to a mapper, like cut-dirs-mapper. flatten Since you really want to remove all dir