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-myrmidon/framework/src/java/org/apache/myrmidon/framework/factories VfsManagerFactory.java
Date Sat, 15 Jun 2002 03:12:16 GMT
adammurdoch    2002/06/14 20:12:16

  Modified:    container/src/java/org/apache/myrmidon/components/workspace
                        DefaultTaskContext.java
               framework/src/java/org/apache/myrmidon/framework/factories
                        VfsManagerFactory.java
  Log:
  Clean out some unused code.
  
  Revision  Changes    Path
  1.55      +3 -10     jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java
  
  Index: DefaultTaskContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/workspace/DefaultTaskContext.java,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- DefaultTaskContext.java	13 Jun 2002 01:50:28 -0000	1.54
  +++ DefaultTaskContext.java	15 Jun 2002 03:12:16 -0000	1.55
  @@ -137,22 +137,15 @@
           {
               // Lookup the service by role name.  Note that this will chain
               // up to parent ServiceManagers (if any)
  -            if( serviceManager.hasService( classname ) )
  -            {
  -                return serviceManager.lookup( classname );
  -            }
  +            return serviceManager.lookup( classname );
           }
           catch( final ServiceException e )
           {
  +            // Not found
               final String message =
                   REZ.getString( "bad-find-service.error", classname );
               throw new TaskException( message, e );
           }
  -
  -        // Not found
  -        final String message =
  -            REZ.getString( "bad-find-service.error", classname );
  -        throw new TaskException( message );
       }
   
       /**
  
  
  
  1.3       +1 -8      jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/factories/VfsManagerFactory.java
  
  Index: VfsManagerFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/factories/VfsManagerFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- VfsManagerFactory.java	26 Apr 2002 03:22:24 -0000	1.2
  +++ VfsManagerFactory.java	15 Jun 2002 03:12:16 -0000	1.3
  @@ -8,9 +8,6 @@
   package org.apache.myrmidon.framework.factories;
   
   import org.apache.aut.vfs.FileSystemManager;
  -import org.apache.avalon.excalibur.i18n.ResourceManager;
  -import org.apache.avalon.excalibur.i18n.Resources;
  -import org.apache.myrmidon.interfaces.service.AntServiceException;
   import org.apache.myrmidon.interfaces.service.ServiceFactory;
   
   /**
  @@ -24,14 +21,10 @@
   public class VfsManagerFactory
       implements ServiceFactory
   {
  -    private static final Resources REZ
  -        = ResourceManager.getPackageResources( VfsManagerFactory.class );
  -
       /**
        * Create a service that coresponds to this factory.
        */
       public Object createService()
  -        throws AntServiceException
       {
           return new VfsManager();
       }
  
  
  

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