Eclipse 中的 GWT Post 构建命令
我开始习惯 Eclipse,但我对 Visual Studio 有了更多的经验。在 Visual Studio 中,可以在构建完成后运行自动命令。
现在,我正在 Eclipse 的一个解决方案(或工作区)中同时创建一个 GWT 项目和几个其他项目。一些使用 GWT 项目编译的文件在编译后需要复制到另一个位置。我目前正在手动执行此操作,并希望自动执行此操作。我不经常这样做,因为该项目在调试模式下运行良好(...?gwt.codesvr=localhost:9997)。
但是在 Eclipse 中执行 GWT 项目的构建后命令的位置在哪里?是否可以?
I am starting getting used to Eclipse, but I have much more experience with Visual Studio. In Visual Studio it is possible to run auto commands after the build has finished.
Now I am creating a GWT project and several other projects at once in one solution (or workspace) in Eclipse. Some files which are compiled with the GWT project needs to be copied to another location when they have been compiled. I am currently doing this manually and would like to do it automatically. I am not doing it often, since the project works fine in debug mode (...?gwt.codesvr=localhost:9997).
But where is the location for executing a post build command for a GWT project in eclipse? Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需打开项目属性,选择“Builders”项目,然后单击“新建...”按钮。
Just open project properties, choose 'Builders' item and click on 'New...' button.
好问题!我大约从 2003 年开始使用 Eclipse,我记得当时我也想要类似的功能。然而,我已经习惯了使用 ant 进行任何严肃的构建,以至于我完全忘记了它。
Eclipse 中有一些有用的 ant 集成(例如 ant 视图),如果您使用 webAppCreator 您已经获得了一些可以构建的良好 Ant 目标。
有时,如果有一些更像 GUI 的东西来使用 Eclipse 进行简单的多步骤构建,那还是不错的。我还没有找到类似的东西,但它绝对有可能存在,特别是作为一个插件。
Good question! I'm using Eclipse since about 2003, and I remember that I also wanted a functionality like that back then. However, I got so used to using ant for any serious build, that I completely forgot about it.
There is some useful ant integration in Eclipse (e.g. the ant view), and if you create your GWT project with webAppCreator you already get a few good ant targets you can build upon.
It would still be nice sometimes to have something more GUI-like to do simple multi-step builds with Eclipse. I haven't found anything like that yet, but it's absolutely possible that it exists, especially as a plugin.