As I read my post again, I think I can clarify this a bit with more code:

<path id="files.to.copy">
    <pathelement location="fileA" />
    <pathelement location="fileB" />
    <pathelement location="fileC" />
</path>

<chainedmapper id="files.mapping">
   <flattenmapper/>
   <mapper>
       <globmapper from="fileA" to="mapped_fileA"/>
       <globmapper from="fileB" to="mapped_fileB"/>
   </mapper>
</chainedmapper>

<copy todir="newPlace">
    <path>
        <path refid="files.to.copy" />
    </path>
    <mapper refid="files.mapping" />
</copy>

So, what I want is, that all the files get copied. If there is a mapping for the file name use the mapped file name, otherwise use the original file name.

Is there another way to achieve this, without defining the identity mapping "manually" in the mapper?


Cheers,
Leif


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to