How can I share .class files within one project's sub-folder, but ignore all others?
I have a component containing two Eclipse projects (ProjectA and ProjectB) that I have loaded and imported.
Each has .class files in sub-directories of my choosing, which I want ignored (as is the default setting).
However ProjectB has one sub-directory in which all .class files need to be under source control.
I have tried a number of modifications to .jazzignore file(s) to no avail.
How can I do this?
Accepted answer
That question looks like the exact issue you're having and has been answered.
Comments
Thanks for the response. The answer in that link tells me how to get RTC to stop ignoring all the .class files in the project but doesn't allow to choose only one folder where they are not ignored.
The suggestion is to remove the rule, but I want to modify it, in a complex way, rather than remove it.
You'll have to further customize the .jazzignore file. By default, it's a global, recursive ignore on .class files. You have to remove that ignore rule and implement a *.class ignore where you want them ignored.
So I'd have to create a new .jazzignore file with the *.class clause in every child directory of the project root folder? (Except the one folder in which I want to use source control on the .class files, of course.)
Is that right?
Yes. You can follow the instructions in the other forum post to remove the global ignore. Then ignore the .class files where you don't want them to be shared as you would normally with any file that is to be ignored.