[
https://issues.apache.org/jira/browse/TIKA-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829609#comment-17829609
]
Hudson commented on TIKA-4215:
------------------------------
SUCCESS: Integrated in Jenkins build Tika ยป tika-main-jdk11 #1564 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk11/1564/])
TIKA-4215 -- avoid loading all the tika resources just to get the version
(#1672) (github:
[https://github.com/apache/tika/commit/85d713a9a671d1e8c31bb4a78c830616c0b3eab5])
* (edit)
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java
* (edit)
tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaVersionTest.java
* (edit) tika-core/src/main/java/org/apache/tika/Tika.java
* (edit)
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerProcess.java
* (edit)
tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaWelcomeTest.java
* (edit) tika-app/src/main/java/org/apache/tika/cli/TikaCLI.java
> Avoid loading resources in Tika() just to get version number
> ------------------------------------------------------------
>
> Key: TIKA-4215
> URL: https://issues.apache.org/jira/browse/TIKA-4215
> Project: Tika
> Issue Type: New Feature
> Reporter: Tim Allison
> Priority: Major
> Fix For: 2.9.2, 3.0.0
>
>
> In tika-server, we call {{new Tika()}} twice simply to get the version
> string. This forces Tika to load all the default parsers and other default
> resources. Let's make the version string accessible via a static call and
> avoid loading all the resources twice just to get the version number.
> We should confirm that we're not doing this in tika-app, tika-batch and
> tika-pipes as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)