Option to disable jazzignore changes from visual studio
Hi,
We are using a component that already contain jazzignore files created from Eclipse client.
The team is using RTC Visual studio client and creating a new solution.
When trying to add and share new solution, RTC evaluate all existing jazzignore files located at the component and generate list of resources to ignore.
Also, It changes the jazzignore files and declare that recursive ignore will be ignored. See the following.
** Is there a way to disable the option to ignore from visual studio?
All jazzignore changes will be done externally.
Thanks,
Yaron
# The property core.ignore specifies a list of file patterns that will be
# ignored in this directory.
#
# The value of core.ignore.recursive will be ignored.
2 answers
Comments
Hi Surya,
Thanks for the reply.
You are right. The best is to create two components. One for Visual Studio only.
But, The environment is also connected to Clearcase and there is sync that is done on daily basis.
It means that I can not separate them now.
I already have a jazzignore files that contain all visual studio patterns.
I want to restrict the users to change it from visual studio.
I have two options now:
1. While sharing new solution - to unselect all patterns. It takes lot of time and visual studio is freeze. (long list generated from the 30 ignore files).
2. to let visual studio change those files and at the end undo all jazzignore changes. I have about 30 ignore files in this component and this is going to be complicated to support it.
Can you find alternate solution?
Thanks,
Yaron
I guess handling this manually is the only option left.
Hi Surya,
Hi Surya,
See below jazzignore example before and after sharing a visual studio solution.
You will find that there was deletion of some ignored patterns during the sln jazz share process.
Jazzignore - Before:
### Jazz Ignore 0
# Ignored files and folders will not be committed, but may be modified during
# accept or update.
# - Ignore properties should contain a space separated list of filename patterns.
# - Each pattern is case sensitive and surrounded by braces ('{' and '}').
# - "*" matches zero or more characters.
# - "?" matches a single character.
# - The pattern list may be split across lines by ending the line with a
# backslash and starting the next line with a tab.
# - Patterns in core.ignore prevent matching resources in the same
# directory from being committed.
# - Patterns in core.ignore.recursive matching resources in the current
# directory and all subdirectories from being committed.
# - The default value of core.ignore.recursive is *.class
# - The default value for core.ignore is bin
#
# To ignore shell scripts and hidden files in this subtree:
# e.g: core.ignore.recursive = {*.sh} {\.*}
#
# To ignore resources named 'bin' in the current directory (but allow
# them in any sub directorybelow):
# e.g: core.ignore.recursive = {*.sh} {\.*}
#
# NOTE: modifying ignore files will not change the ignore status of
# Eclipse derived resources.
core.ignore.recursive= {bin} {Release} {bin64} {*.mak2} {*.vcproj_mak} \
{*.obj} {*.asm} {*.bsc} {*.htm} {*.LL_libs} {*.LL_test} \
{*.log} {*.lst} {*.mak2} {*.makdep} {*.slice} {*.state} \
{*.tlb} {*.vcproj_mak} {Thumbs.db} {*.dep} {*.exp} {*.h62} \
{*.idb} {*.map} {*.ncb} {*.pch} {*.res} {*.resources} \
{*.pdb} {*.lib} {*.opt} {*.manifest} {*.sbr} {*.s62} \
{*.dll} {*.Dll} {*.exe} \
{*.vcproj.*.user} \
{LogHeaderInfo.h} {dlldata.c} {HostRunner_i.c} {HostRunner_p.c} {HostRunner.h} \
{EIM_manager.cdb} {EIM_managercfg_c.c} {EIM_managercfg.cmd} {EIM_managercfg.h} {EIM_manager.out} \
{Master.out} {Swiftcfg_c.c} {Swiftcfg.cmd} {Swiftcfg.h} \
{*.rbf}
core.ignore=
Jazzignore - After:
### Jazz Ignore 0
# The property core.ignore specifies a list of file patterns that will be
# ignored in this directory.
#
# The value of core.ignore.recursive will be ignored.
#
# Ignore properties should contain a space separated list of filename patterns.
# Each pattern is case sensitive and surrounded by braces ('{' and '}').
# "*" matches zero or more characters, and "?" matches single characters.
#
# e.g: {*.sh} {\.*} ignores shell scripts and hidden files
# NOTE: modifying ignore files will not change the ignore status of derived
# resources.
core.ignore.recursive= \
{*.obj} \
{*.log} \
{*.tlb} \
{*.idb} \
{*.pdb} \
{*.dll} \
{*.vcproj.*.user} \
{LogHeaderInfo.h} \
{EIM_manager.cdb} \
{Master.out} \
{*.rbf}
core.ignore=