eclipse+bzr(或:DVCS+IDE)
我在 bzr 代码存储库上有一些项目与同事共享。
问题是,我确实想在某些项目中切换到 Eclipse,但我不想用 Eclipse 在其工作区中创建的不必要的元数据来污染存储库。
知道如何将 Eclipse 的元数据保留在我的 bzr 存储库之外吗?
亚当
I have some projects on bzr code repositories shared with colleagues.
Problem is, I really want to switch to eclipse in some projects, but I don't want to pollute the repository with the unnecessary metadata eclipse creates in its Workspaces.
Any idea how to keep Eclipse's metadata outside my bzr repo?
Adam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您知道创建的元文件的名称,则可以将它们放入存储库目录中的
.bzrignore
文件中。请参阅 bzr 的这一部分文档
If you know the names of the meta files created, you could put them into your
.bzrignore
file in your repository's directory.See this part of the bzr docs
eclipse中所有的主要元数据都在工作区中。
你的项目,意味着:
.project
文件.classpath
文件.settings
目录应该全部位于你的main中的其他地方项目目录。
所有这些文件(编译生成的
.class
文件除外)都应该进行版本控制。请参阅“您是否将项目文件保留在版本下控制?”了解更多信息,还可以:
All the main metadata in eclipse are in the workspace.
You project, meaning:
.project
file.classpath
file.settings
directoryshould all be located elsewhere, within your main project directory.
All those files (except the
.class
files generated by the compilation) should be versioned.See "Do you keep your project files under version control?" for more, but also: