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/taskdefs/optional/ejb WeblogicDeploymentTool.java
Date Wed, 24 Apr 2002 06:16:46 GMT
conor       02/04/23 23:16:46

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
               src/main/org/apache/tools/ant/taskdefs/optional/ejb
                        WeblogicDeploymentTool.java
  Log:
  Make sure generic jar is not help open by loader
  
  Revision  Changes    Path
  1.52      +1 -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.51
  retrieving revision 1.52
  diff -u -w -u -r1.51 -r1.52
  
  
  
  1.38      +7 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
  
  Index: WeblogicDeploymentTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -w -u -r1.37 -r1.38
  --- WeblogicDeploymentTool.java	15 Apr 2002 14:56:31 -0000	1.37
  +++ WeblogicDeploymentTool.java	24 Apr 2002 06:16:46 -0000	1.38
  @@ -608,7 +608,8 @@
                   }
   
                   //Cycle Through generic and make sure its in weblogic
  -                ClassLoader genericLoader = getClassLoaderFromJar(genericJarFile);
  +                ClassLoader genericLoader 
  +                    = getClassLoaderFromJar(genericJarFile);
   
                   for (Enumeration e = genericEntries.keys(); e.hasMoreElements();) {
                       String filepath = (String) e.nextElement();
  @@ -701,6 +702,11 @@
                   } else {
                       log("Weblogic Jar rebuild needed due to changed "
                            + "interface or XML", Project.MSG_VERBOSE);
  +                }
  +                
  +                if (genericLoader instanceof AntClassLoader) {
  +                    AntClassLoader loader = (AntClassLoader)genericLoader;
  +                    loader.cleanup();
                   }
               } else {
                   rebuild = 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