summaryrefslogtreecommitdiff
path: root/Tools/Java
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Java')
-rw-r--r--Tools/Java/Source/Merge/src/org/tianocore/Merge/CombineMsa.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/Tools/Java/Source/Merge/src/org/tianocore/Merge/CombineMsa.java b/Tools/Java/Source/Merge/src/org/tianocore/Merge/CombineMsa.java
index ea86bef84f..4d4b215267 100644
--- a/Tools/Java/Source/Merge/src/org/tianocore/Merge/CombineMsa.java
+++ b/Tools/Java/Source/Merge/src/org/tianocore/Merge/CombineMsa.java
@@ -1829,8 +1829,17 @@ public class CombineMsa {
System.out.println("Please use the FrameworkWizard to add this MSA file to the package.");
System.exit(FAIL);
}
- path2Msa = Cwd.replace(path2Spd, "");
- path2Msa = path2Msa + "/" + msaFn;
+ if (path2Spd.equals(Cwd + "/"))
+ {
+ // .msa file and .spd in the same directory
+ path2Msa = msaFn;
+ }
+ else
+ {
+ path2Msa = Cwd.replace(path2Spd, "");
+ path2Msa = path2Msa + "/" + msaFn;
+ }
+
return path2Msa;
}