chia7712 commented on code in PR #22547:
URL: https://github.com/apache/kafka/pull/22547#discussion_r3403155350
##########
connect/runtime/src/testFixtures/java/org/apache/kafka/connect/runtime/isolation/TestPlugins.java:
##########
@@ -417,6 +428,32 @@ private static Path resourceDirectoryPath(String
resourceDir) throws IOException
return file;
}
+ private static Path extractResourceDirectoryFromJar(String resourceDir,
URL resource) throws IOException {
+ String prefix = resourceDir.endsWith("/") ? resourceDir : resourceDir
+ "/";
+ Path tmpDir = Files.createTempDirectory("test-plugins-resources.");
+ tmpDir.toFile().deleteOnExit();
Review Comment:
Would `TestUtils.tempDirectory` be a better fit for this?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]