You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2022/05/28 11:44:14 UTC

[tika] branch main updated: TIKA-3767: put config file into deletable temp dir; let junit initialize temp dir name

This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 0cb7cd98c TIKA-3767: put config file into deletable temp dir; let junit initialize temp dir name
0cb7cd98c is described below

commit 0cb7cd98c5dc580b9552f5a6e3038bdf0afba87e
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Sat May 28 13:43:58 2022 +0200

    TIKA-3767: put config file into deletable temp dir; let junit initialize temp dir name
---
 tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java b/tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java
index b5e5f8597..8b6e9e6e9 100644
--- a/tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java
+++ b/tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java
@@ -62,8 +62,7 @@ public class TikaCLITest {
 
     @BeforeAll
     public static void setUpClass() throws Exception {
-        ASYNC_OUTPUT_DIR = Files.createTempDirectory("tika-cli-async-");
-        ASYNC_CONFIG = Files.createTempFile("async-config-", ".xml");
+        ASYNC_CONFIG = Files.createTempFile(ASYNC_OUTPUT_DIR, "async-config-", ".xml");
         String xml = "<properties>" + "<async>" + "<params>" + "<numClients>3</numClients>" +
                 "<tikaConfig>" + ASYNC_CONFIG.toAbsolutePath() + "</tikaConfig>" + "</params>" +
                 "</async>" + "<fetchers>" +