summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-20 06:56:10 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-20 06:56:10 +0000
commit20391ab0d66f0b53cc71d0e094f7c18da4b69e4b (patch)
tree9ebc1766eff66e76005ce6d60a0cfd062372a2af
parent652f4bd848a4e36b991c1490eb516ff0f5b1687a (diff)
downloadedk2-platforms-20391ab0d66f0b53cc71d0e094f7c18da4b69e4b.tar.xz
changed the way to fetch file name list in spd file, per the schema changes
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@567 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java9
1 files changed, 4 insertions, 5 deletions
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<FilenameDocument.Filename> msaFilenameList;
+ List<String> msaFilenameList;
List<MsaFilesDocument.MsaFiles.MsaFile> msasList = spd.getPackageSurfaceArea().getMsaFiles()
.getMsaFileList();
if (msasList.size() == 0) {
msaFilenameList = spd.getPackageSurfaceArea().getMsaFiles().getFilenameList();
} else {
- msaFilenameList = new ArrayList<FilenameDocument.Filename>(msasList.size());
+ msaFilenameList = new ArrayList<String>(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();