Added support for macro/property in tools_def.txt. Now you can define a property...
[mirror_edk2.git] / Tools / Java / Source / GenBuild / build.xml
index b61e2519c3e1ce682cf6aecf607509c52213d16a..2f9476f4bd5358161da0daeedf53e6b590026269 100644 (file)
@@ -31,10 +31,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     </javac>\r
   </target>\r
   <target name="clean">\r
-    <delete dir="${buildDir}"/>\r
+    <delete includeemptydirs="true" failonerror="false" quiet="true">\r
+      <fileset dir="${WORKSPACE}/Tools/Java/Source/GenBuild" includes="${buildDir}"/>\r
+    </delete>\r
   </target>\r
-  <target name="cleanall">\r
-    <delete dir="${buildDir}"/>\r
+  <target name="cleanall" depends="clean">\r
+    <echo message="Removing Class Files and the Java Archive: GenBuild.jar"/>\r
     <delete file="${installLocation}/GenBuild.jar"/>\r
     <if>\r
       <available file="${installLocation}/GenBuild.jar"/>\r