Why derived resources are not checked in

Technote (FAQ)


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.


Related information

Eclipse "derived" flag
EJB Deploy generated code not checked in
Exchanging projects via Project Interchange Files (PIF)
Adding J2EE metadata files to Source Control

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software
General Information

Software 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.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.0.0.10, 7.5, 7.5.1, 7.5.2, 7.5.3, 7.5.4, 7.5.5, 7.5.5.1

Operating system(s):

Multi-Platform

Reference #:

1221651

Modified date:

2010-02-16

Translate my page

Machine Translation

Content navigation