ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maik Dobryn <m...@dobryn.de>
Subject Re: How can I execute Ant targets from within a Java program?
Date Sun, 23 Jan 2005 19:11:04 GMT

Andy,

are You sure about the presence of both, the base directory and the default 
target definition in Your build.xml file?

For example:
<project name="xyz" default="all" basedir=".">


Maik


On Sunday 23 January 2005 19:38, Andy Kriger wrote:
> I added in p.init() and now I get during the parse
>
> java.lang.NullPointerException
> at org.apache.tools.ant.Task.perform(Task.java:373)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at
> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:133)
>

-- 

  Maik  D o b r y n
____________________________________________

  Email : maik@dobryn.de
____________________________________________


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


Mime
View raw message