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
1 changed files with 6 additions and 3 deletions

View File

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