diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-31 08:17:22 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-31 08:17:22 +0000 |
commit | 3c8842bce5a581908c3ac49e58d26d1b08b4fbe6 (patch) | |
tree | 7efcd07850b3cdfe5429b1d8e1ba0c3119bd55d4 /Tools/build.xml | |
parent | d94d73c28247538292ffed2e80cb6ffbebe0e959 (diff) | |
download | edk2-platforms-3c8842bce5a581908c3ac49e58d26d1b08b4fbe6.tar.xz |
Added <if> task to check if FrameworkDatabase.db exists or not before doing copy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1155 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/build.xml')
-rw-r--r-- | Tools/build.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tools/build.xml b/Tools/build.xml index d68fd6fa76..1afe6edb0c 100644 --- a/Tools/build.xml +++ b/Tools/build.xml @@ -11,6 +11,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -->
<project name="Tools" default="all" basedir=".">
+ <taskdef resource="net/sf/antcontrib/antlib.xml"/>
<property environment="env"/>
<target name="all" depends="C_Code"/>
@@ -60,7 +61,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </echo>
<copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>
<copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>
- <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" overwrite="false"/>
+ <if>
+ <not>
+ <available file="Conf/FrameworkDatabase.db"/>
+ </not>
+ <then>
+ <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>
+ </then>
+ </if>
</target>
<target name="clean">
|