ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Tasker <rtas...@slb.com>
Subject Re: Copy files to output, but a directory higher...
Date Mon, 30 Sep 2002 10:25:26 GMT
> > I am trying to copy files from /src/blah/I18N -> /output/blah
> Is blah a constant or can blah change? I.e. are there multiple values
> for blah in a single <copy>?  If so, you'll need to use a regexp
> mapper instead of a glob mapper.
>
> <mapper type="regexp" from="(.*)/I18N/(.*)" to="\1/\2"/>
This is the case, where the <copy> is recursing a directory structure.


> <copy todir="${output}" >
>     <fileset dir="${src}">
>         <include name="**/I18N/*.properties"/>
>     </fileset>
>     <mapper type="regexp" from="(.*)/I18N/(.*)" to="\1/\2"/>
> </copy>


Using the regexp mapper above, I get the following message for each file in
the fileset when I run the task:
...
    [copy] com\slb\Modules\ParkEditor\I18N\F6Device.properties skipped -
don't know how to handle it
    [copy] com\slb\Modules\Supervisor\alarm\I18N\AlarmSupervisor.properties
skipped - don't know how to handle it
...

Does the regexp mapper work on the filename string (e.g.
F6Device.properties) or on the complete path string (e.g.
com\slb\tt\genSrv\Modules\ParkEditor\I18N\F6Device.properties)?

It seems as if the from clause is causing the problem, I get the same result
even if I change the fileset to:
 <include name="**/*.properties"/>

Any ideas?
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