Skip to content

Commit b45c2a9

Browse files
committed
Minor fix...
1 parent 2d6c773 commit b45c2a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/mangorage/mangobotgradle/tasks/CopyTask.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ public void run() {
6868
if (isPluginDev) {
6969
getProject().getConfigurations().getByName("bot").getFiles().forEach(a -> {
7070
try {
71+
if (!Files.exists(getProject().getProjectDir().toPath().resolve("build/run/boot/")))
72+
Files.createDirectories(getProject().getProjectDir().toPath().resolve("build/run/boot/"));
73+
7174
Files.copy(a.toPath(), getProject().getProjectDir().toPath().resolve("build/run/boot/boot.jar"), StandardCopyOption.REPLACE_EXISTING);
7275
} catch (IOException e) {
7376
throw new RuntimeException(e);

0 commit comments

Comments
 (0)