ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <...@schillbaer.de>
Subject Re: scriptdef with nested fileset and mapper
Date Fri, 17 Oct 2008 22:14:51 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message