Skip to content

Ghidra is a software reverse engineering (SRE) framework

Updated case and default setting

Nader Shalabi7d7d36a24ffe
diff --git a/Ghidra/Framework/Utility/src/main/java/utility/module/ModuleManifestFile.java b/Ghidra/Framework/Utility/src/main/java/utility/module/ModuleManifestFile.java
index b9a945ffb7..4ed04be476 100644
--- a/Ghidra/Framework/Utility/src/main/java/utility/module/ModuleManifestFile.java
+++ b/Ghidra/Framework/Utility/src/main/java/utility/module/ModuleManifestFile.java
@@ -96,15 +96,8 @@ public class ModuleManifestFile {
}
else if (trimmedLine.startsWith(EXCLUDE_FROM_GHIDRA_JAR)) {
String[] tokens = trimmedLine.split(":");
-
- if (tokens.length == 2) {
- if (tokens[1].toLowerCase().trim().compareTo("false") == 0)
- excludeFromGhidraJar = false;
- else
- excludeFromGhidraJar = true;
- }
- else
- excludeFromGhidraJar = true; // Default to not be included in build
+ String value = tokens.length == 2 ? tokens[1].trim() : "";
+ excludeFromGhidraJar = Boolean.valueOf(value);
}
else if (trimmedLine.startsWith(MODULE_FILE_LICENSE)) {
processModuleFileLicense(trimmedLine);