Gilbert Rebhan schrieb: > Stefan wrote = > /* > I'm trying to write a custom copy task using scriptdef & ruby > but I don't find the documentation I need. The script should > (as an example) do the same as the copy task. How do I access > the original file and the mapped file ? Like in this skeleton: > > <scriptdef name="mycopy" language="ruby"> > ??? > </scriptdef> > > <mycopy> > <fileset dir="." casesensitive="false"> > <include name="MyFiles.*"/> > </fileset> > <mapper> > <globmapper handledirsep="true" from="MyFiles.*" > to="MyMappedFiles.*"/> > </mapper> > </mycopy> > */ >
P.S. - forgot to ask = What do you want/need to achieve with your scriptdef ? To copy the behaviour of <copy>/<mapper> from core ant in some scripting language doesn't make sense IMO !? Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
