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

How to ignore *.class files

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

0 votes



5 answers

Permanent link
What IDE you use? If you are not loading, how do you change?

Jirong

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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!!!!

0 votes

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

Question asked: Oct 05 '11, 4:22 p.m.

Question was seen: 10,708 times

Last updated: Oct 05 '11, 4:22 p.m.

Confirmation Cancel Confirm