Fixed the cleanall issue which would remove more files than we want

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@748 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2006-07-04 14:52:57 +00:00
parent 7629edbc44
commit d3dfaf4b45

View File

@ -380,9 +380,12 @@ public class PlatformBuildFileGenerator {
ele.setAttribute("name", "cleanall"); ele.setAttribute("name", "cleanall");
if (isUnified) { if (isUnified) {
String[] targetList = GlobalData.getToolChainInfo().getTargets();
for (int i = 0; i < targetList.length; ++i) {
Element cleanAllEle = document.createElement("delete"); Element cleanAllEle = document.createElement("delete");
cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR")); cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR") + File.separatorChar + targetList[i]);
ele.appendChild(cleanAllEle); ele.appendChild(cleanAllEle);
}
} else { } else {
Set set = outfiles.keySet(); Set set = outfiles.keySet();
Iterator iter = set.iterator(); Iterator iter = set.iterator();