ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tek1 <t...@pobox.com>
Subject Re: getting null when trying to call custom ant task
Date Fri, 19 Apr 2002 06:35:27 GMT
thank you adam.

it helped, as the "task" instance is no longer null.  however, i'm still 
getting a null error when i try to call one of the methods of the "task" 
instance.

what is the standard way/code for calling another custom task from your own 
custom task?

thank you very much.




At 13:01 02/04/19 +1000, you wrote:
>On Fri, 19 Apr 2002 02:43, tek1 wrote:
> > hello.
> >
> > i've written 2 custom ant tasks and am trying to have one (say "ATask")
> > call the other ("BTask")
> >
> > i tried the following in ATask (to reference BTask):
> >
> >
> > someMethod() {
> >
> > 
> this.project.addDataTypeDefinition("atask",Class.forName("com.test.ATask")
>
>Shouldn't that be project.addTaskDefinition()?
>
> >
> >       ATask task = (ATask)this.project.createTask("atask");
> >
>
>--
>Adam
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message