Jeremy Crosbie <[EMAIL PROTECTED]> wrote:
> I created my own task that uses the SQLExec task already provided as
> a sub element. I have the following method in my class:
>
> public SQLExec createSql()
> {
> this.sql = new SQLExec();
> return this.sql;
> }
>
> It appears that the 'project' member of the SQLExec instance is not
> being set causing a NullPointerException when the class is trying to
> make calls to the logging facility. I get the same behavior when
> using "addSql(SQLExec sql)" instead.
Right, this is expected behavior. You should use project.createTask
instead of instantiating SQLExec directly.
Stefan