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/framework AbstractContainerTask.java
Date Sat, 05 Jan 2002 03:04:49 GMT
donaldp     02/01/04 19:04:49

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework
                        AbstractContainerTask.java
  Log:
  No need to implement resolveValue as TaskContext now supports that method directly.
  
  Revision  Changes    Path
  1.9       +1 -30     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java
  
  Index: AbstractContainerTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AbstractContainerTask.java	23 Dec 2001 06:25:36 -0000	1.8
  +++ AbstractContainerTask.java	5 Jan 2002 03:04:49 -0000	1.9
  @@ -16,6 +16,7 @@
   import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  +import org.apache.avalon.framework.context.Context;
   import org.apache.myrmidon.api.AbstractTask;
   import org.apache.myrmidon.converter.Converter;
   import org.apache.myrmidon.converter.ConverterException;
  @@ -50,36 +51,6 @@
           m_configurer = (Configurer)componentManager.lookup( Configurer.ROLE );
           m_converter = (MasterConverter)componentManager.lookup( MasterConverter.ROLE );
           m_executor = (Executor)componentManager.lookup( Executor.ROLE );
  -    }
  -
  -    /**
  -     * Helper method to resolve a string.
  -     *
  -     * @param value the value to resolve
  -     * @return the resolved value
  -     * @exception ConfigurationException if an error occurs
  -     */
  -    protected final Object resolve( final String value )
  -        throws ConfigurationException
  -    {
  -        try
  -        {
  -            final Object object =
  -                PropertyUtil.resolveProperty( value, getContext(), false );
  -
  -            if( null == object )
  -            {
  -                final String message = REZ.getString( "container.null-value.error", value
);
  -                throw new ConfigurationException( message );
  -            }
  -
  -            return object;
  -        }
  -        catch( final PropertyException pe )
  -        {
  -            final String message = REZ.getString( "container.bad-resolve.error", value
);
  -            throw new ConfigurationException( message, pe );
  -        }
       }
   
       /**
  
  
  

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