You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/02 19:14:08 UTC

cvs commit: jakarta-turbine-maven/src/java/org/apache/maven MavenSession.java

jvanzyl     2003/01/02 10:14:08

  Modified:    src/java/org/apache/maven MavenSession.java
  Log:
  o fixing the setting of the project in the root context when no project
    is specified.
  
  Revision  Changes    Path
  1.3       +6 -1      jakarta-turbine-maven/src/java/org/apache/maven/MavenSession.java
  
  Index: MavenSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/MavenSession.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MavenSession.java	1 Jan 2003 03:10:30 -0000	1.2
  +++ MavenSession.java	2 Jan 2003 18:14:08 -0000	1.3
  @@ -307,6 +307,11 @@
               // in the rest of the code.
               Project globalProject = new Project();
               globalProject.setId( "Global Project" );
  +
  +            // We need to set the project of the root context so the plugin manager
  +            // has a project to run jelly scripts against.
  +            getRootContext().setProject( globalProject );
  +
               globalProject.setContext( getRootContext() );
               setRootProject( globalProject );
           }