[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...

Gavin King gavin.king at jboss.com
Wed Mar 7 00:43:56 EST 2007


  User: gavin   
  Date: 07/03/07 00:43:56

  Modified:    src/main/org/jboss/seam/init  Initialization.java
  Log:
  fix case where no hotdeploy
  
  Revision  Changes    Path
  1.157     +16 -15    jboss-seam/src/main/org/jboss/seam/init/Initialization.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Initialization.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/Initialization.java,v
  retrieving revision 1.156
  retrieving revision 1.157
  diff -u -b -r1.156 -r1.157
  --- Initialization.java	7 Mar 2007 05:20:40 -0000	1.156
  +++ Initialization.java	7 Mar 2007 05:43:56 -0000	1.157
  @@ -62,7 +62,7 @@
   /**
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.156 $
  + * @version $Revision: 1.157 $
    */
   public class Initialization
   {
  @@ -540,9 +540,9 @@
            String webxmlPath = contextClassLoader.getResource("META-INF/debug.xhtml").toExternalForm();
            String hotDeployDirectory = webxmlPath.substring( 9, webxmlPath.length()-46 ) + "dev";
            File directory = new File(hotDeployDirectory);
  -         log.info(directory);
  +         if ( directory.exists() )
  +         {
            URL url = directory.toURL();
  -         log.info(url);
            /*File[] jars = directory.listFiles( new FilenameFilter() { 
                  public boolean accept(File file, String name) { return name.endsWith(".jar"); } 
            } );
  @@ -555,6 +555,7 @@
            hotDeployClassLoader = new URLClassLoader(urls, contextClassLoader);
            hotDeployPaths = new File[] {directory};
         }
  +      }
         catch (MalformedURLException mue)
         {
            throw new RuntimeException(mue);
  
  
  



More information about the jboss-cvs-commits mailing list