ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: regexp-type <mapper> doesn't work as expected/(advertised?)
Date Fri, 16 Oct 2009 07:10:48 GMT
On Fri, Oct 16, 2009 at 06:20, Stefan Bodewig <bodewig@apache.org> wrote:
[...]
>
>> Err, so what? A regex isn't supposed to match its whole input!
>
> Not in general, but what I described is how the regex mapper works and
> how it is documented to work.  The target file name is constructed from
> the to pattern exclusively.  Any not-matched part of the file name or
> any part not explicitly added to the target file name via group
> references will be ignored.
>
> This may not be what you expected, but it is how the mapper works.
>

I then suggest that the documentation be reviewed to say that the
regex must match all the filename. Simply telling "if the file name
matches the regex in from" is misleading.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message