ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor AspectAwareExecutor.java
Date Wed, 19 Dec 2001 10:37:00 GMT
donaldp     01/12/19 02:37:00

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/executor
                        AspectAwareExecutor.java
  Log:
  Fix bug where aspect'ized tasks would get null content.
  
  Revision  Changes    Path
  1.9       +10 -0     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/AspectAwareExecutor.java
  
  Index: AspectAwareExecutor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/AspectAwareExecutor.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AspectAwareExecutor.java	2001/11/26 11:35:51	1.8
  +++ AspectAwareExecutor.java	2001/12/19 10:37:00	1.9
  @@ -15,6 +15,8 @@
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.DefaultConfiguration;
  +import org.apache.avalon.framework.configuration.DefaultConfigurationSerializer;
  +import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.myrmidon.api.Task;
  @@ -127,6 +129,14 @@
   
           processAttributes( taskModel, newTaskModel, parameterMap );
           processElements( taskModel, newTaskModel, elementMap );
  +        try
  +        {
  +            newTaskModel.setValue( taskModel.getValue() );
  +        }
  +        catch( final ConfigurationException cee )
  +        {
  +            //Will never occur
  +        }
   
           dispatchAspectsSettings( parameterMap, elementMap );
           checkForUnusedSettings( parameterMap, elementMap );
  
  
  

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


Mime
View raw message