ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Tue, 12 Mar 2002 23:08:06 GMT
conor       02/03/12 15:08:06

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  Fix up context class loader setting with regard to build.sysclasspath
  
  Revision  Changes    Path
  1.46      +5 -1      jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -w -u -r1.45 -r1.46
  --- AntClassLoader.java	11 Mar 2002 09:40:20 -0000	1.45
  +++ AntClassLoader.java	12 Mar 2002 23:08:06 -0000	1.46
  @@ -392,7 +392,11 @@
           }
           if (LoaderUtils.isContextLoaderAvailable()) {
               savedContextLoader = LoaderUtils.getContextClassLoader();
  -            LoaderUtils.setContextClassLoader(this);
  +            ClassLoader loader = this;
  +            if ("only".equals(project.getProperty("build.sysclasspath"))) {
  +                loader = this.getClass().getClassLoader();
  +            }
  +            LoaderUtils.setContextClassLoader(loader);
               isContextLoaderSaved = true;
           }
       }
  
  
  

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