This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 7de5569981 Better comment
7de5569981 is described below
commit 7de556998198d09ae032c52432689545e8e7cdfe
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 12 17:31:20 2026 +0100
Better comment
---
java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
b/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
index e114f25439..6d08cd478e 100644
--- a/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
+++ b/java/org/apache/catalina/ant/jmx/JMXAccessorConditionBase.java
@@ -233,7 +233,10 @@ public abstract class JMXAccessorConditionBase extends
ProjectComponent implemen
return result.toString();
}
} catch (Exception e) {
- // ignore access or connection open errors
+ /*
+ * Exceptions are ignored for compatibility with the waitFor task
when waiting for the server to start. If
+ * the exception was thrown the build task would fail rather than
wait.
+ */
}
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]