You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kf...@apache.org on 2014/03/17 08:35:08 UTC

svn commit: r1578256 - in /tomcat/trunk: java/org/apache/catalina/ant/ webapps/docs/

Author: kfujino
Date: Mon Mar 17 07:35:08 2014
New Revision: 1578256

URL: http://svn.apache.org/r1578256
Log:
Implement org.apache.catalina.ant.VminfoTask, org.apache.catalina.ant.ThreaddumpTask and org.apache.catalina.ant.SslConnectorCiphersTask.

Added:
    tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java   (with props)
    tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java   (with props)
    tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java   (with props)
Modified:
    tomcat/trunk/java/org/apache/catalina/ant/antlib.xml
    tomcat/trunk/java/org/apache/catalina/ant/catalina.tasks
    tomcat/trunk/webapps/docs/changelog.xml

Added: tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java?rev=1578256&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java (added)
+++ tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java Mon Mar 17 07:35:08 2014
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.catalina.ant;
+
+
+import org.apache.tools.ant.BuildException;
+
+
+/**
+ * Ant task that implements the <code>/sslConnectorCiphers</code> command
+ * supported by the Tomcat manager application.
+ *
+ */
+public class SslConnectorCiphersTask extends AbstractCatalinaTask {
+
+    // Public Methods
+
+    /**
+     * Execute the requested operation.
+     *
+     * @exception BuildException if an error occurs
+     */
+    @Override
+    public void execute() throws BuildException {
+
+        super.execute();
+        execute("/sslConnectorCiphers");
+
+    }
+
+}

Propchange: tomcat/trunk/java/org/apache/catalina/ant/SslConnectorCiphersTask.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java?rev=1578256&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java (added)
+++ tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java Mon Mar 17 07:35:08 2014
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.catalina.ant;
+
+
+import org.apache.tools.ant.BuildException;
+
+
+/**
+ * Ant task that implements the <code>/threaddump</code> command
+ * supported by the Tomcat manager application.
+ *
+ */
+public class ThreaddumpTask extends AbstractCatalinaTask {
+
+    // Public Methods
+
+    /**
+     * Execute the requested operation.
+     *
+     * @exception BuildException if an error occurs
+     */
+    @Override
+    public void execute() throws BuildException {
+
+        super.execute();
+        execute("/threaddump");
+
+    }
+
+}

Propchange: tomcat/trunk/java/org/apache/catalina/ant/ThreaddumpTask.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java?rev=1578256&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java (added)
+++ tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java Mon Mar 17 07:35:08 2014
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.catalina.ant;
+
+
+import org.apache.tools.ant.BuildException;
+
+
+/**
+ * Ant task that implements the <code>/vminfo</code> command
+ * supported by the Tomcat manager application.
+ *
+ */
+public class VminfoTask extends AbstractCatalinaTask {
+
+    // Public Methods
+
+    /**
+     * Execute the requested operation.
+     *
+     * @exception BuildException if an error occurs
+     */
+    @Override
+    public void execute() throws BuildException {
+
+        super.execute();
+        execute("/vminfo");
+
+    }
+
+}

Propchange: tomcat/trunk/java/org/apache/catalina/ant/VminfoTask.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tomcat/trunk/java/org/apache/catalina/ant/antlib.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/antlib.xml?rev=1578256&r1=1578255&r2=1578256&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/antlib.xml (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/antlib.xml Mon Mar 17 07:35:08 2014
@@ -44,6 +44,15 @@
   <typedef
         name="findleaks"
         classname="org.apache.catalina.ant.FindLeaksTask" />
+  <typedef
+        name="vminfo"
+        classname="org.apache.catalina.ant.VminfoTask" />
+  <typedef
+        name="threaddump"
+        classname="org.apache.catalina.ant.ThreaddumpTask" />
+  <typedef
+        name="sslConnectorCiphers"
+        classname="org.apache.catalina.ant.SslConnectorCiphersTask" />
   <!-- Jk Task -->
   <typedef
         name="jkupdate"

Modified: tomcat/trunk/java/org/apache/catalina/ant/catalina.tasks
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/catalina.tasks?rev=1578256&r1=1578255&r2=1578256&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/catalina.tasks (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/catalina.tasks Mon Mar 17 07:35:08 2014
@@ -24,6 +24,9 @@ resources=org.apache.catalina.ant.Resour
 sessions=org.apache.catalina.ant.SessionsTask
 validator=org.apache.catalina.ant.ValidatorTask
 findleaks=org.apache.catalina.ant.FindLeaksTask
+vminfo=org.apache.catalina.ant.VminfoTask
+threaddump=org.apache.catalina.ant.ThreaddumpTask
+sslConnectorCiphers=org.apache.catalina.ant.SslConnectorCiphersTask
 
 #Jk Task
 jkupdate=org.apache.catalina.ant.JKStatusUpdateTask

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1578256&r1=1578255&r2=1578256&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Mon Mar 17 07:35:08 2014
@@ -215,6 +215,11 @@
          Add definition of <code>org.apache.catalina.ant.FindLeaksTask</code>.
          (kfujino)
       </fix>
+      <fix>
+         Implement <code>org.apache.catalina.ant.VminfoTask</code>,
+         <code>org.apache.catalina.ant.ThreaddumpTask</code> and
+         <code>org.apache.catalina.ant.SslConnectorCiphersTask</code>. (kfujino)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Other">



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