warbler icon indicating copy to clipboard operation
warbler copied to clipboard

Warber does not preserve symbolic links

Open rcdexta opened this issue 13 years ago • 5 comments

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

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446677-warber-does-not-preserve-symbolic-links?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).

rcdexta avatar Jul 23 '11 05:07 rcdexta

+1

henrypoydar avatar Dec 08 '11 22:12 henrypoydar

+1

gustaflindqvist avatar Feb 28 '13 15:02 gustaflindqvist

I'm hit with this. :(

Wish warbler preserved symbolic links.

ebrahim avatar Mar 14 '14 12:03 ebrahim

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" ?

mkristian avatar Mar 14 '14 13:03 mkristian

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.

ebrahim avatar Mar 14 '14 13:03 ebrahim