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
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
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
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-
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
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
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
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