<copy todir="${remployDeploy}">
<fileset dir="${deploy}">
<include name="**" />
<exclude name="logs/**" />
<exclude name="db/**" />
</fileset>
</copy>
<condition property="hasToCreateDb">
<not>
<available file="${remployDeploy}/db" type="dir" />
</not>
</condition>
<antcall target="copyDbDir" />
==>
<target name="copyDbDir" unless="${hasToCreateDb}">
<copy todir="${remployDeploy}/db">
<fileset dir="db" />
</copy>
</target>