Files
7462256893 fix(apache-tika): handle upstream's switch from jar to zip distribution (#16726)
* fix(apache-tika): handle upstream's switch from jar to zip distribution

Apache Tika 4.0.0 stopped publishing tika-server-standard as a standalone
executable jar and now ships it as a zip: the jar inside is a thin launcher
whose manifest Class-Path resolves ~150 dependencies from a sibling lib/
(and plugins/) directory, so downloading just the jar 404s and, even if it
didn't, would no longer be runnable on its own.

Both install and update now use fetch_and_deploy_from_url (already used by
several other scripts in this repo, e.g. ct/technitiumdns.sh) to fetch and
extract the whole archive in place, instead of hand-rolling curl+unzip.
update_script() also passes CLEAN_INSTALL=1 so a later update replaces the
lib/ tree wholesale rather than layering a new version's jars on top of an
old one's.

Verified by running the real ct/apache-tika.sh (via build.func/tools.func
pulled live from this repo's main) against a live LXC container previously
on 3.3.2: it downloads and extracts the 4.0.0 zip, starts the service, and
`java -jar tika-server-standard.jar` answers on port 9998 with
"Apache Tika 4.0.0".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Clean up comments in apache-tika.sh

Removed outdated comments regarding tika-server-standard installation method.

* Update Apache Tika installation script

Removed comments regarding the change in Apache Tika packaging and updated the installation process.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-08-25 11:23:25 +02:00
..
2026-08-24 17:09:34 +02:00
2026-08-24 17:11:26 +02:00
2026-08-14 16:03:28 +02:00
2026-08-10 09:11:15 +02:00
2026-08-14 16:07:15 +02:00
2026-08-04 23:02:28 +02:00
2026-08-14 22:08:21 +02:00
2026-08-08 12:37:57 +10:00
2026-08-14 16:07:03 +02:00
2026-08-14 15:57:31 +02:00
qf
2026-08-05 17:35:32 +02:00
2026-08-15 23:33:58 +02:00
2026-08-07 19:41:33 +02:00
2026-08-22 06:30:33 +02:00
2026-08-24 17:07:31 +02:00
2026-08-14 22:12:35 +02:00
2026-08-15 23:41:31 +02:00
2026-08-12 13:45:10 +02:00
2026-08-13 08:58:35 +02:00
2026-08-20 14:27:23 +02:00
2026-08-22 00:39:29 +02:00