Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Help with (regexp?) file mapper

Help with (regexp?) file mapper

2005-06-27       - By Dominique Devienne
Reply:     1     2     3     4     5     6     7     8     9  

> From: Emmanouil Batsis [mailto:Emmanouil.Batsis@(protected)]
> ${file.separator} does not work for regexp mapper but that is a minor
> issue; the real issue, IMHO, is using mappers within other tasks. For
> example, the xslt/style allows a nested mapper type="regexp" but that
> does not support the  handledirsep attribute. regexpmapper does, but
> that subtask is not allowed by xslt!

FWIW, you can define an external <mapper> with an ID that contains the
<rexexpmapper> (using the attribute), and refid this one inside <xslt>

Not tested, but a quick look at the code seems to indicate it's possible,
at least on the HEAD>

> Anyway, i just defined a project property to use within mappers and that
> works well.

Do you mind describing your solution in more details, to help those
who search the mailing list archive?

BTW, did you try \${file.separator}? --DD


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.