Have you looked at the symlink task?

http://ant.apache.org/manual/OptionalTasks/symlink.html

On Mon, 22 Jun 2009, jscripter wrote:


I am using this target definition to remove all the files under ${TOP} which
contains some symlinks to other directories:

   <target name="clean">
       <delete includeEmptyDirs="true" failonerror="false">
           <fileset dir="${TOP}" followsymlinks="false"/>
       </delete>
   </target>

However, I've noticed that delete is not deleting the symlinks.

I'd like to get the same results as /bin/rm -rf under Unix, i.e. the
symlinks are deleted but not followed. Is there a way to do that with the
delete task?
--
View this message in context: 
http://www.nabble.com/Making-the-delete-task-behave-like--bin-rm--rf-vis-a-vis-symlinks-to-directories-tp24154698p24154698.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org



Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to