mirror of https://github.com/acidanthera/audk.git
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:
parent
7629edbc44
commit
d3dfaf4b45
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue