mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-6679: Fixing .gitignore not making its way from Skeleton to new
GhidraDev module project
This commit is contained in:
@@ -32,7 +32,8 @@ change with future releases.
|
||||
|
||||
## Change History
|
||||
__5.1.0:__
|
||||
* Added a PyGhidra Headless run configuration
|
||||
* Added a PyGhidra Headless run configuration.
|
||||
* New Ghidra module projects now contain a default .gitignore file (requires Ghidra 12.2 or later).
|
||||
|
||||
__5.0.1:__
|
||||
* Fixed a bug that prevented Ghidra from discovering the Ghidra module project when launched with
|
||||
|
||||
@@ -173,6 +173,11 @@ public class GhidraModuleUtils {
|
||||
if (!buildTemplateGradleFile.renameTo(buildGradleFile)) {
|
||||
throw new IOException("Failed to rename: " + buildTemplateGradleFile);
|
||||
}
|
||||
File gitIgnoreFile = new File(projectDir, "gitignore");
|
||||
File dotGitIgnoreFile = new File(projectDir, ".gitignore");
|
||||
if (gitIgnoreFile.exists() && !gitIgnoreFile.renameTo(dotGitIgnoreFile)) {
|
||||
throw new IOException("Failed to rename: " + gitIgnoreFile);
|
||||
}
|
||||
}
|
||||
catch (CancelledException | IOException e) {
|
||||
throw new IOException("Failed to copy skeleton directory: " + projectDir);
|
||||
|
||||
Reference in New Issue
Block a user