对 init_custom.vm 的更改未显示

发布于 2024-12-13 03:34:28 字数 765 浏览 5 评论 0原文

我正在构建一个新的 Liferay 主题,并被这个问题压垮了。

当我对 init_custom.vm 进行更改时,查看更改的唯一可能方法是重新启动 Tomcat。当我对主题进行其他更改(例如编辑 CSS 或添加图像)时,我可以在通过 Ant Deploy 目标部署主题后看到更改。模板就没那么幸运了。

部署后我检查了 $CATALINA_HOME/webapps/my-theme/init_custom.vm ,该文件确实反映了我的更改。

如果这样循环下去,我就无法继续发展。我必须能够在不需要重新启动的情况下更改速度模板。有什么建议吗?

当我进行更改时,我使用 Eclipse Liferay IDE 和 Ant 构建来部署我的主题。我正在使用 Liferay 6.0.6 Tomcat 捆绑包。我还已将 include-and-override=portal-developer.properties 添加到我的 portal-ide.properties 文件中。

谢谢!!!

(也在 Liferay 论坛中问过这个问题,我会确保复制我得到的所有答案:http://www.liferay.com/community/forums/-/message_boards/message/11292911)

I'm building a new Liferay theme and being crushed by this problem.

When I make changes to the init_custom.vm, the only possible way for me to see the changes is to restart Tomcat. When I make other changes to my theme, such as editing my CSS or adding images, I can see the changes after deploying the theme via the Ant Deploy target. No such luck with the templates.

I checked the $CATALINA_HOME/webapps/my-theme/init_custom.vm after deploying, and that file does reflect my changes.

I cannot continue to develop if this is going to be the cycle. I must be able to make changes to the velocity template without requiring a restart. Any suggestions?

I'm using the Eclipse Liferay IDE and the Ant build to deploy my theme when I make changes. I'm using the Liferay 6.0.6 Tomcat bundle. I've also already added include-and-override=portal-developer.properties to my portal-ide.properties file.

Thanks!!!

(also asked this in the Liferay Forums, and I'll make sure to copy back any answers I get: http://www.liferay.com/community/forums/-/message_boards/message/11292911)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帅冕 2024-12-20 03:34:28

Liferay 还缓存所有与 Velocity 相关的内容,这些内容有时会以您描述的方式呈现:除非您重新启动 Liferay,否则对模板的更改似乎不会显示。如果您在 Portal-ext.properties 文件中设置以下属性,则可以关闭此行为:

velocity.engine.resource.manager.cache.enabled=false

Liferay also caches everything Velocity related which sometimes can present itself in the way you describe: changes to templates don't seem to show unless you restart Liferay. You can turn off this behavior if you set the following property in your portal-ext.properties file:

velocity.engine.resource.manager.cache.enabled=false
决绝 2024-12-20 03:34:28

我切换到 6.1 Beta,并且该版本没有出现问题,所以只是使用 6.0.6。

另外:我已经看到如何在不重新启动速度的情况下编辑 velocimacro?< /a> 和 测试 JSON Rails 3.2 中的 API 使用 rspec 使用精确的 PUT/POST 主体作为 Backbone 发送,但它们对我不起作用。由于某种原因,升级到 6.1 beta 确实有效。

I switched to the 6.1 Beta and do not have the problem on that release, so it was just with 6.0.6.

Also: I've seen How to edit a velocimacro without restarting velocity? and Testing JSON API in Rails 3.2 using rspec using exact PUT/POST bodies as Backbone would send and they did not work for me. Upgrading to 6.1 beta did, for some reason, work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文