Howdy,
 
I'm using Tomcat 5.0.19 on Linux.  In an undoubtedly familiar scenario,
I've got some static content sitting in folders outside the web
application context.  I'm using a symbolic link to access the files,
which is working fine.  However, when I remove the context in order to
load a newer version, Tomcat recursively deletes everything contained in
the folder that the symbolic link points to.  I'm thinking of doing
something lame like writing Ant ftp tasks that copy the symbolic link
somewhere else before undeploying, then copy it back after re-deploying.
But it seems like there must be a better way to do this with some
built-in Tomcat functionality.  Is there any way to tell Tomcat "Follow
symbolic links when serving content, but not when removing a context?"
 
Thanks in advance for any help,
-Peter

Reply via email to