in plugin/src/main/java/com/attachme/plugin/AttachmeInstaller.java [88:98]
private void exportFile(String name, File dir) throws IOException {
InputStream jarAsStream = Objects
.requireNonNull(getClass().getClassLoader().getResourceAsStream(name),
"Could not find the agent jar " + name + " in classpath");
if (!dir.exists()) {
throw new RuntimeException("Directory does not exist " + dir);
}
OutputStream outputStream = new FileOutputStream(new File(dir, name));
FileUtil.copy(jarAsStream, outputStream);
}