ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Proposed refactoring of scanDir() functionality
Date Tue, 07 Nov 2000 08:02:35 GMT
>>>>> "JAF" == Jose Alberto Fernandez <JFernandez@viquity.com> writes:

 >> From: Stefan Bodewig [mailto:bodewig@bost.de]

 >> <mapper type="regexp" from="strip/this/(.+)\.oldext$"
 >>         to="\1.newext" />

 JAF> Do you have any ideas on how to specify 1 to many mappers?

I had thought about this but did not come to a solution.

 JAF>  <mapper type="regexp" from="(.+)\.java" > 
 JAF>    <map to="\1_stub.java" /> 
 JAF>    <map to="\1_skel.java" /> 
 JAF>  </mapper>

Is one option, maybe make that <to name="" />, don't know.

What I really wouldn't want to get into is having multiple rules in
one mapper - not that you had talked about it.

Stefan

Mime
View raw message