我有几个启动配置,我通过将 .launch 文件保存到我的项目来添加到源代码管理中。该项目是一个spring MVC webapp。
启动文件具有 VM 参数和类路径条目,具体取决于 vFabric tc 服务器的安装位置以及 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="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="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" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05" path="2" type="4"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/bootstrap.jar" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/tomcat-juli.jar" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Program Files/Java/jdk1.7.0_05/lib/tools.jar" path="3" type="2"/> "/>
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/spring-insight-instance/lib/aspectjweaver-1.6.12.M2.jar" path="3" type="2"/> "/>
</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="C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance" -Dcatalina.home="C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE" -Dwtp.deploy="C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\wtpwebapps" -Djava.endorsed.dirs="C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE\endorsed" -Daspectj.overweaving=true -Djava.awt.headless=true -Dgemfire.disableShutdownHook=true -Dinsight.base="C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\insight" -Xmx1024m -XX:MaxPermSize=256m -Xss192k"/>
<stringAttribute key="server-id" value="VMware vFabric tc Server Developer Edition v2.7"/>
</launchConfiguration>