Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Do .jazzignore files take effect only once delivered?

Hi All, I have a .jazzignore file in folder A, which has been delivered and contains
core.ignore= \
    {bin}
If I create a bin folder in A, next to this .jazzignore, no unresolved changes show up.

I moved the same .jazzignore file into a subfolder of A, called B.
Then I create a bin folder next to B's .jazzignore. Both the bin and the .jazzignore show up as an unresolved change.
Then I check in B's .jazzignore. The bin is still in the unresolved.

Do I need to deliver .jazzignore files to start working? If so, how can I test them before delivering?

RTC 6.0.1

related:
https://jazz.net/forum/questions/104068/jazzignore-not-working-w-rtc-cli
here it is suggested that the check-in would be sufficient

0 votes

Comments

OPEN QUESTIONS:
(1) how can I ignore a subfolder
  root folder\A\B\bin
so that no other folders get ignored?

(2) What does 'shared folder' refer to in

A .jazzignore files can be contained anywhere under a shared folder. A .jazzignore file that is contained above a shared folder is not recognized.

source:
https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_scm_eclipse_ignore.html

(3) does rtc read .jazzignore files if these are located
  root folder\A\B.jazzignore
at all?

To ignore the folder "root folder\A\B\bin", you need to create a "root folder\A\B.jazzignore" file containing "core.ignore= {bin}". If you don't want this .jazzignore file to show up as pending change as well, add {.jazzignore} to the same file.

If I am not mistaken, a "shared folder" is one that is under RTC source control. In your example, anything one level up of "root folder" and beyond will not be recognized.

RTC reads all .jazzignore files that are in the shared folder structure. It takes effect right after you refresh the sandbox.

To ignore the folder "root folder\A\B\bin", you need to create a "root folder\A\B.jazzignore" file containing "core.ignore= {bin}"

I did exactly that ("root folder\A\B.jazzignore"), but it simply did not work. The "root folder\A\B\bin" folder was still showing up as unresolved.
Yes, I tried refreshing, and a few more things, but it had no effect.

Maybe it's just the displaying issue on the forum, but let's make sure, the file is ""root folder\A\B\ .jazzignore" - that is, the .jazzignore file and folder "bin" are in the same folder "B". It works in my RTC 6.0.3 environment.

Hi Donald, yes, you are right. It is a displaying issue.
root folder\A\B\.jazzignore  is the path we are talking about

double checked now: my .jazzignore in subfolder B does not work even if delivered, while my .jazzignore in A does work, in RTC 6.0.1

showing 5 of 6 show 1 more comments

Accepted answer

Permanent link

There is no need to deliver the .jazzignore file, unless you want others to have the same configuration. Let's try this way.
1. Remove all the .jazzignore files except the original one in the root folder.
2. Add the folder root folder/A/B/bin.
3. In the Pending Changes view, expand the Unresolved category so that you can see the folder "bin".
4. Right-click "bin" and select Ignore.

Geoffrey Clemm selected this answer as the correct answer

1 vote

Comments

Donald, this works. Great! Would you move this out to become an answer so that I can accept it?
The diff shows that the empty assignment,
core.ignore.recursive=
is added when using ignore from the interface and then the core.ignore works.


2 other answers

Permanent link

By moving the Jazz ignore into a sub folder you basically removed any jazzignore for the files and folders that are not within the hierarchy of that folder.

So essentially you don't have no .jazzignore for all the other folders anymore. I think you either move the .jazzignore back up or create a new one. See https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Ft_scm_eclipse_ignore.html

A .jazzignore files can be contained anywhere under a shared folder. A .jazzignore file that is contained above a shared folder is not recognized.

0 votes

Comments

I have also tried with copying instead of moving, which made no difference
since I use core.ignore, no recursive, I also do not expect to have any

root folder\A
root folder\A\.jazzignore  <--- A's .jazzignore
root folder\A\bin                <--- no unresolved change
root folder\A\B
root folder\A\B\.jazzignore  <--- B's .jazzignore
root folder\A\B\bin                <--- an unresolved change

Do you mean .jazzignore files are only supposed to work in subfolders of the root folder, and not in lower subfolders?

This is what I read in the link you mention

A .jazzignore files can be contained anywhere under a shared folder. A .jazzignore file that is contained above a shared folder is not recognized.

Does the "shared folder" refer to a folder right below the root folder?

adding {B\bin} or {B/bin} to
A's .jazzignore has no effect either

how can I ignore A\B\bin?

see OPEN QUESTIONS comment on the original question


Permanent link

You can add {bin} to core.ignore.recursive. If you will add .jazzignore files in sub directories, you may want to add it as well. So your .jazzignore file in folder A will look like:

core.ignore.recursive= \
    {*.class} \
    {.jazzignore} \
    {bin}
   
core.ignore=

0 votes

Comments

thanks, I knew of the recursive solution
please have a look at the OPEN QUESTIONS comment on the original question

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023

Question asked: Jul 18 '17, 3:51 a.m.

Question was seen: 2,452 times

Last updated: Jul 23 '17, 9:24 a.m.

Confirmation Cancel Confirm