avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader DefaultPolicy.java
Date Wed, 30 Jan 2002 09:28:25 GMT
donaldp     02/01/30 01:28:25

  Modified:    src/java/org/apache/avalon/phoenix/components/classloader
                        DefaultPolicy.java
  Log:
  Fix bug that could result in properties being placed in the System properties rather than
into a new map.
  
  Submitted By: steve@shortcentral.com (Steve Short)
  
  Revision  Changes    Path
  1.4       +3 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/DefaultPolicy.java
  
  Index: DefaultPolicy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/DefaultPolicy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultPolicy.java	11 Dec 2001 10:13:33 -0000	1.3
  +++ DefaultPolicy.java	30 Jan 2002 09:28:25 -0000	1.4
  @@ -51,7 +51,9 @@
   
       protected DefaultPolicy( final File baseDirectory )
       {
  -        m_context = new DefaultContext( System.getProperties() );
  +        final HashMap map = new HashMap();
  +        map.putAll( System.getProperties() );
  +        m_context = new DefaultContext( map );
           m_context.put( "/", File.separator );
           m_context.put( "app.home", baseDirectory );
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message