[
https://issues.apache.org/jira/browse/TIKA-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134113#comment-13134113
]
Jukka Zitting commented on TIKA-761:
------------------------------------
+1 Looks good.
As a possible improvement, as Nick noted, you could read the version number
from {{/META-INF/MANIFEST.MF}} or from
{{/META-INF/maven/org.apache.tika/tika-app/pom.properties}} so we don't need to
set up a custom properties file for this.
Also, it would be cool if that information could be made available also through
the Java API in tika-core. For example the toString() method of the Tika facade
class could return something like "Apache Tika x.y", and {{tika-app --version}}
would simply output that string.
bq. using -v (lowercase)
-1 for backwards compatibility reasons.
> Provide version number by CLI argument -V
> -----------------------------------------
>
> Key: TIKA-761
> URL: https://issues.apache.org/jira/browse/TIKA-761
> Project: Tika
> Issue Type: New Feature
> Components: cli, general
> Reporter: Ingo Renner
> Priority: Minor
> Attachments: TIKA-761.diff, TIKA-761.diff, TIKA-761.diff
>
>
> I'd like to get the Apache Tika version number through CLI argument -V or
> --version. The patch is trivial and basically finished. The only thing
> missing (because Java is not my native programming language) is the actual
> version number. Any hints where I can get that from?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira