You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Eric Wood <EW...@llbean.com> on 2006/02/28 16:50:15 UTC
Check if files exist in a folder before I tar
What is the easiest way to check if files exist in a folder prior to
attempting to back them up via tar?
Tar fails if I run it asking it to back up files and no files exist.
<tar destfile="${backup.dir}/${current.dir}.tar">
<tarfileset dir="${gen.dir}" >
<include name="*.*" />
</tarfileset>
</tar>
Eric