简体   繁体   English

说服eclipse / GPE在我进行仅服务器更改时不重新编译GWT代码

[英]Convincing eclipse/GPE to not recompile GWT code when I make a server-only change

I'm working with GWT and GAE in Eclipse with the google eclipse plugin. 我正在使用google eclipse插件在Eclipse中使用GWT和GAE。 Sometimes I just want to make a quick server fix. 有时我只是想快速修复服务器。 I change something in my server code and re-deploy, but the GWT code is all recompiled as well. 我在服务器代码中更改了一些内容并重新部署,但GWT代码也都重新编译了。 At this point that takes about 10 minutes, and is a real drag when a customer is waiting on the change. 此时大约需要10分钟,当客户等待更改时,这是一个真正的拖累。

The server code is not in a source path in my GWT modules. 服务器代码不在我的GWT模块的源路径中。 Anyone have ideas about convincing GWT that no relevant changes have been made, and that it can skip the recompile? 任何人都有关于说服GWT没有进行相关更改的想法,并且它可以跳过重新编译? Alternatively, I'd be happy to just manually force the GWT compiler not to run. 或者,我很乐意手动强制GWT编译器不运行。

If using maven, set the property gwt.compiler.skip to true. 如果使用maven,请将属性gwt.compiler.skip设置为true。 If not, there should be a flag in whatever build setup you are using to force a skip when you know it isn't necessary (and if you can share how you are building, it might be possible to offer more specific instructions). 如果没有,那么当您知道没有必要时,在您使用强制跳过的任何构建设置中都应该有一个标志(如果您可以分享您的构建方式,则可能提供更具体的说明)。

It is very difficult for the compiler to determine that no code which might affect the client has changed, even if you dont change any client or shared code. 即使您没有更改任何客户端或共享代码,编译器也很难确定没有可能影响客户端的代码已更改。 Generators and linkers both are arbitrary java code that can call anything else on the classpath, and the compiler can't ensure that they don't call into your other classes (and in fact this can be a useful feature, like for RequestFactory proxy validation). 生成器和链接器都是任意java代码,可以调用类路径上的任何其他内容,并且编译器无法确保它们不会调用其他类(事实上,这可能是一个有用的功能,例如RequestFactory代理验证)。

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

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