Intellij:在导出的运行配置中保存Tomcat路径。

huangapple go评论87阅读模式
英文:

Intellij: save tomcat path in exported run configuration

问题

我正在尝试在两个Linux虚拟机之间复制一个IntelliJ Tomcat运行配置,但是应用服务器路径没有被保存下来。
有没有一种方法可以在运行配置的XML文件中保存应用服务器的路径?

我将一个Tomcat服务器运行配置的XML文件从一个虚拟机复制到另一个虚拟机。目标虚拟机可以看到运行配置,并且保留了所有的配置(虚拟机参数、部署、任务、端口),只是缺少了"应用服务器"。
我注意到在运行配置的XML文件中没有硬编码的应用服务器路径。
一些Tomcat的路径被保存在.cache/JetBrains/.../tomcat/<BASE_DIRECTORY_NAME>/conf/[catalina.properties/server.xml]中。我是否也应该在虚拟机之间移动这些文件?我宁愿不这样做。

这两个虚拟机具有相同的目录结构。
IntelliJ版本:2022.3.3

英文:

I'm trying to copy an IntelliJ Tomcat Run Config between 2 linux VMs, but the Application server path doesn't get saved.
Is there a way to save the path to the Application server in the Run Config xml?

I copied a Tomcat Server Run Configuration xml from one VM to another. The destination sees the Run Config and it keeps all the configs (vm args, deployment, tasks, ports) except for the "Application server".
I see that there is no hardcoded path to the Application server in the Run Config xml file.
Some paths to Tomcat are saved in .cache/JetBrains/.../tomcat/&lt;BASE_DIRECTORY_NAME&gt;/conf/[catalina.properties/server.xml]. Should I also move these files between VMs? I would rather not.

The VMs have the same directory structure.
Intellij version: 2022.3.3

答案1

得分: 0

应用服务器是IDE的全局设置,实际服务器的路径存储在IDE配置目录下的options/javaeeAppServers.xml文件中。这些设置不应在不同操作系统之间共享。

运行配置只通过名称引用应用服务器。

英文:

Application server is the IDE-wide setting, and the actual paths to the servers are stored in options/javaeeAppServers.xml file under the IDE configuration directory.

These are not meant to be shared between different operating systems.

Run configuration only references the app server by its name.

huangapple
  • 本文由 发表于 2023年8月8日 23:51:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76861220.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定