[Yanel-commits] rev 26280 - public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils

michi at wyona.com michi at wyona.com
Wed Jul 25 14:09:55 CEST 2007


Author: michi
Date: 2007-07-25 14:09:54 +0200 (Wed, 25 Jul 2007)
New Revision: 26280

Modified:
   public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java
Log:
comment added re how to implement context listing differently

Modified: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java	2007-07-25 11:19:59 UTC (rev 26279)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/utils/TomcatContextHandler.java	2007-07-25 12:09:54 UTC (rev 26280)
@@ -33,6 +33,12 @@
     public TomcatContextHandler(HttpServletRequest request) throws Exception {
         this.webappsDirectoryPath = request.getSession().getServletContext().getRealPath(".") + File.separator + ".." + File.separator;
         this.webappsDirectory = new File(webappsDirectoryPath);
+
+        // TODO: This directory should not be hardcoded here, but rather configurable somewhere!
+        // resp. see
+        // http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/manager/ManagerServlet.java
+        // http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/manager/HTMLManagerServlet.java
+        // which generates the context overview: http://127.0.0.1:8080/manager/html (whereas add roles manager to conf/tomcat-users.xml and restart Tomcat)
         this.contextConfPath = webappsDirectoryPath  + ".." + File.separator + "conf" + File.separator + "Catalina" + File.separator + "localhost" + File.separator;
         this.contextConfDirectory = new File(contextConfPath);
     }
@@ -176,4 +182,4 @@
             throw new Exception("Deletion of webapp (" + webappsDirectoryPath + webapp + ") not successful!" + e);
         }
     }
-}
\ No newline at end of file
+}



More information about the Yanel-commits mailing list