mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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");
|
ele.setAttribute("name", "cleanall");
|
||||||
|
|
||||||
if (isUnified) {
|
if (isUnified) {
|
||||||
Element cleanAllEle = document.createElement("delete");
|
String[] targetList = GlobalData.getToolChainInfo().getTargets();
|
||||||
cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR"));
|
for (int i = 0; i < targetList.length; ++i) {
|
||||||
ele.appendChild(cleanAllEle);
|
Element cleanAllEle = document.createElement("delete");
|
||||||
|
cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR") + File.separatorChar + targetList[i]);
|
||||||
|
ele.appendChild(cleanAllEle);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Set set = outfiles.keySet();
|
Set set = outfiles.keySet();
|
||||||
Iterator iter = set.iterator();
|
Iterator iter = set.iterator();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user