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 DefaultExecutor.java
Date Thu, 24 Jan 2002 11:40:58 GMT
donaldp     02/01/24 03:40:58

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/api Task.java
               proposal/myrmidon/src/java/org/apache/myrmidon/components/executor
                        DefaultExecutor.java
  Log:
  Moved ROLE string to the only place it is being used.
  
  Revision  Changes    Path
  1.12      +0 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/api/Task.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Task.java	24 Jan 2002 11:35:37 -0000	1.11
  +++ Task.java	24 Jan 2002 11:40:58 -0000	1.12
  @@ -24,8 +24,6 @@
    */
   public interface Task
   {
  -    String ROLE = "org.apache.myrmidon.api.Task";
  -
       /**
        * Specify the context in which the task operates in.
        * The Task will use the TaskContext to receive information
  
  
  
  1.20      +3 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/DefaultExecutor.java
  
  Index: DefaultExecutor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/DefaultExecutor.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DefaultExecutor.java	24 Jan 2002 11:36:53 -0000	1.19
  +++ DefaultExecutor.java	24 Jan 2002 11:40:58 -0000	1.20
  @@ -33,6 +33,8 @@
       private final static Resources REZ =
           ResourceManager.getPackageResources( DefaultExecutor.class );
   
  +    private static final String TASK_ROLE = Task.class.getName();
  +
       private Configurer m_configurer;
   
       /**
  @@ -83,7 +85,7 @@
       {
           try
           {
  -            final TypeFactory factory = frame.getTypeManager().getFactory( Task.ROLE );
  +            final TypeFactory factory = frame.getTypeManager().getFactory( TASK_ROLE );
               return (Task)factory.create( name );
           }
           catch( final TypeException te )
  
  
  

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