summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Tools/build.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/build.xml b/Tools/build.xml
index 14f5afc92b..820bc2cef6 100644
--- a/Tools/build.xml
+++ b/Tools/build.xml
@@ -102,6 +102,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</target>
<target name="cleanall">
+ <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>
+ <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>
+ <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>
+ <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>
+ <if>
+ <or>
+ <isset property="FrameworkWizardUI.available"/>
+ <isset property="GenBuildTask.available"/>
+ <isset property="Tool.available"/>
+ <isset property="PcdClass.available"/>
+ </or>
+ <then>
+ <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>
+ </then>
+ </if>
<subant target="cleanall" inheritall="true">
<filelist dir="."
files="