ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Tasker <rtas...@slb.com>
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
Windows.

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

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?

Thanks
Richard


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


Mime
View raw message