英文:
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/<BASE_DIRECTORY_NAME>/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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论