<!-- conditional file copy in ANT -->

<!-- copy pad.xml from website to project dir, if it exists -->
<available property="has.pad.xml" file="${pad.dir}/${ant.project.name}.xml" />

<antcall target="copy.pad.xml" />

<!-- copy pad.xml from website to project dir, if there is one. -->
<target name="copy.pad.xml" if="has.pad.xml">
  <copy file="${pad.dir}/${ant.project.name}.xml" todir="${package.dir}" failonerror="false" overwrite="true" />
</target>