This is an automated email from the ASF dual-hosted git repository.
tballison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 739a9c395c TIKA-4927: overwrite stale NER test models with the
verified cache copy (#3256)
739a9c395c is described below
commit 739a9c395cc90fa053f5bab0a4046eb39d24d658
Author: Tim Allison <[email protected]>
AuthorDate: Fri Sep 25 09:34:56 2026 -0400
TIKA-4927: overwrite stale NER test models with the verified cache copy
(#3256)
---
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml
b/tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml
index 45d62d3be9..066b301c0c 100644
--- a/tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml
+++ b/tika-parsers/tika-parsers-ml/tika-parser-nlp-module/pom.xml
@@ -154,7 +154,9 @@
<available
file="${cache}/en-ner-@{name}.bin" property="present"/>
<checksum if:set="present"
file="${cache}/en-ner-@{name}.bin" algorithm="SHA-256"
property="@{sha256}"
verifyproperty="verified"/>
- <copy if:true="${verified}"
file="${cache}/en-ner-@{name}.bin"
+ <!-- overwrite: testResources may
already have copied a stale
+ src/test/resources copy left
behind by the old ModelGetter -->
+ <copy if:true="${verified}"
file="${cache}/en-ner-@{name}.bin" overwrite="true"
tofile="${project.build.testOutputDirectory}/org/apache/tika/parser/ner/opennlp/ner-@{name}.bin"/>
<echo unless:true="${verified}"
level="warning"
message="OpenNLP model
en-ner-@{name}.bin unavailable or corrupt; NER tests will skip"/>