Added check to skip generating target.txt and tools_def.txt if they already exist.
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 10:36:58 +0000 (10:36 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 18 Sep 2006 10:36:58 +0000 (10:36 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1550 6f19259b-4bc3-4df7-8a09-765794883524

Tools/build.xml

index 06cc921..ea6a250 100644 (file)
@@ -75,8 +75,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>\r
 </catalog>]]>\r
     </echo>\r
-    <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>\r
-    <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>\r
+    <if>\r
+      <not>\r
+        <available file="Conf/tools_def.txt"/>\r
+      </not>\r
+      <then>\r
+        <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>\r
+      </then>\r
+    </if>\r
+\r
+    <if>\r
+      <not>\r
+        <available file="Conf/target.txt"/>\r
+      </not>\r
+      <then>\r
+        <copy file="Conf/target.template" tofile="Conf/target.txt"/>\r
+      </then>\r
+    </if>\r
+\r
     <if>\r
       <not>\r
         <available file="Conf/FrameworkDatabase.db"/>\r