Skip to content

Commit 769b02a

Browse files
committed
Move tika-config.xml into the JAR file for the http component
This should make it easier to use the JAR from maven or similar.
1 parent 66e4921 commit 769b02a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.net.MalformedURLException;
3030
import java.net.URL;
3131
import java.nio.charset.StandardCharsets;
32-
import java.nio.file.Paths;
3332
import java.text.MessageFormat;
3433
import java.time.LocalDateTime;
3534
import java.time.format.DateTimeFormatter;
@@ -137,7 +136,7 @@ public class ParseCurlCommandAction extends AbstractAction implements MenuCreato
137136

138137
private Tika createTika() {
139138
try {
140-
return new Tika(new TikaConfig(Paths.get(JMeterUtils.getJMeterBinDir(), "tika-config.xml")));
139+
return new Tika(new TikaConfig(this.getClass().getClassLoader().getResourceAsStream("tika-config.xml")));
141140
} catch (TikaException | IOException | SAXException e) {
142141
return new Tika();
143142
}

0 commit comments

Comments
 (0)