ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Sunde" <msu...@actional.com>
Subject RE: BeanShellDef - java.lang.LinkageError: duplicate class definition: AList
Date Thu, 29 Jan 2004 17:20:55 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message