GP-0 added safety check for eclipse bin directory treatment as module

root.  Moved DataType extension point to SoftwareModeling.
This commit is contained in:
ghidra1 2022-11-04 18:32:39 -04:00
parent 1333ac6a0c
commit 6aaf9139ee
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,4 @@
Analyzer Analyzer
DataType
Demangler Demangler
Exporter Exporter
FieldFactory FieldFactory

View file

@ -3,3 +3,4 @@ RelocationHandler
LanguageProvider LanguageProvider
LanguageTranslator LanguageTranslator
Constraint Constraint
DataType

View file

@ -63,6 +63,11 @@ public class ModuleUtilities {
*/ */
public static boolean isModuleDirectory(Path path) { public static boolean isModuleDirectory(Path path) {
File file = path.toFile(); File file = path.toFile();
if ("bin".equals(file.getName())) {
// Prevent eclipse project bin directory from being treated as module root
// since files frequently get copied from root into bin
return false;
}
return new File(file, MANIFEST_FILE_NAME).exists(); return new File(file, MANIFEST_FILE_NAME).exists();
} }