This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi-xmlbeans.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9a9bb486 Exclude the loopback HTTP server test from the animalsniffer
check (#118)
9a9bb486 is described below
commit 9a9bb486eaae7e9e903adabb92a35626f67008ba
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Sep 7 14:41:13 2026 +0100
Exclude the loopback HTTP server test from the animalsniffer check (#118)
ParseUrlRedirectTest (added in #113) starts a com.sun.net.httpserver server
on
loopback to pin redirect following. That package is not in the Android API
signature animalsniffer checks against, so animalsnifferTest reports 19
undefined references and ./gradlew check fails.
The signature describes what the published artifact may use. Test code never
ships and never runs on Android, so exclude just this file rather than
weaken
the signature for main. Excluding the whole test source set would also work
-
the animalsniffer block already carries a commented-out
"sourceSets = [sourceSets.main]" for that - but this keeps the rest of the
tests covered.
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
---
build.gradle | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/build.gradle b/build.gradle
index f0ed7e68..ad3af066 100644
--- a/build.gradle
+++ b/build.gradle
@@ -789,3 +789,10 @@ animalsniffer {
ignore 'javax.xml.namespace.*'
}
+// The Android API signature only makes sense for code we ship.
ParseUrlRedirectTest
+// runs a loopback com.sun.net.httpserver server, which is JDK-only and never
leaves
+// the test source set.
+animalsnifferTest {
+ exclude '**/ParseUrlRedirectTest*'
+}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]