blob: 86cc58970cb66a19f8d19dc9be6afa3e165cdffb [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css">
<title>Setting the content type of a file extension</title>
<meta name="keyword" content="team">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1 CLASS="Head"> Setting the content type of a file extension</H1>
<P CLASS="Para">CVS repositories distinguish between files that contain ASCII
data and those that do not. For ASCII files, additional helpful functionality
is available to the user. This includes:</P>
<ul>
<li>Proper end of line conversion between the client and the server. This ensures
that a Windows user and a UNIX user can work on the same file without introducing
incompatibilities.</li>
<li>Auto merging of conflicts. If a file contains both incoming and outgoing
changes but none on the same line as another, then the file may be automatically
merged when updating.</li>
</ul>
<p class="Para">Certain file types invariably contain either ASCII data or binary
data. For example, *.txt files usually contain ASCII data, and *.exe files usually
contain binary data. Eclipse comes with a pre-defined set of file types, which
you may add to or modify.</p>
<P CLASS="Para">To set the content type associated with a file extension: </P>
<ol>
<li>From the main menu bar, select <b>Window &gt; Preferences</b> to open the
Workbench Preferences dialog.</li>
<li>In the dialog, select the<b> Team &gt; File Content</b> preference page.
This page displays a list of file extensions and content type (ASCII or Binary)
for file extensions whose content type is known.</li>
<li>
<p CLASS="Para">To add a file extension, click the <b>Add</b> button and enter
the file extension in the text prompt that appears. Once <b>OK</b> is clicked,
the extension will be added to the list with a content type of ASCII.
</li>
<li>To change the content type for an existing file extension, select the file
extension entry and click the <b>Change</b> button. This will toggle the type
from ASCII to Binary or vice versa.</li>
<li>To remove a file extension, select the file extension entry and click the
<b>Remove</b> button.<br>
</li>
</ol>
<p><img border="0" src="../images/ngrelc.gif" alt="Related concepts" width="159" height="27">
<br><a href="../concepts/concepts-26.htm">Team programming with CVS</a>
</p>
<p><img border="0" src="../images/ngrelr.gif" alt="Related reference" width="159" height="27">
<br><a href="../reference/ref-47.htm">CVS</a>
</p>
<p>&nbsp;<br>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a>
</p>
</BODY>
</HTML>