IBM Support

Why derived resources are not checked in

Question & Answer


Question

Why are certain IBM Rational Application Developer for WebSphere Software files not automatically checked into the source control repository?

Cause

The files not automatically checked into the source control repository are marked as "derived" within Rational Application Developer. You can check the status of a file, by right mouse clicking on the file to bring up the Context Menu and selecting Properties. In the Info section, just below "Read Only" there is another checkbox: "Derived".

Answer

This is an Eclipse provided feature. Here is an excerpt from the Eclipse Help:

Derived resources

Many resources get created in the course of translating, compiling, copying, or otherwise processing files that the user creates and edits.  Derived resources are resources that are not original data, and can be recreated from their source files.  It is common for derived files to be excluded from certain kinds of processing.  

For example, derived resources are typically not kept in a team repository, since they clutter the repository, change regularly, and can be recreated from their source files.  It is not practical for team providers to make decisions about which files are derived.  The resource API provides a common mechanism for plug-ins to indicate the resources they create that are derived.

Typically Rational Application Developer developers mark generated files with the "derived" flag, and repository providers check the flag and do not check those files into the repository. See Related Information Item: EJB Deploy generated code not checked in .

As of WebSphere Studio Application Developer v5.1.2, the File Export as a Project Interchange Format (PIF) wizard was enhanced with the checkbox: Include derived files. The PIF is another alternative for sharing projects between workspaces.

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0;6.0.0.1;6.0.1;6.0.1.1;6.0.1.2;7.0;7.0.0.1;7.0.0.10;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7;7.0.0.8;7.0.0.9;7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21221651