You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by GitBox <gi...@apache.org> on 2020/08/01 15:17:10 UTC

[GitHub] [tika] keithrbennett commented on a change in pull request #334: Tika-3141 : add empty environment variable handle

keithrbennett commented on a change in pull request #334:
URL: https://github.com/apache/tika/pull/334#discussion_r463971330



##########
File path: tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
##########
@@ -249,11 +249,11 @@ public TikaConfig(ClassLoader loader)
     public TikaConfig() throws TikaException, IOException {
 
         String config = System.getProperty("tika.config");
-        if (config == null) {
+        if (config == null || config.trim().equals("")) {

Review comment:
       > It seems the `StringUtils` is part of `Apache Commons Lang`, which is not a dependecy of `tika core`. Should I add it in the `pom.xml`?
   
   Since it is a dependency of other Tika modules:
   
   ```
   % grep "commons-lang" **/pom.xml
   tika-bundle/pom.xml:              commons-lang3|
   tika-dl/pom.xml:          <artifactId>commons-lang3</artifactId>
   tika-dl/pom.xml:          <artifactId>commons-lang3</artifactId>
   tika-dl/pom.xml:          <groupId>commons-lang</groupId>
   tika-dl/pom.xml:          <artifactId>commons-lang</artifactId>
   tika-eval/pom.xml:            <artifactId>commons-lang3</artifactId>
   tika-nlp/pom.xml:          <groupId>commons-lang</groupId>
   tika-nlp/pom.xml:          <artifactId>commons-lang</artifactId>
   tika-parsers/pom.xml:      <artifactId>commons-lang3</artifactId>
   tika-parsers/pom.xml:          <artifactId>commons-lang3</artifactId>
   tika-parsers/pom.xml:          <artifactId>commons-lang3</artifactId>
   tika-server/pom.xml:      <artifactId>commons-lang3</artifactId>
   ```
   
   ...if you don't hear from anyone soon II would suggest adding it to tika-core and let the person authorizing the pull request merge make that call. I suspect it's ok, because it's used elsewhere in Tika.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org