[ 
https://issues.apache.org/jira/browse/TIKA-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115455#comment-18115455
 ] 

ASF GitHub Bot commented on TIKA-4892:
--------------------------------------

timgrein opened a new pull request, #3173:
URL: https://github.com/apache/tika/pull/3173

   Currently `--list-met-models` only prints `Serializible` as `Metadata` 
doesn't implement the different metadata interfaces (`AccessPermissions` ... 
`Zip`) anymore.
   I've added them now explicitly to `TikaCLI`. An alternative approach would 
be to use reflection to scan over the directory containing the metadata 
interfaces, but this sounds a bit hacky. A marker interface would also rely on 
a new interface needing to implement it explicitly, so I thought simply 
hardcoding it is the most straightforward solution.
   
   New output:
   ```
   java -jar tika-app/target/tika-app-*.jar --list-met-models                   
                                                                                
                                                                      
   AccessPermissions
    ASSEMBLE_DOCUMENT
    CAN_MODIFY
    CAN_MODIFY_ANNOTATIONS
   ...
   Zip
    CENTRAL_DIRECTORY_ONLY_ENTRIES
    COMMENT
    COMPRESSED_SIZE
    COMPRESSION_METHOD
   ...
   ```




> --list-met-models only prints Serializible
> ------------------------------------------
>
>                 Key: TIKA-4892
>                 URL: https://issues.apache.org/jira/browse/TIKA-4892
>             Project: Tika
>          Issue Type: Bug
>          Components: cli
>            Reporter: Tim Grein
>            Priority: Minor
>
> Currently 
> {code:java}
> java -jar tika-app/target/tika-app-*.jar --list-met-models {code}
> only prints
> {code:java}
> Serializible
> {code}
> as the Metadata class doesn't implement the model interfaces anymore.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to