tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs manager-howto.xml
Date Mon, 08 Apr 2002 18:28:37 GMT
craigmcc    02/04/08 11:28:36

  Modified:    catalina/src/share/org/apache/catalina/ant
                        ResourcesTask.java
               webapps/tomcat-docs manager-howto.xml
  Added:       catalina/src/share/org/apache/catalina/ant RolesTask.java
  Log:
  Add the custom Ant task definition for the new "roles" command.
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/ResourcesTask.java
  
  Index: ResourcesTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/ResourcesTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ResourcesTask.java	12 Mar 2002 21:14:15 -0000	1.1
  +++ ResourcesTask.java	8 Apr 2002 18:28:36 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/ResourcesTask.java,v
1.1 2002/03/12 21:14:15 craigmcc Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/12 21:14:15 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/ResourcesTask.java,v
1.2 2002/04/08 18:28:36 craigmcc Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/04/08 18:28:36 $
    *
    * ====================================================================
    *
  @@ -68,11 +68,11 @@
   
   
   /**
  - * Ant task that implements the <code>/list</code> command, supported by the
  - * Tomcat manager application.
  + * Ant task that implements the <code>/resources</code> command, supported
by
  + * the Tomcat manager application.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 2002/03/12 21:14:15 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/08 18:28:36 $
    * @since 4.1
    */
   public class ResourcesTask extends AbstractCatalinaTask {
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/RolesTask.java
  
  Index: RolesTask.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ant/RolesTask.java,v
1.1 2002/04/08 18:28:36 craigmcc Exp $
   * $Revision: 1.1 $
   * $Date: 2002/04/08 18:28:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  
  
  package org.apache.catalina.ant;
  
  
  import org.apache.tools.ant.BuildException;
  import org.apache.tools.ant.Task;
  
  
  /**
   * Ant task that implements the <code>/roles</code> command, supported by the
   * Tomcat manager application.
   *
   * @author Craig R. McClanahan
   * @version $Revision: 1.1 $ $Date: 2002/04/08 18:28:36 $
   * @since 4.1
   */
  public class RolesTask extends AbstractCatalinaTask {
  
  
      // ------------------------------------------------------------- Properties
  
  
      // --------------------------------------------------------- Public Methods
  
  
      /**
       * Execute the requested operation.
       *
       * @exception BuildException if an error occurs
       */
      public void execute() throws BuildException {
  
          super.execute();
          execute("/roles");
  
      }
  
  
  }
  
  
  
  1.14      +1 -0      jakarta-tomcat-4.0/webapps/tomcat-docs/manager-howto.xml
  
  Index: manager-howto.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/manager-howto.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- manager-howto.xml	8 Apr 2002 18:02:07 -0000	1.13
  +++ manager-howto.xml	8 Apr 2002 18:28:36 -0000	1.14
  @@ -752,6 +752,7 @@
     &lt;taskdef name="reload"    classname="org.apache.catalina.ant.ReloadTask"/&gt;
     &lt;taskdef name="remove"    classname="org.apache.catalina.ant.RemoveTask"/&gt;
     &lt;taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/&gt;
  +  &lt;taskdef name="roles"     classname="org.apache.catalina.ant.RolesTask"/&gt;
     &lt;taskdef name="start"     classname="org.apache.catalina.ant.StartTask"/&gt;
     &lt;taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/&gt;
     &lt;taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"/&gt;
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message