Home

 

File content

The file content of resources can be configured to be stored as either ASCII or binary. When working with a file extension that is not defined in the file content list stored in RAD v7.5, files of this type are saved into the repository as binary by default. When a resource is stored as a binary, CVS cannot show line-by-line comparisons between versions. However, files that have binary content cannot be stored as ASCII CVS files. After a file is created as one type, it cannot be changed. Therefore, it is important to make sure that each file content type is configured correctly in Application Developer before adding a new project to the repository.

To verify that a resource in the workspace is stored in the repository correctly, select Windows Æ Preferences and expand Team Æ File Content (Figure | 8-9). Verify that the file extensions that you are using are present and stored in the repository as desired.

Figure 28-9 Team File Content preferences

If a particular file extension is not in the list, then this extension has to be added, unless the resource is stored in the default binary format. Application Developer prompts the user for the resource type when performing the first check-in (see Figure | 8-16) if it encounters a new type, or the new type can be added manually in the Preferences page.

A common file that is often supplied with a source code distribution is a Makefile.mak file, which is usually an ASCII file.

To demonstrate adding this file type extension (that is not present in this list),
do these steps:

Select Windows Æ Preferences and expand Team Æ File Content.

Click Add Extension.

Enter the extension name mak and click OK.

Find the extension in the list, and in the Content column, and select ASCII Text from the drop-down.

Tip: The content can also be changed by highlighting the extension and clicking Change. This toggles the setting between ASCII Text and Binary.

Click Apply and then OK.
ibm.com/redbooks