in sonar-plugin-server/src/main/java/jetbrains/buildserver/sonarplugin/sqrunner/tool/SimpleZipToolProviderSQScanner.java [146:159]
public void layoutContents(@NotNull final Path toolPath, @NotNull final Path targetPath) throws ToolException {
final Path libDirectory;
try {
libDirectory = Files.createDirectories(targetPath.resolve(LIB));
} catch (IOException e) {
throw new ToolException("Cannot create directory for unpacked tool: '" + targetPath.resolve(LIB) + "'", e);
}
final Path targetJarLocation = libDirectory.resolve(toolPath.getFileName());
try {
Files.copy(toolPath, targetJarLocation);
} catch (IOException e) {
throw new ToolException("Cannot copy jar to " + targetJarLocation);
}
}