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

tallison 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 8b0dd1fa1 TIKA-4517 -- fix windows
8b0dd1fa1 is described below

commit 8b0dd1fa163dc6cd99a3536ed97b209df4a18286
Author: tallison <[email protected]>
AuthorDate: Wed Oct 15 09:32:18 2025 -0400

    TIKA-4517 -- fix windows
---
 tika-app/src/test/java/org/apache/tika/cli/TikaCLITest.java | 9 +++------
 1 file changed, 3 insertions(+), 6 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 79c765a32..93de4e409 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
@@ -368,11 +368,8 @@ public class TikaCLITest {
 
     private void testRecursiveUnpack(String targetFile, String[] 
expectedChildrenFileNames, int expectedLength) throws Exception {
         Path input = Paths.get(new URI(resourcePrefix + "/" + targetFile));
-        String[] params = {"-Z",
-                
ProcessUtils.escapeCommandLine(input.toAbsolutePath().toString()),
-                ProcessUtils.escapeCommandLine(extractDir
-                .toAbsolutePath()
-                .toString())};
+        String[] params = {"-Z", input.toAbsolutePath().toString(),
+                extractDir.toAbsolutePath().toString()};
 
         TikaCLI.main(params);
         Set<String> fileNames = getFileNames(extractDir);
@@ -398,7 +395,7 @@ public class TikaCLITest {
 
             @Override
             public @NotNull FileVisitResult visitFile(Path path, @NotNull 
BasicFileAttributes basicFileAttributes) throws IOException {
-                names.add(extractDir.relativize(path).toString());
+                names.add(extractDir.relativize(path).toString().replace('\\', 
'/'));
                 return FileVisitResult.CONTINUE;
             }
 

Reply via email to