Re: NullPointerException with ant Javac() api

2008-04-16 Thread Paolo
Thank you very much! that did the trick! And thanks for the link! Paolo On Wed, 16 Apr 2008 07:24:36 +0200 <[EMAIL PROTECTED]> wrote: > Your task doesnt have a reference to your project, therefore > task.getProject() returns null > > Try setting the project reference > task.setProject(

AW: NullPointerException with ant Javac() api

2008-04-15 Thread Jan.Materne
che Nachricht- > Von: Paolo [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 15. April 2008 17:35 > An: user@ant.apache.org > Betreff: NullPointerException with ant Javac() api > > Hello, > I'm new to ant api. i would like to compile a source from my > application, and i wro

NullPointerException with ant Javac() api

2008-04-15 Thread Paolo
Hello, I'm new to ant api. i would like to compile a source from my application, and i wrote the method below. When i execute it, i get a NullPointerException at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:807) where it says: File srcDir = getProject().resolveFile(list[i]); (it's on th