SVN中的Eclipse .classpath:JRE碰撞 [英] Eclipse .classpath in SVN: JRE collision
问题描述
我将要在Eclipse中提交Eclipse .classpath
和 .project
到SVN中,遵循好的建议我在这里得到了这个。
I'm about to commit Eclipse .classpath
and .project
into SVN, following the good advice I got here on SO.
问题是一些JRE定义对开发者的机器是独一无二的,例如:
The problem is that some JRE definitions are unique to a developer's machine, e.g.:
<classpathentry kind="con" path="..JRE_CONTAINER/org..../Jeffs JRE"/>
如果此行已提交,则在其他没有 Jeffs JRE
。
If this line is committed, it fails on other machines that don't have Jeffs JRE
.
解决方法的任何想法? JRE定义也可以共享?
Any idea for a workaround? Could the JRE definitions be shared as well?
推荐答案
我从来没有看到添加特定的IDE配置文件是一个很好的做法,但这是一个不同的问题。
I never saw adding specific IDE configuration files as a good practice, but that's a different issue.
如果要遵循该路径,应使用变量。
If you want to follow that path, you should use the variables.
Java构建路径>添加变量
Java Build Path > Add variable
然后,您需要确保每个开发人员都定义了这些变量,每个人都有自己的路径。
Then you need to make sure that every single developer has those variables defined, everyone with their own paths.
(或使用Maven避免这些问题)
(or use Maven to avoid these problems)
这篇关于SVN中的Eclipse .classpath:JRE碰撞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!