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-myrmidon/framework/src/test/org/apache/myrmidon/framework/conditions/test TestCondition.java
Date Sun, 21 Apr 2002 01:59:38 GMT
donaldp     02/04/20 18:59:38

  Modified:    framework/src/test/org/apache/myrmidon/framework/conditions/test
                        TestCondition.java
  Log:
  
  
  Revision  Changes    Path
  1.2       +9 -9      jakarta-ant-myrmidon/framework/src/test/org/apache/myrmidon/framework/conditions/test/TestCondition.java
  
  Index: TestCondition.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/framework/src/test/org/apache/myrmidon/framework/conditions/test/TestCondition.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestCondition.java	14 Apr 2002 09:33:13 -0000	1.1
  +++ TestCondition.java	21 Apr 2002 01:59:38 -0000	1.2
  @@ -7,32 +7,32 @@
    */
   package org.apache.myrmidon.framework.conditions.test;
   
  -import org.apache.myrmidon.framework.conditions.Condition;
   import org.apache.myrmidon.api.TaskContext;
   import org.apache.myrmidon.api.TaskException;
  -import org.apache.avalon.framework.configuration.Configurable;
  -import org.apache.avalon.framework.configuration.Configuration;
  -import org.apache.avalon.framework.configuration.ConfigurationException;
  +import org.apache.myrmidon.api.metadata.ModelElement;
  +import org.apache.myrmidon.api.metadata.ModelException;
  +import org.apache.myrmidon.api.metadata.Modeller;
  +import org.apache.myrmidon.framework.conditions.Condition;
   
   /**
    * A condition used for testing.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.1 $ $Date: 2002/04/14 09:33:13 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/21 01:59:38 $
    *
    * @ant.type type="condition" name="true"
    * @ant.type type="condition" name="false"
    * @ant.type type="condition" name="fail"
    */
   public class TestCondition
  -    implements Condition, Configurable
  +    implements Condition, Modeller
   {
       private String m_action;
   
  -    public void configure( final Configuration configuration )
  -        throws ConfigurationException
  +    public void model( final ModelElement element )
  +        throws ModelException
       {
  -        m_action = configuration.getName();
  +        m_action = element.getName();
       }
   
       /**
  
  
  

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