tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justyna Horwat <Justyna.Hor...@eng.sun.com>
Subject [PATCH] context administration
Date Tue, 15 Feb 2000 23:48:52 GMT
Created a simple tool to view tomcat context information, add contexts,
and remove contexts. This is preliminary work in the admin area. Any and
all feedback is welcome.

Created an /admin context that can be used for future administration
tools.

The tar ball includes the following hierarchy that should be placed in the
/src directory.

drwxrwxr-x 0    admin/
drwxrwxr-x 0    admin/contextAdmin/
-rwxr-xr-x 1464 admin/contextAdmin/contextAdmin.jsp
-rwxr-xr-x 1257 admin/contextAdmin/contextAdmin.html
-rwxr-xr-x 729  admin/index.html
drwxrwxr-x 0    admin/WEB-INF/
drwxrwxr-x 0    admin/WEB-INF/classes/
-rwxr-xr-x 4011 admin/WEB-INF/classes/ContextAdmin.java
-rw-rw-r-- 206  admin/WEB-INF/web.xml

The patch also includes creating an admin context in the build.xml file
and adding a link to the tomcat home page:

===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/build.xml,v
retrieving revision 1.31
diff -u -r1.31 build.xml
--- build.xml   2000/02/13 01:16:16     1.31
+++ build.xml   2000/02/15 22:27:29
@@ -76,6 +76,13 @@
     <javac srcdir="src/tests/webpages/WEB-INF/classes"
            destdir="${tomcat.build}/webapps/test/WEB-INF/classes"
            classpath="${tomcat.build}/classes"/>
+
+    <!-- Admin context -->
+    <mkdir dir="${tomcat.build}/webapps/admin"/>
+    <copydir src="src/admin" dest="${tomcat.build}/webapps/admin"/>
+    <javac srcdir="src/admin/WEB-INF/classes"
+           destdir="${tomcat.build}/webapps/admin/WEB-INF/classes"
+           classpath="${tomcat.build}/classes"/>
   </target>


@@ -127,6 +134,11 @@
            basedir="${tomcat.home}/webapps/test"
            items="." />
     <deltree dir="${tomcat.home}/webapps/test"/>
+
+    <jar   jarfile="${tomcat.home}/webapps/admin.war"
+           basedir="${tomcat.home}/webapps/admin"
+           items="." />
+    <deltree dir="${tomcat.home}/webapps/admin"/>

     <!-- Change permissions for unix -->
     <chmod perm="+x" src="${tomcat.home}/bin/tomcat.sh"/>

===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/webpages/index.html,v
retrieving revision 1.5
diff -u -r1.5 index.html
--- index.html  2000/01/17 12:25:34     1.5
+++ index.html  2000/02/15 22:28:36
@@ -6,7 +6,7 @@
    <meta name="Author" content="Anil K. Vijendran">
    <title>Tomcat v3.1M1</title>
 </head>
-<body>
+<body bgcolor="white">
 <img SRC="tomcat.gif" height=92 width=130 align=LEFT><b><font face="Arial,
Helvetica, sans-serif"><font size=+3>Tomcat</font></f
ont></b>
 <br><b><font face="Arial, Helvetica, sans-serif"><font size=-1>Version
 3.0</font></font></b>
@@ -29,6 +29,10 @@

 <li>
 <b><a href="examples/servlets/">Servlet Examples</a></b></li>
+
+<li>
+<b><a href="admin/index.html">Tomcat Admin Tools</a></b></li>
+
 </ul>
 Documentation:
 Documentation:
 <ul>

===================================================================


Justyna
< horwat@eng.sun.com >

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message