User: mnf999  
  Date: 02/02/07 00:56:35

  Modified:    src/main/org/jboss/web AbstractWebContainer.java
  Log:
  Modifications to the war deployment of webinf/classes
  
  Revision  Changes    Path
  1.21      +6 -6      jboss/src/main/org/jboss/web/AbstractWebContainer.java
  
  Index: AbstractWebContainer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- AbstractWebContainer.java 7 Feb 2002 06:01:28 -0000       1.20
  +++ AbstractWebContainer.java 7 Feb 2002 08:56:35 -0000       1.21
  @@ -128,7 +128,7 @@
   @see org.jboss.security.SecurityAssociation;
   
   @author  [EMAIL PROTECTED]
  -@version $Revision: 1.20 $
  +@version $Revision: 1.21 $
   */
   public abstract class AbstractWebContainer 
   extends ServiceMBeanSupport 
  @@ -247,7 +247,7 @@
         try {jarFile = ((JarURLConnection)new 
URL("jar:"+di.localUrl.toString()+"!/").openConnection()).getJarFile();}
            catch (Exception ignored) {throw new 
DeploymentException(ignored.getMessage());}
         
  -      boolean directoryCreated = false;
  +      boolean uclCreated = false;
         
         for (Enumeration e = jarFile.entries(); e.hasMoreElements(); )
         {
  @@ -262,13 +262,13 @@
               
               try {
                  
  -               
                  // We use the name of the entry as the name of the file under deploy 
                  File outFile = new File(localCopyDir, 
di.shortName+".webinf"+File.separator+name);
                  
  -               if (!directoryCreated) 
  +               outFile.getParentFile().mkdirs();
  +               
  +               if (!uclCreated) 
                  {
  -                  outFile.getParentFile().mkdirs();
                     
                     DeploymentInfo sub = new 
DeploymentInfo(outFile.getParentFile().toURL(), di);
                     // There is no copying over, just use the url for the UCL
  @@ -277,7 +277,7 @@
                     // Create a URL for the sub
                     sub.createClassLoaders();
                     
  -                  directoryCreated = true;  
  +                  uclCreated = true;  
                     
                     di.subDeployments.add(sub);
                  }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to