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
This commit is contained in:
jwang36 2006-07-31 08:17:22 +00:00
parent d94d73c282
commit 3c8842bce5
1 changed files with 9 additions and 1 deletions

View File

@ -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">