gpt4 book ai didi

java - 分享 eclipse/springsource 工具套件服务器启动配置

转载 作者:行者123 更新时间:2023-12-01 05:08:33 25 4
gpt4 key购买 nike

我有几个启动配置,通过将 .launch 文件保存到我的项目中,将它们添加到源代码管理中。该项目是一个 Spring MVC Web 应用程序。

启动文件具有 VM 参数和类路径条目,这些条目取决于 vFabric tc Server 的安装位置以及 JVM 的安装位置。我想与我的团队分享这些启动配置,所以我想知道如何用 eclipse 变量替换这些完整路径,以便任何人都可以使用这些配置,无论 springsource 工具套件安装在哪里。

是否存在必要的变量?它们是什么?提前致谢。完整的 .launch 文件如下所示:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.vmware.server.tc.launchConfiguration">
<booleanAttribute key="com.springsource.sts.server.insight.ui.insightConfigured" value="true"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/spring-insight-instance/bin/insight-bootstrap-tcserver-1.8.3.RELEASE.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05&quot; path=&quot;2&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/bootstrap.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/tomcat-juli.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Java/jdk1.7.0_05/lib/tools.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/spring-insight-instance/lib/aspectjweaver-1.6.12.M2.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="start"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dcatalina.base=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance&quot; -Dcatalina.home=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE&quot; -Dwtp.deploy=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\wtpwebapps&quot; -Djava.endorsed.dirs=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE\endorsed&quot; -Daspectj.overweaving=true -Djava.awt.headless=true -Dgemfire.disableShutdownHook=true -Dinsight.base=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\insight&quot; -Xmx1024m -XX:MaxPermSize=256m -Xss192k"/>
<stringAttribute key="server-id" value="VMware vFabric tc Server Developer Edition v2.7"/>
</launchConfiguration>

最佳答案

在 Eclipse 中,类路径变量在 Window -> Preferences -> Java -> Build Path 中配置> 类路径变量。在那里配置了适当的变量后,请按照 here 提供的说明进行操作。 .

希望这有帮助。

关于java - 分享 eclipse/springsource 工具套件服务器启动配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12384349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com