http://ant.apache.org/manual/CoreTypes/mapper.html
here's my target:
<target name="ms.copy-example">
<copy todir="${ms.custom}">
<fileset dir="${ms.example}">
<include name="build.xml" />
</fileset>
<scriptmapper language="javascript">
self.addMappedName("dir1/"+source);
self.addMappedName("dir2/"+source);
self.addMappedName("dir3/"+source);
</scriptmapper>
</copy>
</target>
I'm trying to copy one file into 3 places. I don't care if I use a scriptmapper to do this, but I didn't see any other way to do it. What's actually happening, though, is that it's only copying the file into the first one in the list (dir1) and not the other two (dir2, dir3). Anyone have any ideas?
Thanks, Ben