- Fixed EDKT513 by adding existing section files into the dependency check of genffsf...
[mirror_edk2.git] / Tools / Java / Source / FrameworkTasks / build.xml
index ac3639cb0c50638b818bfcd44d0bb01940845514..c3c86c987c965e099bbfa1d56fb3bca57494f018 100644 (file)
@@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 <project name="FrameworkTasks" default="FrameworkTasks">\r
   <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
   <property environment="env"/>\r
-  <property name="workspace" value="${env.WORKSPACE}"/>\r
+  <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
   <property name="buildDir" value="build"/>\r
-  <property name="installLocation" value="${workspace}/Tools/Jars"/>\r
+  <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r
   <target name="FrameworkTasks" depends="install"/>\r
   <target name="source">\r
     <mkdir dir="${buildDir}"/>\r
     <javac srcdir="." destdir="${buildDir}">\r
       <classpath>\r
-        <fileset dir="${workspace}/Tools/Jars">\r
+        <fileset dir="${WORKSPACE}/Tools/Jars">\r
           <include name="*.jar"/>\r
         </fileset>\r
       </classpath>\r
@@ -28,10 +28,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/FrameworkTasks" 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: frameworktasks.jar"/>\r
     <delete file="${installLocation}/frameworktasks.jar"/>\r
     <if>\r
       <available file="${installLocation}/frameworktasks.jar"/>\r