Skip to content

Commit

Permalink
Fix folder not existing before task make use of it (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 11, 2024
1 parent b8f0cec commit 7677892
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
multi_filament_version=0.2.5
multi_filament_version=0.2.6

asm_version=9.5
unpick_version=2.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ protected void createTasks() {

UnifyMappingsTask unifyMappings = getProject().getTasks().create("unifyMappings", UnifyMappingsTask.class, task -> {
task.dependsOn(versionifyMappingsExclude);

task.doFirst(a -> getTempDirectory().getAsFile().get().mkdir());

task.getUnifiedDir().set(getTempMappingsDir());
task.getVersionedDir().set(getActiveMappingsDir());
task.getOutputDir().set(getMultiMappingsDir());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOEx
});
this.getInputDir().getAsFile().get().delete();
Files.move(this.getOutputDir().getAsFile().get().toPath(), this.getInputDir().getAsFile().get().toPath());
this.getOutputDir().getAsFile().get().mkdirs();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOEx
});
this.getInputDir().getAsFile().get().delete();
Files.move(this.getOutputDir().getAsFile().get().toPath(), this.getInputDir().getAsFile().get().toPath());
this.getOutputDir().getAsFile().get().mkdirs();
}
}

0 comments on commit 7677892

Please sign in to comment.