JRuby-莺不保留符号链接 [英] JRuby - Warbler does not preserve symbolic links

查看:102
本文介绍了JRuby-莺不保留符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用warbler打包应用程序时,符号链接会丢失,并且符号链接指向的实际内容会被打包为WAR的一部分.

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.

就我而言,我有一个从public/images/upload到/var/myproject/upload的符号链接.在tomcat中部署战争之后,在展开的文件夹public/images/upload中将/var/myproject/upload的所有内容复制到其中,而不是链接到该文件夹​​.

In my case, I have a symlink from public/images/upload to /var/myproject/upload. After I deploy the war in tomcat, in the exploded folder public/images/upload has all the contents of /var/myproject/upload copied to it instead of linking to the folder.

更新:我的问题是:当战争部署时,莺将保留项目内部的符号链接吗?"

UPDATE: My questions is "will warbler retain the symbolic links inside the project when deployed as a war?"

环境信息:

jruby 1.6.2(ruby-1.8.7-p330)|莺1.3.1 | Cent OS 5.5 | Java SE"1.6.0_26"

jruby 1.6.2 (ruby-1.8.7-p330) | warbler 1.3.1 | Cent OS 5.5 | Java SE "1.6.0_26"

推荐答案

Warbler当前不支持符号链接,因此它尝试复制其内容.最好的选择是将Warbler配置为忽略该链接,然后使用其他将存储该链接的程序对.war文件进行后处理.

Warbler does not support symbolic links currently, so it tries to copy its contents. Your best bet is to configure Warbler to ignore the link and post process the .war file with some other program that would store the link.

为此可以随意提交功能请求,或者最好提交补丁/拉出请求.

Feel free to file a feature request for this, or better, submit a patch/pull request.

这篇关于JRuby-莺不保留符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆