ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark Bram <relaxed...@optusnet.com.au>
Subject Re: Problem using org.apache.tools.ant.taskdefs.Java
Date Wed, 30 Jun 2004 06:15:55 GMT
Thank you Stefan - this fixed up the problem! :)


>
>>        // Run common.guitools.Test as a Java task
>>        Java testTask = new Java();
>
> Ant usually does more than that, in particular it invokes setProject
> with a valid project reference - and without actually checking the
> code I'd bet the NPE you see is Ant trying to use that project
> reference.
>
>          Java testTask = (Java) getProject().createTask("java");


Rob
:)



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


Mime
View raw message