Hi, Jason,

On 6/4/07, Jason van Zyl <[EMAIL PROTECTED]> wrote:

When run as part of the lifecycle the executedProject will be empty.
If you run the individual goal then the forked lifecycle will fire
and the executedProject will be populated. I think in most cases we
should just make this transparent but we don't and that's how it
currently works. So if you want the mojo to work in a lifecycle as
well as direct invocation then you need to do something like

getProject()
{
    if ( executedProject != null )
      return executedProject;
    else
      return project;
}

thanks for the explanation. One more question though. From my
experience, I'd like to question the condition "executedProject !=
null". My impression is, that the executedProject in the case of a
direct call seems to be an "empty project", but different from null.
Is that correct?


Jochen

--
Women have the ability to wind you round their little finger.
Daughters can use all of the fingers together.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to