不要自动在Eclipse的TFS插件中添加一些附加内容 [英] Do not automatically pend some additions in TFS plug-in for Eclipse

查看:53
本文介绍了不要自动在Eclipse的TFS插件中添加一些附加内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TFS插件进行蚀,我想对我的 \ bin (这是一个Android项目)文件夹所做的更改未反映在TFS中,我们可以说它是解除绑定"或制作"离线".Eclipse TFS插件可以做到这一点吗?

I am using TFS plugin for eclipse, i want to make my \bin (It's an Android Project) folder's changes not reflected in TFS, we can say it as "unbinding" or "making it offline". Is that possible by Eclipse TFS plugin

推荐答案

大多数源代码控制提供程序(包括TFS)使用的术语被忽略.

The terminology used by most source control providers, including TFS, is ignored.

用于Eclipse的TFS插件将使用Eclipse的派生资源"设置,该设置是从其余项目资源中构建的资源.也就是说,您的 bin 目录应该被Eclipse设置忽略.您可能希望仔细检查项目配置,以确保文件系统布局能够反映Eclipse认为是您的项目布局.(例如,如果您具有maven风格的项目配置并仅使用maven来生成构建,而没有使用 mvn 来设置Eclipse项目和工作区,则可能会发生这种情况.)

The TFS plug-in for Eclipse will honor Eclipse's "derived resource" settings, which is resources that are built from the rest of the project resources. That is to say that your bin directories should be ignored by your Eclipse settings. You may wish to double-check your project configuration to ensure that your filesystem layout reflects what Eclipse believes to be your project layout. (This can happen, for example, if you have a maven-style project configuration and use maven exclusively to produce builds, but you do not use mvn to setup your Eclipse projects and workspace.)

但是,您也可以手动完成此操作,因为Eclipse的TFS插件像大多数其他源代码控制提供程序一样具有 ignore文件.

However, you can also accomplish this manually, as the TFS plug-in for Eclipse has an ignore file like most other source control providers.

在Eclipse软件包浏览器中,只需右键单击 bin 文件夹,然后选择Team> Ignore.这将创建适当的忽略文件,并为整个 bin 文件夹添加一个条目(递归).

From within the Eclipse package explorer, you can simply right click on your bin folder and select Team > Ignore. This will create the appropriate ignore file and add an entry for your entire bin folder (recursively).

您还可以在TFS 2010及更低版本中手动更新文件,此文件为 .tfignore 文件.

You can also update the file manually, in TFS 2010 and prior, this file is the .tpignore file. In TFS 2012, with local workspaces, Visual Studio and the TFS plug-in for Eclipse have standardized on the new .tfignore file.

这篇关于不要自动在Eclipse的TFS插件中添加一些附加内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆