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/aut/src/java/org/apache/aut/jprocess JavaProcessContextPolicy.java
Date Thu, 02 May 2002 03:15:45 GMT
donaldp     02/05/01 20:15:45

  Modified:    aut/src/java/org/apache/aut/jprocess
                        JavaProcessContextPolicy.java
  Log:
  ThreadName is now handled by DefaultThreadContextPolicy
  
  Revision  Changes    Path
  1.4       +1 -21     jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/JavaProcessContextPolicy.java
  
  Index: JavaProcessContextPolicy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/JavaProcessContextPolicy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JavaProcessContextPolicy.java	28 Apr 2002 04:52:51 -0000	1.3
  +++ JavaProcessContextPolicy.java	2 May 2002 03:15:45 -0000	1.4
  @@ -38,7 +38,7 @@
    * </ul>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.3 $ $Date: 2002/04/28 04:52:51 $
  + * @version $Revision: 1.4 $ $Date: 2002/05/02 03:15:45 $
    * @todo Implement a Redirector for {@link URLStreamHandlerFactory}
    *       and {@link InitialContextFactory}
    */
  @@ -51,7 +51,6 @@
       public static final String PROPERTIES = Properties.class.getName();
       public static final String URL_FACTORY = URLStreamHandlerFactory.class.getName();
       public static final String JNDI_FACTORY = InitialContextFactory.class.getName();
  -    public static final String THREAD_NAME = Thread.class.getName();
       public static final String POLICY = Policy.class.getName();
   
       /**
  @@ -66,7 +65,6 @@
           addEntry( PROPERTIES, Properties.class, true );
           addEntry( URL_FACTORY, URLStreamHandlerFactory.class, true );
           addEntry( JNDI_FACTORY, InitialContextFactory.class, true );
  -        addEntry( THREAD_NAME, String.class, false );
           addEntry( POLICY, Policy.class, false );
       }
   
  @@ -92,17 +90,6 @@
               store.put( POLICY, oldPolicy );
           }
   
  -        if( accessor.containsKey( THREAD_NAME ) )
  -        {
  -            final String newName =
  -                (String)get( accessor, THREAD_NAME, null );
  -
  -            final Thread thread = Thread.currentThread();
  -            final String oldName = thread.getName();
  -            thread.setName( newName );
  -            store.put( THREAD_NAME, oldName );
  -        }
  -
           if( accessor.containsKey( INPUT ) )
           {
               final InputStream newStream =
  @@ -161,13 +148,6 @@
               final Policy policy =
                   (Policy)store.get( POLICY );
               PolicyRedirector.bindPolicy( policy );
  -        }
  -
  -        if( accessor.containsKey( THREAD_NAME ) )
  -        {
  -            final String name =
  -                (String)store.get( THREAD_NAME );
  -            Thread.currentThread().setName( name );
           }
   
           if( accessor.containsKey( INPUT ) )
  
  
  

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