It's all about the answers!

Ask a question

How to ignore *.class files


Maggie Stearns (1063027) | asked Oct 05 '11, 4:22 p.m.
Hello:

I am using RTC3.0

I have a legacy project that needs to checkin *.class files.

By default, RTC ignores bin and *.class files.

I am not loading eclipse projects, so the .jazzignore file is
not a solution here, correct?

I tried creating an ignore rule for *.class and unchecking the box. That didn't work. (while it appears to work for bin; or maybe bin works for
another unknown reason).

Any other ideas?

-Maggie

5 answers



permanent link
Jirong Hu (1.5k9295258) | answered Oct 05 '11, 5:04 p.m.
What IDE you use? If you are not loading, how do you change?

Jirong

permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 05 '11, 8:28 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Something to keep in mind is that RTC will not checkin files marked as
"derived", and by default, Eclipse will mark the generated *.class files
as derived. To see whether this is the case, just ask Eclipse for the
properties of one of the *.class files, and check whether the "derived"
checkbox is checked.

Cheers,
Geoff

On 10/5/2011 4:23 PM, mstearns wrote:
Hello:

I am using RTC3.0

I have a legacy project that needs to checkin *.class files.

By default, RTC ignores bin and *.class files.

I am not loading eclipse projects, so the .jazzignore file is
not a solution here, correct?

I tried creating an ignore rule for *.class and unchecking the box.
That didn't work. (while it appears to work for bin; or maybe bin
works for
another unknown reason).

Any other ideas?

-Maggie

permanent link
Maggie Stearns (1063027) | answered Oct 06 '11, 9:39 a.m.
I can't get that far :)

I can't import any *.class files into RTC for the first time. I have copied it to my sandbox, and it never gets picked up in pending changes.

permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 06 '11, 5:59 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It's not RTC that owns the "derived" property, it is Eclipse.
So load your project into Eclipse.
And ask Eclipse for the properties of one of those *.class files (from
the Project Explorer or Package Explorer view, I assume that these
..class files are in an Eclipse project, right?
And check if the "derived" property is set.
If so, uncheck it, refresh your project area, and see if that *.class
file now shows up in pending changes.

Or it could be some other problem (:-).

Cheers,
Geoff

On 10/6/2011 12:08 PM, mstearns wrote:
I can't get that far :)

I can't import any *.class files into RTC for the first time. I have
copied it to my sandbox, and it never gets picked up in pending
changes.

permanent link
Maggie Stearns (1063027) | answered Oct 07 '11, 11:48 a.m.
I was able to deliver *.class files after doing this:

1. I loaded the component as an eclipse project
2. I opened the package explorer and renamed foo.new to foo.class
3. I right clicked on the file and selected Team --> Add to Ignore Resources
this modifies the .jazzignore to add the correct rules to not ignore *.class
4. I delivered the .jazzignore and the new class file

Another thing I learned was that the bin ignore rule is only for bin directories at the root level of a component.
I was confused as to why some of mine got checked-in and some didnt. Now I can correct that issue too.

Thanks!!!!

Your answer


Register or 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.