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/impl CatalinaAutoDeploymentServiceImpl.java
Date Fri, 16 Jan 2004 19:40:30 GMT
weaver      2004/01/16 11:40:30

  Modified:    portal/src/java/org/apache/jetspeed/deployment/impl
                        CatalinaAutoDeploymentServiceImpl.java
  Log:
  - added the portlet application deployment event to the dispatcher.
  - gave an obvious name to the file scanner thread
  
  Revision  Changes    Path
  1.4       +6 -3      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/CatalinaAutoDeploymentServiceImpl.java
  
  Index: CatalinaAutoDeploymentServiceImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/CatalinaAutoDeploymentServiceImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CatalinaAutoDeploymentServiceImpl.java	15 Jan 2004 23:47:05 -0000	1.3
  +++ CatalinaAutoDeploymentServiceImpl.java	16 Jan 2004 19:40:30 -0000	1.4
  @@ -117,11 +117,14 @@
           try
           {
               CatalinaPAM catPAM = new CatalinaPAM(server, port, userName, password);
  -            DeployPortletAppEventListener dpal = new DeployPortletAppEventListener(targetDir,
catPAM);
  -            DeploymentEventDispatcher dispatcher = new DeploymentEventDispatcher(targetDir);
  +            
  +            DeployPortletAppEventListener dpal = new DeployPortletAppEventListener(targetDirFile.getCanonicalPath(),
catPAM);
  +            DeploymentEventDispatcher dispatcher = new DeploymentEventDispatcher(targetDirFile.getCanonicalPath());
  +            dispatcher.addDeploymentListener(dpal);
               HashMap handlers = new HashMap();
               handlers.put("war", JARObjectHandlerImpl.class);
               scanner = new FileSystemScanner(stagingDirFile.getCanonicalPath(), handlers,
dispatcher, delay);
  +            scanner.setName("Autodeployment File Scanner Thread");
               scanner.start();
               log.info("Deployment scanner successfuly started!");
           }
  
  
  

---------------------------------------------------------------------
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