Make cleanall fail if executing ant cleanall, without the -noclasspath option.
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Aug 2006 20:55:28 +0000 (20:55 +0000)
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Aug 2006 20:55:28 +0000 (20:55 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1208 6f19259b-4bc3-4df7-8a09-765794883524

Tools/build.xml

index 14f5afc..820bc2c 100644 (file)
@@ -102,6 +102,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </target>\r
 \r
   <target name="cleanall">\r
+    <available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>\r
+    <available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>\r
+    <available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>\r
+    <available classname="org.tianocore.pcd.action.BuildAction" property="PcdClass.available"/>\r
+    <if>\r
+      <or>\r
+        <isset property="FrameworkWizardUI.available"/>\r
+        <isset property="GenBuildTask.available"/>\r
+        <isset property="Tool.available"/>\r
+        <isset property="PcdClass.available"/>\r
+      </or>\r
+      <then>\r
+        <fail message="Use ant -noclasspath cleanall, to remove all jar files!"/>\r
+      </then>\r
+    </if>\r
     <subant target="cleanall" inheritall="true">\r
       <filelist dir="."\r
         files="\r