diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java index bc2e359b07..97096f6b4f 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java @@ -295,25 +295,24 @@ public class GlobalData { File packageFile = new File(packageFilename); try { PackageSurfaceAreaDocument spd = (PackageSurfaceAreaDocument) XmlObject.Factory.parse(packageFile); - List msaFilenameList; + List msaFilenameList; List msasList = spd.getPackageSurfaceArea().getMsaFiles() .getMsaFileList(); if (msasList.size() == 0) { msaFilenameList = spd.getPackageSurfaceArea().getMsaFiles().getFilenameList(); } else { - msaFilenameList = new ArrayList(msasList.size()); + msaFilenameList = new ArrayList(msasList.size()); Iterator msasIter = msasList.iterator(); while (msasIter.hasNext()) { MsaFilesDocument.MsaFiles.MsaFile msaFile = (MsaFilesDocument.MsaFiles.MsaFile)msasIter.next(); - msaFilenameList.add(msaFile.getFilename()); + msaFilenameList.add(msaFile.getFilename().getStringValue()); } } Iterator msaFilenameIter = msaFilenameList.iterator(); while (msaFilenameIter.hasNext()) { - FilenameDocument.Filename msaFilename = (FilenameDocument.Filename)msaFilenameIter.next(); - String filename = msaFilename.getStringValue(); + String filename = (String)msaFilenameIter.next(); File msaFile = new File(workspaceDir + File.separatorChar + GlobalData.getPackagePath(packageName) + File.separatorChar + filename); SurfaceAreaParser surfaceAreaParser = new SurfaceAreaParser();