User: user57  
  Date: 02/02/05 17:58:42

  Modified:    src/main/org/jboss/deployment MainDeployer.java
  Log:
   o changed a few info's to debugs
   o added exitOnShutdown flag to Server, which when set to true will call
     System.exit and when false will only invoke the shutdown hook.
   o exposed exit() to compliment the halt() exposure
   o added exit(int) and halt(int) to expose a bit more control to the admin
     console.
   o By default exitOnShutdown will be false, but Main will always set it to
     true after creation of the Server object, since it is the controlling
     entity (Server is embeded inside of it).
  
  Revision  Changes    Path
  1.8       +10 -7     jboss/src/main/org/jboss/deployment/MainDeployer.java
  
  Index: MainDeployer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/MainDeployer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MainDeployer.java 2002/02/04 01:50:52     1.7
  +++ MainDeployer.java 2002/02/06 01:58:42     1.8
  @@ -42,7 +42,7 @@
   * Takes a series of URL to watch, detects changes and calls the appropriate 
Deployers 
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @version $Revision: 1.7 $
  +* @version $Revision: 1.8 $
   *
   *
   */
  @@ -365,6 +365,8 @@
      public void deploy(DeploymentInfo deployment) 
      throws DeploymentException
      {      
  +      boolean debug = log.isDebugEnabled();
  +
         try {
            // If we are already deployed return
            if (deployments.containsKey(deployment.url)) return;
  @@ -389,18 +391,17 @@
            if (deployment.deployer != null) deployment.deployer.deploy(deployment);
               
            deployment.status="Deployed";
  -         
  -         log.info("Done deploying "+deployment.shortName);
  -      
  +
  +         if (debug) {
  +         log.debug("Done deploying " + deployment.shortName);
  +      }
         }  
         catch (DeploymentException e) 
         { 
  -         
            deployment.status="Deployment FAILED reason: "+e.getMessage();
            
            throw e;
         }
  -      
         finally 
         {
            // whether you do it or not, for the autodeployer
  @@ -413,7 +414,9 @@
            if 
(!deployment.url.toString().startsWith("file:"+System.getProperty("jboss.system.home")+File.separator+"tmp"+File.separator+"deploy"))
            {
               deploymentsList.add(deployment);
  -            if (log.isDebugEnabled()) log.debug("Watching new file: " + 
deployment.url);  
  +            if (debug) {
  +            log.debug("Watching new file: " + deployment.url);  
  +         }
            }
         }
      }
  
  
  

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

Reply via email to