【发布时间】:2015-03-05 13:56:56
【问题描述】:
我有一个模块化的网络项目,因此我允许模块成为一个战争档案,包括 webapp 文件夹。使用以下 rebel.xml 可以很好地检测所有模块的类更改。但是由于某种原因,当 html 或 js 更改时,jrebel 不会移动。
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath>
<!-- appserver -->
<dir name="/home/xx/data/appserver/target/classes/main"/>
<dir name="/home/xx/data/appserver/target/resources/main"/>
<!-- module -->
<dir name="/home/xx/data/as.module.core/target/classes/main"/>
<dir name="/home/xx/data/as.module.core/target/resources/main"/>
<dir name="/home/xx/data/as.module.mqlcore/target/classes/main"/>
<dir name="/home/xx/data/as.module.mqlcore/target/resources/main"/>
</classpath>
<!-- web>
<link target="/">
<dir name="/home/xx/data/appserver/src/main/webapp"/>
<dir name="/home/xx/data/as.module.core/src/main/webapp"/>
<dir name="/home/xx/data/as.module.mqlcore/src/main/webapp"/>
</link>
</web -->
<web>
<link target="/">
<dirset dir="/home/xx/data">
<include name="**/src/main/webapp"/>
</dirset>
</link>
</web>
</application>
编辑:
有趣的事实是。当我使用 web 配置的注释部分时,所有三个 webapp 文件夹都在日志中,并将被监视更改。但是应用服务器找不到所有的 webapp 文件。当我使用第二个<web> 配置时,应用程序服务器可以看到所有文件,但 jrebel 不会观察到所有文件。我认为不可能有多个目录链接到“/”
【问题讨论】: