Ok, I have coded ant-type magic attribute over lunch.
<target name="run" depends="init">
<typedef name="myfileset" classname="MyFileSet" classpath="classes"/>
<mkdir dir="output"/>
<copy todir="output">
<fileset ant-type="myfileset" dir="src" newattribute="Hi"/>
</copy>
</target>
I will update Patch 19446 over the weekend with
the changes.
Peter.
On Thursday 01 May 2003 09:24, peter reilly wrote:
> On Wednesday 30 April 2003 18:17, Costin Manolache wrote:
> > All the discussions so far were about adding an addSomething() - while
> > leaving all existing use cases unmodified.
>
> Stefan introduced the concept of a typedef attribute, which allows
> the ant core code to substitute a different class (named type) without
> adding code to the current tasks/datatypes.
>
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]