ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: BeanShellDef - java.lang.LinkageError: duplicate class definition: AList
Date Thu, 29 Jan 2004 14:28:01 GMT
Peter Reilly wrote:

> Peter Reilly wrote:
>
Opps sent by accident!

I meant to send:

> 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!




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message