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
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
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:
"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
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:
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.
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!!!!
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!!!!