warbler
warbler copied to clipboard
Warber does not preserve symbolic links
When packaging the application using warbler, the symbolic links are lost and the actual contents the symlink points to are packaged as part of the WAR.
http://stackoverflow.com/q/6691413/49186
+1
+1
I'm hit with this. :(
Wish warbler preserved symbolic links.
my command line 'zip' can preserve symbolic links and when I use jar -xvf my.zip then the symbolic link is lost (well it is just a file with 'content' of the symbolic link). not sure what and which servlet container handles those "war files" with symbolic links in them correctly. would make a warfile platform dependent - or do I see something wrong ?
why would you like such a "feature" ?
Tried Tomcat 7 and it doesn't support symlinks in WAR files unfortunately.
I need it because I've got a Rails app which doesn't let me config path of uploaded files. By default it stores the files in "public" directory of Rails app which is removed when the WAR file is redeployed in Tomcat (or Jetty or ...). So I want to change the location using a symlink.
Maybe I should try unpacking and modifying the WAR file and deploying it unpacked. Any suggestion is welcome.