ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fenlason, Josh" <>
Subject regexpmapper question
Date Thu, 19 Oct 2006 20:14:43 GMT
I'm trying to move some files using regexpmapper and I'm not having much
luck, probably because I'm no good at regular expressions.
I have a directory structure like this:
I would like to move everything inside of foo-0.1.2-bar, but not
foo-0.1.2-bar itself, to another directory.  One thing is that the
version number in the top directory, foo-0.1.2-bar, will change in the
future, so I need the regular expression to account for that.
Here's what I've tried so far.
<move todir="${dest.dir}">
    <fileset dir="${temp.dir}">
        <include name="*" />
    <regexpmapper from="${temp.dir}/foo-(\d).(\d).(\d)-bar/*"
to="${destDir}" />
Unfortunately, this doesn't move anything or give me any errors.  I
don't suppose anyone could give me some pointers?  Thanks in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message