vmassol     2002/10/30 13:01:44

  Modified:    src/java/org/apache/maven/app LazyAttainGoalTag.java
  Log:
  Use findVariable() instead of getVariable() so that the maven object is looked for 
in the hierarchy of Jelly contexts. Most notably this allows to use the <attainGoal> 
tag from within <j:thread> blocks.
  
  Revision  Changes    Path
  1.3       +2 -2      
jakarta-turbine-maven/src/java/org/apache/maven/app/LazyAttainGoalTag.java
  
  Index: LazyAttainGoalTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/app/LazyAttainGoalTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LazyAttainGoalTag.java    22 Oct 2002 03:52:29 -0000      1.2
  +++ LazyAttainGoalTag.java    30 Oct 2002 21:01:44 -0000      1.3
  @@ -93,7 +93,7 @@
        */
       public void doTag(final XMLOutput output) throws Exception
       {
  -        Maven maven = (Maven) getContext().getVariable( "maven.obj" );
  +        Maven maven = (Maven) getContext().findVariable( "maven.obj" );
   
           PluginManager pluginManager = maven.getPluginManager();
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>

Reply via email to