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/container/src/java/org/apache/myrmidon/launcher Main.java
Date Fri, 19 Apr 2002 12:08:51 GMT
adammurdoch    02/04/19 05:08:50

  Modified:    container/src/java/org/apache/myrmidon/launcher Main.java
  Log:
  Set context classloader so that xerces can find itself.
  
  Revision  Changes    Path
  1.17      +2 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/launcher/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/launcher/Main.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Main.java	23 Mar 2002 10:16:35 -0000	1.16
  +++ Main.java	19 Apr 2002 12:08:50 -0000	1.17
  @@ -21,7 +21,7 @@
    * Basic Loader that is responsible for all the hackery to get classloader to work.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.16 $ $Date: 2002/03/23 10:16:35 $
  + * @version $Revision: 1.17 $ $Date: 2002/04/19 12:08:50 $
    */
   public final class Main
   {
  @@ -48,6 +48,7 @@
               properties.put( "myrmidon.shared.classpath", sharedClassPath );
               final URLClassLoader sharedClassLoader = new URLClassLoader( sharedClassPath
);
               properties.put( "myrmidon.shared.classloader", sharedClassLoader );
  +            Thread.currentThread().setContextClassLoader( sharedClassLoader );
   
               // Build the container classloader
               final URL[] containerClassPath = getContainerClassPath( installDirectory );
  
  
  

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