]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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 14f5afc92b5cafb49782375baab3866e61b93223..820bc2cef60273bba66ed54f1095d32de2c29fe5 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