ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace DefaultTaskContext.java
Date Tue, 26 Mar 2002 02:12:01 GMT
adammurdoch    02/03/25 18:12:01

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace
                        DefaultTaskContext.java
  Log:
  Fix DefaultTaskContext.getProperties() to include inherited properties.
  
  Revision  Changes    Path
  1.31      +8 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java
  
  Index: DefaultTaskContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- DefaultTaskContext.java	22 Mar 2002 07:18:08 -0000	1.30
  +++ DefaultTaskContext.java	26 Mar 2002 02:12:01 -0000	1.31
  @@ -26,7 +26,7 @@
    * Default implementation of TaskContext.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.30 $ $Date: 2002/03/22 07:18:08 $
  + * @version $Revision: 1.31 $ $Date: 2002/03/26 02:12:01 $
    */
   public class DefaultTaskContext
       implements TaskContext
  @@ -194,7 +194,13 @@
        */
       public Map getProperties()
       {
  -        return new HashMap( m_contextData );
  +        Map props = new HashMap();
  +        if( m_parent != null )
  +        {
  +            props.putAll( m_parent.getProperties() );
  +        }
  +        props.putAll( m_contextData );
  +        return props;
       }
   
       /**
  
  
  

--
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