portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment DeploymentEventDispatcher.java
Date Fri, 16 Jan 2004 19:38:40 GMT
weaver      2004/01/16 11:38:40

  Modified:    portal/src/java/org/apache/jetspeed/deployment
                        DeploymentEventDispatcher.java
  Log:
  DeploymentDispatcher now handles Deployment failuers better now
  alters event status
  
  Revision  Changes    Path
  1.2       +7 -5      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/DeploymentEventDispatcher.java
  
  Index: DeploymentEventDispatcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/DeploymentEventDispatcher.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DeploymentEventDispatcher.java	14 Jan 2004 19:32:57 -0000	1.1
  +++ DeploymentEventDispatcher.java	16 Jan 2004 19:38:40 -0000	1.2
  @@ -73,8 +73,10 @@
   {
       private List deploymentListeners;
       private String deploymentRoot;
  +
  +    protected static final Log log = LogFactory.getLog("deployment");
  +    
       
  -    private static final Log log = LogFactory.getLog(DeploymentEventDispatcher.class);
       
   
       public DeploymentEventDispatcher(String deploymentRoot)
  @@ -98,12 +100,12 @@
       		try
               {
                   listener.invoke(event);
  +				event.setStatus(DeploymentEvent.STATUS_OKAY);
               }
               catch (DeploymentException e)
               {   
  -            	// log and continue
  -            	             
  -                
  +            	log.error(e.toString());           	             
  +                event.setStatus(DeploymentEvent.STATUS_FAILED);
               }
       	}
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message