I have this ant talk to copy cgi-dir to cgi-dest.
<exec executable="cp" failonerror="yes">
<arg value="-a" />
<arg value="${cgi-dir}" />
<arg value="${cgi-dest}" />
</exec>
I chose this method over the "copy" ant task because I wanted to preserve permissions. The ant task explicitly can't.
The problem is that it copies all the .svn directories it sees, how can I prevent this?