User: mnf999  
  Date: 02/02/06 21:58:52

  Modified:    src/main/org/jboss/deployment DeploymentInfo.java
  Log:
  Fix for webinf/classes at UCL level
  
  Revision  Changes    Path
  1.5       +8 -5      jboss/src/main/org/jboss/deployment/DeploymentInfo.java
  
  Index: DeploymentInfo.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/DeploymentInfo.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DeploymentInfo.java       2002/02/04 01:50:52     1.4
  +++ DeploymentInfo.java       2002/02/07 05:58:49     1.5
  @@ -54,7 +54,7 @@
   * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Schulze</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  -* @version   $Revision: 1.4 $ <p>
  +* @version   $Revision: 1.5 $ <p>
   *
   *      <b>20011211 marc fleury:</b>
   *      <ul>
  @@ -140,10 +140,6 @@
         // The key url the deployment comes from 
         this.url = url;
         
  -      // Does it even exist?
  -      try { url.openStream().close(); }
  -         catch (Exception e) {throw new DeploymentException("url "+url+" could not 
be opened, does it exist?");}
  -      
         // this may be changed by deployers in case of directory and xml file 
following
         this.watch =url;
         
  @@ -153,6 +149,13 @@
         // Is it a directory?
         if (url.getProtocol().startsWith("file") && new 
File(url.getFile()).isDirectory()) 
            this.isDirectory = true;
  +      
  +      // Does it even exist?
  +      if (!isDirectory) 
  +      {
  +         try { url.openStream().close(); }
  +            catch (Exception e) {throw new DeploymentException("url "+url+" could 
not be opened, does it exist?");}
  +      }
         
         // marcf FIXME FIXME 
         // DO the same for the URL based deployments
  
  
  

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

Reply via email to