ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Kriger <andy.kri...@gmail.com>
Subject Re: How can I execute Ant targets from within a Java program?
Date Sun, 23 Jan 2005 19:51:03 GMT
<project name="myProject" default="default" basedir=".">
...
</project>

The project does have an import element . But the code does not even
seem to be reaching that, being thrown off by the description element
(the first element under project).

On Sun, 23 Jan 2005 20:11:04 +0100, Maik Dobryn <maik@dobryn.de> wrote:
> 
> 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 
> 
>

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


Mime
View raw message