> > 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>