ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Tasker <>
Subject Copy files to output, but a directory higher...
Date Fri, 27 Sep 2002 15:46:08 GMT
I am trying to copy files from /src/blah/I18N -> /output/blah for my whole
source hierarchy using the glob mapper, I saw some postings on cross
platform problems, but cannot get it to work.  I am using ant1.4.1 on

Here is the task:
<copy todir="${output}" >
    <fileset dir="${src}">
        <include name="**/I18N/*.properties"/>
    <mapper type="glob" from="/I18N/*" to="/*"/>

I have tried:
<mapper type="glob" from="I18N\*" to="*"/>
<mapper type="glob" from="\I18N\*" to="\*"/>
<mapper type="glob" from="\/I18N\/*" to="\/*"/>
<mapper type="glob" from="/\I18N/\*" to="/\*"/>
<mapper type="glob" from="I18N${file.separator}*" to="${file.separator}*"/>

Am I just being a lamer?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message