【问题标题】:In Eclipse how do you automatically copy a file after save?在 Eclipse 中,如何在保存后自动复制文件?
【发布时间】:2023-01-31 03:39:53
【问题描述】:

我在 Eclipse 中有点菜鸟,所以可能有办法做到这一点,但我还没有找到它。

在其他 IDE 中,我可以设置一个动作,在保存时将给定文件复制到另一个位置。

例如,假设我的存储库在 /dev/myproject 中。进一步说,我的网络根目录位于 /webroot。

当我对 /dev/myproject/index.html 进行更改并保存在 Eclipse 中时,我希望将 index.html 复制到 /webroot/index.html。

有没有办法在 Eclipse 中做到这一点?

【问题讨论】:

    标签: eclipse ide


    【解决方案1】:

    是的,将批处理文件(或其他文件)设置为 External Tool 并将其设置为项目的生成器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-12
      • 2018-04-18
      • 2011-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多