You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Michael Delaney <md...@upromise.com> on 2009/03/20 20:36:50 UTC

Detecting directory versus symlink

In ant 1.7.0, is there a way to test if a resource is a directory or if 
it's a symlink?

I have a directory /app/product/foo which may, or may not be a symlink. 
If it's a symlink, I just want to remove the symlink but if it's a 
directory, I have another set of instructions I need to follow. Anyone 
have any advice on what the best way to determine if a resource is a 
directory or a symlink?

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