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:46:24 UTC
svn commit: r1578260 - in /tomcat/trunk:
java/org/apache/catalina/ant/AbstractCatalinaTask.java
webapps/docs/changelog.xml
Author: kfujino
Date: Mon Mar 17 07:46:24 2014
New Revision: 1578260
URL: http://svn.apache.org/r1578260
Log:
Add the option to ignore the constraint of the first line of the response message that must be "OK -".
Default is false.
Modified:
tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java?rev=1578260&r1=1578259&r2=1578260&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/AbstractCatalinaTask.java Mon Mar 17 07:46:24 2014
@@ -111,6 +111,20 @@ public abstract class AbstractCatalinaTa
this.username = username;
}
+ /**
+ * If set to true - ignore the constraint of the first line of the response
+ * message that must be "OK -".
+ */
+ protected boolean ignoreResponseConstraint = false;
+
+ public boolean isIgnoreResponseConstraint() {
+ return ignoreResponseConstraint;
+ }
+
+ public void setIgnoreResponseConstraint(boolean ignoreResponseConstraint) {
+ this.ignoreResponseConstraint = ignoreResponseConstraint;
+ }
+
// --------------------------------------------------------- Public Methods
@@ -241,7 +255,7 @@ public abstract class AbstractCatalinaTa
if (buff.length() > 0) {
String line = buff.toString();
buff.setLength(0);
- if (first) {
+ if (!ignoreResponseConstraint && first) {
if (!line.startsWith("OK -")) {
error = line;
msgPriority = Project.MSG_ERR;
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1578260&r1=1578259&r2=1578260&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Mon Mar 17 07:46:24 2014
@@ -220,6 +220,10 @@
<code>org.apache.catalina.ant.ThreaddumpTask</code> and
<code>org.apache.catalina.ant.SslConnectorCiphersTask</code>. (kfujino)
</fix>
+ <add>
+ Add the option to ignore the constraint of the first line of the
+ response message that must be "OK -". Default is false. (kfujino)
+ </add>
</changelog>
</subsection>
<subsection name="Other">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org