Hi,
> > Looking at your example of reflectdef, the only thing I
> don't like is
> > the line:
> > hello.class;
> > I prefer how it is done in beanshelldef with the classname
> attribute.
> > That is just my $0.02,so do what you think is best.
>
>
> I have just realized that one does not need to do this, if the last
> statement is
> a class definition, this is returned as an object.
> so
> <reflectdef name="x" language="beanshelldef">
> import...
> class MyTaskDefintion extends Task {
> }
> </reflectdef>
> works!
>
Great!
>> For now, I managed to modify beanshelldef to work around the antcall
>> problem. See the attachment.
>>
>>
> Pretty neat, but won't work for the general language case. - It may be
> possible to use a different classloader
> for each definition or use textual comparision for override checking.
For now, the modifications I did to beanshelldef are working, but like you
said, the fix may not work in all cases. Hopefully there is a clean solution
and reflectDef can make it into the next release of ant.
Thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]