mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Update ModuleManifestFile.java
The value associated with "EXCLUDE FROM GHIDRA JAR" module configuration has no effect when building the JAR file, for example, "EXCLUDE FROM GHIDRA JAR: false" will have no effect and the module will still be excluded since the current code checks only if the line starts with "EXCLUDE FROM GHIDRA JAR" but does not examine the assigned value. I updated the code to enable the effect of the true/false values.
This commit is contained in:
parent
82c42e648c
commit
93f3b942bb
1 changed files with 10 additions and 1 deletions
|
@ -95,8 +95,17 @@ public class ModuleManifestFile {
|
|||
// ignore for now
|
||||
}
|
||||
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
|
||||
}
|
||||
else if (trimmedLine.startsWith(MODULE_FILE_LICENSE)) {
|
||||
processModuleFileLicense(trimmedLine);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue