o if we don't have a project then we don't have any pre/post goals.

this happens when we are initializing a project. maybe for the
  initializing mode we should send in the parent POM. not sure yet.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-12-28 19:30:43 +00:00
parent 1e3e8c5073
commit ebbb80139c
1 changed files with 10 additions and 0 deletions

View File

@ -163,6 +163,11 @@ public class MavenSession
public List getPreGoals( String goal )
{
if ( project == null )
{
return null;
}
List result = (List) preGoalMappings.get( goal );
return result;
@ -170,6 +175,11 @@ public class MavenSession
public List getPostGoals( String goal )
{
if ( project == null )
{
return null;
}
List result = (List) postGoalMappings.get( goal );
return result;