Skip to main content
1-Visitor
August 29, 2014
Solved

Eclipse Integration how to get class files under version control

  • August 29, 2014
  • 2 replies
  • 2300 views

Hello,

I need to know how it is possible to get the class files from a java project under version control?

I know normally it is not necessary but in our use case we need it.

Thanks in advanced

    Best answer by ktaylor

    Hi Javier,

    The Integrity Eclipse Integration follows the Eclipse preferences for ignored resources, so to have the integration pick up these files, you need to remove *.class from the Team Ignored Resources. You can do this under: Window -> Preferences ->Team -> Ignored Resources, uncheck *.class.

    Whether your view in Eclipse shows or doesn't show the .class files would be based on which views you're using in Eclipse, and how they are configured. I believe the Navigator view is the one most likely to show .class files by default, as opposed to the Package Explorer.

    Does this help?

    Kristina

    2 replies

    16-Pearl
    August 29, 2014

    Hello Javier,

    Apparently (I'm not an Eclipse expert) this should be fairly straightforward to do. Could you post a screenshot of your Eclipse IDE, or describe it further? In particular, do you have the decorator open to show files under Source Integrity control, and do you have .jars listed as a resource type?

    Regards,
    Kael

    1-Visitor
    September 1, 2014

    Hello Kael,

    thanks for your quick answer. Im using Eclipse Kepler and I installed the PTC Intgetiry Plugin. The integration is working fine and I can import a Integrity Source Eclipse Project and work on it.

    As you can see on the picture if I modify a java file it is automatically lock in intgerity but the class file not.Picture.PNG

    In the Eclipse Client I was not able to display the class file and to add them to a Change Package.

    Could you now understand my usecase better ?

    ktaylor1-VisitorAnswer
    1-Visitor
    September 8, 2014

    Hi Javier,

    The Integrity Eclipse Integration follows the Eclipse preferences for ignored resources, so to have the integration pick up these files, you need to remove *.class from the Team Ignored Resources. You can do this under: Window -> Preferences ->Team -> Ignored Resources, uncheck *.class.

    Whether your view in Eclipse shows or doesn't show the .class files would be based on which views you're using in Eclipse, and how they are configured. I believe the Navigator view is the one most likely to show .class files by default, as opposed to the Package Explorer.

    Does this help?

    Kristina