简体   繁体   English

如何从eclipse嵌入式tomcat服务器中的自动发布中排除监视资源

[英]How can I exclude watched resources from the automatic publishing in eclipse embedded tomcat server

I am working on a GWT project in eclipse, using an embedded Tomcat server with auto publishing 'on'. 我正在eclipse中开发一个GWT项目,使用嵌入式Tomcat服务器,自动发布'on'。

Some of the maintained java sources are subject to the GWT compiler (which produces javascript for the client side) and not part of the server side code. 一些维护的java源受GWT编译器(它为客户端生成javascript)的约束,而不是服务器端代码的一部分。 Nevertheless, changing such client side sources triggers the auto publish to tomcat server (ie Tomcat restarts the application), which takes about 30 seconds. 然而,更改此类客户端源会触发自动发布到tomcat服务器(即Tomcat重新启动应用程序),这需要大约30秒。 Which is really annoying because these files are never deployed to the server side. 这真的很烦人,因为这些文件永远不会部署到服务器端。

How can I exclude these resources from beeing watched by the auto publisher? 如何从汽车发布商看到的这些资源中排除这些资源?

Versions: 版本:

  • eclipse: 2018-12 (4.10.0) 日食:2018-12(4.10.0)
  • GWT: 2.8.1 GWT:2.8.1
  • Tomcat: 8.0 Tomcat:8.0

在构建区域(“... / target / project-name /”如果使用maven),您只需要将“服务器”代码编译到WEB-INF目录,因为像所有servlet包含器一样,tomcat在WEB-INF/classes查找服务器代码WEB-INF/classes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM