ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees van Dieren" <>
Subject Concat with limited fileset (replacement for regexp mapper)
Date Tue, 08 Mar 2005 12:54:38 GMT


I have a global file set, that is automatically generated some else where.
This fileset is has the id "module-fileset".


I use a a regexp mapper, to select certain files from the fileset for
copying a selection of certain files, for example:

<copy todir="${sql.dir}">

            <fileset refid="module-fileset"/>

<mapper type="regexp" from="(.*)\.sql" to="\1.sql" />



This works perfectly and copies the required files in the way I would like.


Now I would like to do the same to concatenate some files. For example, I
would like to concatenate SQL files. I tried the following:


<concat destfile="${sql.install.dir}/install.sql">

            <fileset refid="module-fileset" />

            <mapper type="regexp" from="(.*)install.sql$"



This doesn't work because the concat task doesn't support a nested mapper


Is there another way to limit an existening fileset, that is being used by a
concat task? I found the filterchain method, but that seems to compare the
content instead of the file / path name.


Thanks in advance.


Kind regards,

Kees van Dieren
Java Software Engineer

MP Objects Software for E-logistics
Stationsplein 45
3013 AK Rotterdam
The Netherlands

Post address:
Postbus 29126
3001 GC Rotterdam

Mobile: +31 (0)6-43068619
Phone: +31 (0)10-2900304
Fax: +31 (0)10-2900305


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