import org.tianocore.common.definitions.EdkDefinitions;\r
import org.tianocore.common.exception.EdkException;\r
import org.tianocore.common.logger.EdkLog;\r
-import org.tianocore.pcd.action.ActionMessage;\r
import org.tianocore.build.FrameworkBuildTask;\r
import org.tianocore.build.global.GlobalData;\r
import org.tianocore.build.global.OutputManager;\r
Set<FpdModuleIdentification> filesSet = fvs.get(validFv[i]);\r
\r
FpdModuleIdentification[] files = null;\r
+ \r
if (moduleSeqSet == null) {\r
if (filesSet != null) {\r
files = filesSet.toArray(new FpdModuleIdentification[filesSet.size()]);\r
}\r
+ } else if (filesSet == null) {\r
+ if (moduleSeqSet.size() != 0) {\r
+ throw new BuildException("Can not find any modules belongs to FV[" + validFv[i] + "], but listed some in BuildOptions.UserExtensions[@UserID='IMAGES' @Identifier='1']");\r
+ }\r
} else {\r
//\r
// if moduleSeqSet and filesSet is inconsistent, report error\r
//\r
- if (filesSet == null && moduleSeqSet.size() != 0) {\r
- throw new BuildException("Can not find any modules belongs to FV[" + validFv[i] + "], but listed some in BuildOptions.UserExtensions[@UserID='IMAGES' @Identifier='1']");\r
- } else if(moduleSeqSet.size() != filesSet.size()){\r
+ if(moduleSeqSet.size() != filesSet.size()){\r
throw new BuildException("Modules for FV[" + validFv[i] + "] defined in FrameworkModules and in BuildOptions.UserExtensions[@UserID='IMAGES' @Identifier='1'] are inconsistent. ");\r
} else {\r
//\r
// Pcd Collection. Call CollectPCDAction to collect pcd info.\r
//\r
PlatformPcdPreprocessActionForBuilding ca = new PlatformPcdPreprocessActionForBuilding();\r
- ca.perform(platformId.getFpdFile().getPath(), ActionMessage.NULL_MESSAGE_LEVEL);\r
+ ca.perform(platformId.getFpdFile().getPath());\r
} catch (IOException ex) {\r
BuildException buildException = new BuildException("Parsing of the FPD file [" + fpdFile.getPath() + "] failed!\n" + ex.getMessage());\r
buildException.setStackTrace(ex.getStackTrace());\r