将升华文本与Tomcat集成 [英] Integrate Sublime Text with Tomcat

查看:147
本文介绍了将升华文本与Tomcat集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在工作中,我们开发Java应用程序并使用Eclipse。作为前端开发者,我想完全切换到Sublime,但是它缺少Eclipse的功能,如果没有它,我不能工作。

At work, we develop Java applications and are using Eclipse. As a frontend dev I would like to switch completely to Sublime, but it's missing a feature of Eclipse, I can't work without it.

开发时,我不得不使用Maven构建项目并将其发布到Tomcat服务器。 Eclipse自动执行此操作,并重新发布已更改的文件。

When developing, I had to build the project with Maven and publish it to a Tomcat server. Eclipse does this all automatically and also republish changed files.

我到目前为止,使用Maven构建应用程序,并使用Maven-Tomcat插件将其发布到Tomcat。但是使用Tomcat 7重新发布是不可能的,更改的文件不会被复制到工作目录。所以我必须让Eclipse打开并刷新工作区,每次我在Sublime中更改文件。

I came so far, building the app with Maven and publish it to Tomcat with the Maven-Tomcat plugin. But with Tomcat 7 republishing isn't possible and changed files aren't copied to the working directory. So I have to leave Eclipse open and refresh its workspace everytime I changed files in Sublime.

是否可以将这个功能集成到Sublime与任何插件?

Would it be possible to integrate this functionality into Sublime with any plugin?

推荐答案

Eclipse有一个功能。选择使用本机钩子或轮询刷新刷新访问。你应该选择两者。我已经尝试只选择使用本机钩子或轮询刷新,但只有当您在eclipse中打开特定文件并在外部进行修改时它才起作用。 刷新访问也不能单独工作。这些选项组合起来,它的作品很有魅力。

Eclipse has a feature for this. Select "Refresh using native hooks or polling" and "Refresh on access". You should select both. I have tried only selecting "Refresh using native hooks or polling", but it works only when you keep open the specific file in eclipse and modifying it outside. "Refresh on access" also not working alone. With these options combined it works charmingly.

PS: 本机挂钩仅在 Windows 中可用。对于 Linux Mac 轮询。我不知道它的效率如何。

PS: Native hooks available only in Windows. For Linux and Mac polling is used. I don't know how efficient it is.

这篇关于将升华文本与Tomcat集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆