GP-0: Skeleton's build.grade was interfering with building natives in a

release
This commit is contained in:
Ryan Kurtz 2024-08-29 07:00:13 -04:00
parent 49592e40c9
commit 27c162ee8f
3 changed files with 11 additions and 3 deletions

View file

@ -177,6 +177,11 @@ public class GhidraModuleUtils {
return excludeRegexes.stream().map(r -> Pattern.compile(r)).noneMatch(
p -> p.matcher(f.getName()).matches());
}, null);
File buildTemplateGradleFile = new File(projectDir, "buildTemplate.gradle");
File buildGradleFile = new File(projectDir, "build.gradle");
if (!buildTemplateGradleFile.renameTo(buildGradleFile)) {
throw new IOException("Failed to rename: " + buildTemplateGradleFile);
}
}
catch (CancelledException | IOException e) {
throw new IOException("Failed to copy skeleton directory: " + projectDir);