platform-vcm-home/docs/online/cvs_features2.0/cvs-faq.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.58 - (view) (download) (as text)

1 : jlemieux 1.44 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 : jlemieux 1.48 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3 : jlemieux 1.44 <head>
4 : jlemieux 1.48 <meta content="application/xhtml+xml; charset=utf-8"
5 : mvalenta 1.54 http-equiv="content-type" />
6 :     <meta content="haran" name="author" />
7 :     <meta content="Windows Notepad" name="generator" />
8 : jlemieux 1.48 <link type="text/css" href="http://dev.eclipse.org/default_style.css"
9 : mvalenta 1.54 rel="stylesheet" />
10 : jlemieux 1.48 <link title="Grey boxes stylesheet"
11 : jlemieux 1.44 href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/layout.css"
12 : mvalenta 1.54 type="text/css" rel="stylesheet" />
13 : jlemieux 1.48 <link
14 :     href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/colors.css"
15 : mvalenta 1.54 type="text/css" rel="stylesheet" />
16 : mvalenta 1.49 <title>Eclipse Platform - CVS FAQ</title>
17 : jlemieux 1.44 </head>
18 :     <body>
19 : jlemieux 1.48 <table width="100%" cellpadding="2" cellspacing="5" border="0">
20 : jlemieux 1.44 <tbody>
21 :     <tr>
22 : mvalenta 1.54 <td width="72%" align="left"> <font class="indextop"> CVS</font><br />
23 : jlemieux 1.44 <font class="indexsub">platform cvs support</font></td>
24 : jlemieux 1.48 <td width="28%"><img width="120" height="86"
25 : mvalenta 1.54 src="http://dev.eclipse.org/images/Idea.jpg" /></td>
26 : jlemieux 1.44 </tr>
27 :     </tbody>
28 :     </table>
29 : jlemieux 1.41 <h1>CVS Eclipse Plug-in FAQ</h1>
30 : mvalenta 1.58 <p>Last Modified: $Date: 2006/05/31 15:39:51 $</p>
31 : james 1.1 <ul>
32 : jlemieux 1.44 <li><b><a href="#gettingStarted">Getting started</a></b>
33 : jlemieux 1.36 <ol>
34 : jlemieux 1.44 <li><a href="#gettingStarted_1">How do I get a project into my
35 :     workspace from CVS?</a></li>
36 :     <li><a href="#gettingStarted_2">How do I put a project into CVS
37 :     from my workspace?</a></li>
38 :     <li><a href="#gettingStarted_3">I already have a project checked
39 :     out from CVS with the command-line tool. How do I use it in Eclipse
40 :     without having to check out the whole project again?</a></li>
41 : jlemieux 1.36 </ol>
42 :     </li>
43 : jlemieux 1.44 <li><b><a href="#browsing">Browsing the Repository</a></b>
44 : jlemieux 1.36 <ol>
45 : jlemieux 1.44 <li><a href="#browsing_1">Why don't my branches and versions show
46 :     up when I am browsing?</a></li>
47 :     <li><a href="#browsing_2">Why do some modules defined in
48 :     CVSROOT/modules appear empty in the CVS Repositories view?</a></li>
49 :     <li><a href="#browsing_3">When I expand HEAD in the CVS
50 :     Repositories View, it is always empty even though I know the repository
51 :     has contents. Whats wrong?</a></li>
52 : jlemieux 1.36 </ol>
53 :     </li>
54 : jlemieux 1.44 <li><b><a href="#server">Server Issues</a></b>
55 : kevinm 1.15 <ol>
56 : jlemieux 1.44 <li><a href="#server_1">What server versions of CVS are supported
57 : mvalenta 1.57 by Eclipse?</a></li>
58 : jlemieux 1.44 <li><a href="#server_1a">Why doesn't Eclipse 2.1.x work with CVS
59 : mvalenta 1.57 server versions 1.11.7 and beyond?</a></li>
60 :     <li><a href="#server_cvsnt">Why aren't older (pre 2.0.58d) CVSNT versions supported?</a></li>
61 : kevinm 1.15 <li><a href="#server_2">Where can I get CVS for UNIX or Windows?</a></li>
62 :     <li><a href="#server_3">Where can I find documentation on CVS?</a></li>
63 : jlemieux 1.44 <li><a href="#server_6">When I perform a Replace With or Update
64 : mvalenta 1.57 operation, Eclipse tells me that option -C is not supported. What's
65 :     wrong?</a></li>
66 : jlemieux 1.44 <li><a href="#server_7">I performed a Replace With or Override
67 :     and Update and one of the files involved ended up with strange
68 :     characters in it. Why?</a></li>
69 :     <li><a href="#server_8">I got a "received broken pipe signal"
70 :     error. What does it mean?</a></li>
71 :     <li><a href="#server_9">How do I use a local connection with
72 :     Eclipse?</a></li>
73 : mvalenta 1.58 <li><a href="#server_10">With CVSNT, why do I get the error: &quot;Error
74 :     fetching file revisions&quot;?</a></li>
75 : jlemieux 1.44 <li><a href="#server_11">Why can't I get Eclipse to work with
76 :     CVSNT and mapped network drives?</a></li>
77 :     <li><a href="#server_12">Using CVSNT, Why do I get the error "cvs
78 :     [server aborted]: cannot find .: No such file or directory"?</a></li>
79 : mvalenta 1.58 <li><a href="#server_13">Why do I get the error &quot;Resource &lt;name&gt;
80 :     is not a child of folder &lt;folder&gt;&quot;?</a></li>
81 :     <li><a href="#server_14">Why can't I set the keyword substitution mode for CVSNT using Eclipse?</a></li>
82 : jlemieux 1.36 </ol>
83 :     </li>
84 : jlemieux 1.44 <li><b><a href="#ssh">Using SSH with CVS</a></b>
85 : jlemieux 1.36 <ol>
86 : jlemieux 1.44 <li><a href="#ssh_1">How do I use SSH to communicate with the
87 :     server?</a></li>
88 :     <li><a href="#ssh_2">What is the difference between ext and
89 :     extssh?</a></li>
90 : mvalenta 1.53 <li><a href="#ssh_jcraft">My SSH server only support SSH2 protocol and
91 :     I'm using Eclipse 2.1.x</a></li>
92 :     <li><a href="#ssh_3">How do I set up public-key authentication for use with
93 :     an external SSH client?</a></li>
94 : jlemieux 1.44 <li><a href="#ssh_4">When I try to connect using SSH, it tells me
95 :     "Could not chdir to home directory /home/user/myname". What did I do
96 :     wrong?</a></li>
97 :     <li><a href="#ssh_5">I got an 'Unknown response' while trying to
98 :     perform CVS browsing. What went wrong?</a></li>
99 : mvalenta 1.58 <li><a href="#ssh_6">I can't get keys generated using Putty to work with Eclipse</a></li>
100 :     <li><a href="#ssh_7">Why do CVS extssh connections fail on Fedora Core 4</a></li>
101 :     <li><a href="#ssh_8">Why does CVS extssh prompt for my password even when it is saved?</a></li>
102 : jlemieux 1.44 </ol>
103 :     </li>
104 :     <li><b><a href="#10">Upgrading from Eclipse 1.0</a></b>
105 :     <ol>
106 :     <li><a href="#10_1">Is there anything I should do before
107 :     upgrading from Eclipse 1.0 to 2.0?</a></li>
108 :     <li><a href="#10_2">I'm using a workspace from 1.0. Why does the
109 :     Team menu only contain "Share Project"?</a></li>
110 :     <li><a href="#10_3">Eclipse 1.0 created all my files as binary in
111 :     the repository. How do I fix this?</a></li>
112 :     <li><a href="#10_4">Is a Branch the same as a Stream? What about
113 :     other 1.0 terminology?</a></li>
114 :     <li><a href="#10_5">I get a message saying the .vcm_meta file is
115 :     obsolete and should be deleted. Should I really delete it?</a></li>
116 :     </ol>
117 :     </li>
118 :     <li><b><a href="#java">Using Eclipse and CVS for Java development</a></b>
119 :     <ol>
120 :     <li><a href="#java_1">When I check out a Java project from the
121 :     repository, how do I make Eclipse aware it is a Java project?</a></li>
122 :     <li><a href="#java_2">What is the .classpath file? Should I
123 :     release it to the repository?</a></li>
124 :     <li><a href="#java_3">In my CVS repository, there is a source
125 :     directory in the repository root. How can I use this with Eclipse?</a></li>
126 :     <li><a href="#java_4">How do I check out a module definition as a
127 :     Java project</a></li>
128 :     <li><a href="#java_5">Why does the bin directory keep appearing
129 :     in the Synchronize view?</a></li>
130 :     <li><a href="#java_5a">I ignored the bin directory but it appears
131 :     to be shared anyway. Why?</a></li>
132 : jlemieux 1.36 <li><a href="#java_6">How do I use CVS keywords in Java templates?</a></li>
133 : jlemieux 1.44 <li><a href="#java_7">I'm working with a virtual module defined
134 :     in the CVSROOT/modules file. How do I commit the .project and/or
135 :     .classpath file?</a></li>
136 : jlemieux 1.36 </ol>
137 :     </li>
138 : jlemieux 1.44 <li><b><a href="#commandLine">Compatibility Between CVS command-line
139 :     client and Eclipse</a></b>
140 : jlemieux 1.36 <ol>
141 : jlemieux 1.44 <li><a href="#commandLine_1">Does Eclipse use [WinCVS|CVS
142 :     command-line client] to talk to the server?</a></li>
143 :     <li><a href="#commandLine_2">The command-line CVS client stores
144 :     information in CVS folders. Does Eclipse do the same thing? If so,
145 :     where are the folders?</a></li>
146 :     <li><a href="#commandLine_3">Is Eclipse compatible with the
147 :     command-line CVS client?</a></li>
148 :     <li><a href="#commandLine_4">Can I import a project into Eclipse
149 :     that was checked out using the command line?</a></li>
150 :     <li><a href="#commandLine_5">Why does Eclipse corrupt my *.jar,
151 :     *.zip, etc. files?</a></li>
152 :     <li><a href="#commandLine_6">When I use the command-line CVS on
153 :     my project, why do the CVS folders sometimes appear in the Navigator
154 :     View?</a></li>
155 :     <li><a href="#commandLine_7">When I use the command-line CVS on
156 :     my project, why go I get "resource out of sync" errors?</a></li>
157 : jlemieux 1.36 </ol>
158 :     </li>
159 : jlemieux 1.44 <li><b><a href="#patches">Working with Patches</a></b>
160 : jlemieux 1.36 <ol>
161 :     <li><a href="#patches_1">How do I send someone a patch?</a></li>
162 : jlemieux 1.44 <li><a href="#patches_2">How do I apply a patch that someone sent
163 :     me?</a></li>
164 : jlemieux 1.36 </ol>
165 :     </li>
166 : jlemieux 1.44 <li><b><a href="#linux">Linux Issues</a></b>
167 : jlemieux 1.36 <ol>
168 : jlemieux 1.44 <li><a href="#linux_0">On linux, using IBM JRE 1.3.0, I get a
169 :     timeout when connecting to a repository. What's wrong?</a></li>
170 :     <li><a href="#linux_1">On Red Hat 8, Eclipse fails to make a
171 :     checkout but it works with other clients. Why?</a></li>
172 : jlemieux 1.36 </ol>
173 :     </li>
174 : jlemieux 1.44 <li><b><a href="#windows">Windows Issues</a></b>
175 : jlemieux 1.36 <ol>
176 : jlemieux 1.44 <li><a href="#windows_0">Eclipse crashed Windows 2000 (blue
177 :     screen) when performing a CVS operation. What happened?</a></li>
178 :     <li><a href="#windows_2">Eclipse always times out when performing
179 :     a Synchronize on one or two particular machines?</a></li>
180 :     <li><a href="#windows_3">Why do CVS operations slow down when I
181 :     am connected to my network/dial-up?</a></li>
182 :     <li><a href="#windows_4">Why do all my files show as outgoing
183 :     changes?</a></li>
184 : jlemieux 1.36 </ol>
185 :     </li>
186 : jlemieux 1.44 <li><b><a href="#misc">Miscellaneous</a></b>
187 : jlemieux 1.36 <ol>
188 : jlemieux 1.44 <li><a href="#misc_0">Is there any equivalent to CVS_CLIENT_LOG
189 :     is Eclipse?</a></li>
190 :     <li><a href="#misc_1">What is the .project file, and should I
191 :     release it to CVS?</a></li>
192 :     <li><a href="#misc_2">I don't have update access to the CVS
193 :     repository. Can I still check out a project with Eclipse?</a></li>
194 :     <li><a href="#misc_3">What does "Terminated with fatal signal 10"
195 :     mean?</a></li>
196 :     <li><a href="#misc_4">I copied some folders from one CVS project
197 :     to another and the old CVS information remained. What happened?</a></li>
198 :     <li><a href="#misc_8">I used Team &gt; Share Project to connect a
199 :     local project to an existing project and it takes forwever. Why?</a></li>
200 : jlemieux 1.36 <li><a href="#misc_9">Does Eclipse support Watch/Edit?</a></li>
201 : jlemieux 1.44 <li><a href="#misc_12">Why do I get a "Pre-commit failed" error
202 :     with no detailed error message?</a></li>
203 : kevinm 1.15 </ol>
204 : jlemieux 1.36 </li>
205 : james 1.1 </ul>
206 :     <!-- End of table of contents -->
207 :     <!-- Getting Started -->
208 : jlemieux 1.42 <h1>Getting Started</h1>
209 : james 1.1 <ol>
210 : jlemieux 1.44 <li><b><a name="gettingStarted_1">How do I get a project into my
211 :     workspace from CVS?</a></b>
212 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
213 :     <ol>
214 :     <li>Window-&gt;Show View-&gt;Other. Select CVS-&gt;CVS
215 :     Repositories.</li>
216 :     <li>Context Menu-&gt;New-&gt;Repository Location...</li>
217 :     <li>Fill in the location information identifying your repository
218 :     and click Finish.</li>
219 :     <li>Expand the newly-created repository location.</li>
220 :     <li>Expand HEAD.</li>
221 :     <li>Find the module you are interested in.</li>
222 :     <li>Context Menu-&gt;Check Out As Project.</li>
223 :     </ol>
224 : mvalenta 1.54 <br />
225 : jlemieux 1.44 The project now exists in your workspace. </li>
226 : mvalenta 1.54 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
227 : jlemieux 1.44 </p>
228 :     <li><b><a name="gettingStarted_2">How do I put a project into CVS
229 :     from my workspace?</a></b>
230 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
231 :     <ol>
232 :     <li>Select the project in the Navigator or other view.</li>
233 :     <li>Context Menu-&gt;Team-&gt;Share Project...</li>
234 :     <li>Fill in the location information identifying your repository
235 :     and click Finish.</li>
236 :     <li>The Synchronize view opens, showing all your outgoing changes.</li>
237 :     <li>Select the project in the Synchronize view.</li>
238 :     <li>Context Menu-&gt;Commit.</li>
239 :     <li>Answer yes when prompted to add new files to version control.</li>
240 :     <li>Supply a release comment if you like.</li>
241 :     </ol>
242 : mvalenta 1.54 <br />
243 : jlemieux 1.44 The project now exists in the repository. </li>
244 : mvalenta 1.54 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
245 : jlemieux 1.44 </p>
246 :     <li><b><a name="gettingStarted_3">I already have a project checked
247 :     out from CVS with the command-line tool. How do I use it in Eclipse
248 :     without having to check out the whole project again?</a></b>
249 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
250 :     <ol>
251 :     <li>Create a project in the workspace.</li>
252 :     <li>File-&gt;Import, select File System, locate your files, click
253 :     Finish.</li>
254 :     <li>Select the project in the Navigator or other view.</li>
255 :     <li>Context Menu-&gt;Team-&gt;Share Project...</li>
256 :     <li>The wizard should tell you that it found all the necessary
257 :     information. Click Finish.</li>
258 :     </ol>
259 : mvalenta 1.54 <br />
260 : jlemieux 1.44 Eclipse has now shared the project with the CVS repository. </li>
261 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
262 : james 1.1 </ol>
263 : mvalenta 1.54 <br />
264 : james 1.1 <!-- Browsing the Repository -->
265 : jlemieux 1.42 <h1>Browsing the Repository</h1>
266 : james 1.1 <ol>
267 : jlemieux 1.44 <li><b><a name="browsing_1">Why don't my branches and versions show
268 :     up when I am browsing?</a></b>
269 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
270 :     <p>When you are browsing in the CVS Repositories view, you may
271 :     expect to see branch and version tags which you have previously
272 :     created. In CVS, such tags are stored on individual files rather than
273 :     on projects or folders. Rather than scan every file in the repository,
274 :     Eclipse only scans one well-known file, .project, which should exist in
275 :     every Eclipse project. It is possible that you have other interesting
276 :     tags that do not appear on .project but which you would like to show up
277 :     in the CVS Repositories view.</p>
278 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
279 :     <p>To make these tags appear, do the following:</p>
280 :     <ol>
281 :     <li>Open the CVS Repositories view.</li>
282 :     <li>Expand HEAD and select the project for which you want to
283 :     configure tags.</li>
284 :     <li>Context Menu-&gt;Configure Branches and Versions...</li>
285 :     <li>In the "Browse files for tags" table, select one or more
286 :     files that contain tags you would like to see.</li>
287 :     <li>Click "Add Selected Tags".</li>
288 :     <li>Click "OK".</li>
289 :     </ol>
290 : mvalenta 1.54 <br />
291 : jlemieux 1.44 The CVS Repositories view will now display the chosen tags under the
292 :     Branches and Versions categories. In addition, these tags will show up
293 :     in other tag-related operations, such as "Replace With-&gt;Branch or
294 :     Version...". </li>
295 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
296 :     <li><b><a name="browsing_2">Why do some modules defined in
297 :     CVSROOT/modules appear empty in the CVS Repositories view?</a></b>
298 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
299 :     <p>Some modules are not expandable because their definition is
300 :     complex and difficult to parse on the client. These modules can still
301 :     be checked out properly using the "Check Out Module" menu command from
302 :     the module's context menu. </p>
303 :     </li>
304 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
305 :     <li><b><a name="browsing_3">When I expand HEAD in the CVS
306 :     Repositories View, it is always empty even though I know the repository
307 :     has contents. Whats wrong?</a></b>
308 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
309 :     <p>If you also see messages from the server like "-f server: ...",
310 :     this indicates that your CVS server has not been configured properly.
311 :     Here is the line as it should appear in the "/etc/inetd.conf" file
312 :     (example from AIX but the problem has also been seen on Solaris):</p>
313 :     <ul>
314 :     <li>cvspserver stream tcp nowait root /usr/bin/cvs cvs -f
315 :     --allow-root=/usr/cvsroot pserver</li>
316 :     </ul>
317 :     <p>The key is the 2nd copy of "cvs". The online cvs book at <a
318 :     href="http://cvsbook.red-bean.com/cvsbook.html#The_pserver_access_method_is_not_working">
319 : mvalenta 1.28 http://cvsbook.red-bean.com/cvsbook.html</a>
320 : jlemieux 1.44 has it right (although I thought it was a typo so never tried it). Look
321 :     for "The pserver access method is not working" section. Part of the
322 :     reason I got this wrong is that the linux xinetd configuration
323 :     does not duplicate the name of the program. At one point I
324 : mvalenta 1.28 just copied the fields from the linux config into the fields in the AIX
325 : jlemieux 1.44 inetd.conf file. Now that I know what to look for, the other entries in
326 :     the inetd.conf file
327 : mvalenta 1.28 have the program name duplicated.</p>
328 : jlemieux 1.44 </li>
329 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
330 : james 1.1 </ol>
331 : mvalenta 1.54 <br />
332 : kevinm 1.16 <!-- Server Issues -->
333 : jlemieux 1.43 <h1>Server Issues</h1>
334 : james 1.1 <ol>
335 : mvalenta 1.57
336 :     <li><b><a name="server_1">What server versions of CVS are supported by Eclipse?</a></b>
337 :    
338 : jlemieux 1.48 <p>In 3.0, Eclipse supports CVS version 1.11.1p1 or higher, running
339 : mvalenta 1.57 on a Linux or UNIX server and CVSNT 2.0.58d or later, when properly
340 :     <a href="../html-cvs/cvs-compatibility.html">configured</a>. Eclipse 2.1.2 and before does not work with
341 :     CVS versions greater than 1.11.6 (see <a href="#server_1a">next point</a>).
342 :     CVSNT versions prior to 2.0.58d are not supported but some versions have been reported to
343 :     work with few problems. There have also been some problems reported with HPUX and Solaris version
344 :     (see <a href="#browsing_3">above</a>).</p>
345 : mvalenta 1.55 <p>There are also cases where newer server versions are required for some
346 : mvalenta 1.57 functionality. For instance, incoming change sets in the synchronize view
347 :     require CVS version 1.11.5 or beyond to work properly
348 :     (see bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=81960">81960</a>)</p>
349 : jlemieux 1.44 </li>
350 : mvalenta 1.57
351 :     <li><b><a name="server_1a">Why doesn't Eclipse 2.1.x work with CVS server versions 1.11.7 and beyond?</a></b>
352 : jlemieux 1.48 <p>Most of the interesting Eclipse CVS functionality relies on the
353 : mvalenta 1.57 format of the messages and the change in format made in 1.11.7 breaks
354 :     the parsing in Eclipse versions prior to 2.1.3. Most of the
355 :     incompatibilities for 1.11.x were addressed in 2.1.3. See bugs
356 :     <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=46655">46655</a>
357 :     and <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=49056">49056</a>
358 :     for patches and workarounds for previous versions of Eclipse or
359 :     remaining incompatibilities. As for 1.12.x releases of CVS, Eclipse
360 :     2.1.x is not compatible with this server version. Eclipse 3.0 is
361 :     compatible with 1.12.7 but future releases of CVS may cause similar
362 :     breakages. In such cases, Team&gt;Update and Team&gt;Commit should
363 :     still work but the more advanced work flows (e.g. synchronizing) may not
364 :     be reliable.</p>
365 : jlemieux 1.48 </li>
366 : mvalenta 1.57
367 : mvalenta 1.49 <li><b><a name="server_cvsnt">Why aren't older (pre 2.0.58d) CVSNT versions supported?</a></b>
368 :     <p>The reason older CVSNT versions aren't supported is because traditionally its
369 : mvalenta 1.57 development effort had been smaller and has lagged behind that of CVS
370 :     Linux, thus its quality tends to be of issue. That has changed as of version 2.0.58d
371 :     which is now supported (when properly
372 :     <a href="../html-cvs/cvs-compatibility.html">configured</a>) on Eclipse 3.0 and beyond.</p>
373 : mvalenta 1.47 </li>
374 : mvalenta 1.57
375 : jlemieux 1.48 <li><b><a name="server_2">Where can I get CVS for UNIX or Windows?</a></b>
376 : mvalenta 1.57 <p>CVS for UNIX can be downloaded by going to
377 :     <a href="http://www.cvshome.org">http://www.cvshome.org</a>. CVSNT can be
378 :     downloaded by going to <a href="http://www.cvsnt.org">http://www.cvsnt.org</a>.</p>
379 : jlemieux 1.44 </li>
380 : mvalenta 1.57
381 : jlemieux 1.48 <li><b><a name="server_3">Where can I find documentation on CVS?</a></b>
382 : mvalenta 1.57 <p>The CVS manual can be found by going to <a href="http://www.cvshome.org">http://www.cvshome.org</a>.</p>
383 : jlemieux 1.44 </li>
384 : mvalenta 1.57
385 : jlemieux 1.48 <li><b><a name="server_6">When I perform a Replace With or Update
386 :     operation, Eclipse tells me that option -C is not supported. What's
387 :     wrong?</a></b>
388 :     <p>This error indicates that your server version is CVS 1.10 or
389 :     before. The -C option was introduced in version 1.11. See <a
390 : jlemieux 1.44 href="#server_1">above</a> for supported CVS versions.</p>
391 :     </li>
392 : mvalenta 1.57
393 : jlemieux 1.48 <li><b><a name="server_7">I performed a Replace With or Override and
394 :     Update and one of the files involved ended up with strange characters
395 :     in it. Why?</a></b>
396 :     <p>This error indicates that your server version is CVS 1.11 which
397 :     has a bug when replacing a locally dirty file. See <a href="#server_1">above</a>
398 :     for supported CVS versions.</p>
399 : jlemieux 1.44 </li>
400 : mvalenta 1.57
401 : jlemieux 1.48 <li><b><a name="server_8">I got a "received broken pipe signal"
402 :     error. What does it mean?</a></b>
403 :     <p>Eclipse sometime performs multiple commands within a single
404 :     connection to the server. This may cause problems with CVS server that
405 :     are running server scripts in reponse to certain commands.</p>
406 : jlemieux 1.44 </li>
407 : mvalenta 1.57
408 : jlemieux 1.48 <li><b><a name="server_9">How do I use a local connection with
409 :     Eclipse?</a></b>
410 :     <p>Eclipse does not support the use of the local connection method
411 :     as this requires a CVS client that also includes the CVS server code in
412 :     it. Command line cvs uses the same executable for the client and the
413 :     server whereas Eclipse is a client only. Since the repository is on the
414 :     same machine as the client, you should be able to use pserver.</p>
415 : jlemieux 1.44 </li>
416 : mvalenta 1.57
417 : mvalenta 1.58 <li><b><a name="server_10">With CVSNT, why do I get the error: &quot;Error
418 :     fetching file revisions&quot;?</a></b>
419 :     <p>This problem has several causes. One is the use of a backslash (\) in the
420 :     repository path instead of a slash (/). Another can be a mismatch in the
421 :     case of the letters in the repository path. See bug
422 :     <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=56635">56635</a> for more details.</p>
423 :     </li>
424 :    
425 : jlemieux 1.48 <li><b><a name="server_11">Why can't I get Eclipse to work with CVSNT
426 :     and mapped network drives?</a></b>
427 :     <p>The problem is that CVSNT (as of 1.11.1.3) only supports using
428 :     the local connection method with network drives and Eclipse does not
429 :     support this connection method (see <a href="#server_9">above</a>). </p>
430 : jlemieux 1.44 </li>
431 : mvalenta 1.57
432 : jlemieux 1.48 <li><b><a name="server_12">Using CVSNT, Why do I get the error "cvs
433 :     [server aborted]: cannot find .: No such file or directory"?</a></b>
434 :     <p>I think the problem is that of user rights on the machine CVSNT
435 :     is running on. You might try one or more of the following options: </p>
436 : mvalenta 1.33 <ul>
437 : jlemieux 1.48 <li>create a group having full access rights to the CVSNT
438 :     repository directory structure plus the temp folder CVSNT is using.
439 :     This is easiest if you specify a separate CVSNT temp directory such as
440 : mvalenta 1.54 "c:\cvstemp" using the Advanced tab in the<br />
441 : mvalenta 1.57 CVSNT control panel. (The default temporary directories in
442 : jlemieux 1.48 "C:\WINNT\TEMP" and "C:\Documents and Settings" have access
443 :     restrictions under Win2000 and WinXP).</li>
444 : jlemieux 1.44 <li>turn off impersonation in CVSNT</li>
445 : jlemieux 1.48 <li>add all CVS users to PowerUsers on the machine CVSNT is
446 :     running on</li>
447 : jlemieux 1.44 </ul>
448 : mvalenta 1.58 <p>&nbsp;</p>
449 :     </li>
450 :    
451 :     <li><b><a name="server_13">Why do I get the error &quot;Resource &lt;name&gt; is not a child of folder &lt;folder&gt;&quot;?</a></b>
452 :     <p>CVSNT has a separate option called <em>Emulate &quot;-n checkout&quot; bug</em> that must be enabled for Eclipse
453 :     to work properly. This is because the &quot;bug&quot; in question is the behavior of a 1.11.x server which
454 :     Eclipse requires.
455 :     </p>
456 :     </li>
457 :    
458 :     <li><b><a name="server_14">Why can't I set the keyword substitution mode for CVSNT using Eclipse?</a></b>
459 :     <p>CVSNT has a non-standard way of dealing with keyword substitution so you will
460 :     need to use a CVSNT specific client to modify the keyword substitution mode.
461 :     </p>
462 : mvalenta 1.33 </li>
463 : mvalenta 1.57
464 : james 1.1 </ol>
465 : mvalenta 1.54 <br />
466 : james 1.1 <!-- SSH -->
467 : jlemieux 1.43 <h1>Using SSH with CVS</h1>
468 : james 1.1 <ol>
469 : mvalenta 1.53 <li><b><a name="ssh_1">How do I use SSH to communicate with the server?</a></b>
470 :     <p>The pserver protocol sends passwords over the network in plaintext. Many
471 :     people prefer to establish a secure connection using SSH. Eclipse supports
472 :     two methods of connecting to CVS repositories using SSH. </p>
473 :     <p>To use the Eclipse's built-in SSH support, simply specify "extssh" as the
474 :     connection method type when creating the repository connection.</p>
475 : jlemieux 1.44 <p>To use SSH support from an external tool, you must: </p>
476 :     <ol>
477 : mvalenta 1.53 <li>Specify "ext" as the connection method type when creating the repository
478 :     connection.</li>
479 :     <li>Window-&gt;Preferences-&gt;Team-&gt;CVS-&gt;Ext Connection Method. On
480 :     this page, specify the name and location of your external ssh client.
481 :     (For example, "<code>C:\plink.exe</code>" or "<code>/usr/local/bin/ssh</code>").
482 :     Also specify the name and location of the CVS binary <b>on the server</b>.
483 :     The default value is often correct.</li>
484 :     <li>Ensure that you can log on to the server using the external SSH tool
485 :     <b>without specifying a password</b>.</li>
486 :     </ol>
487 :     <p><b>Note:</b> In Eclipse 2.1, you can also specify (on the Ext Connection
488 :     Method preference page) the parameters to be passed to the SSH client, including
489 :     the password.</p>
490 :     </li>
491 :     <li><b><a name="ssh_2">What is the difference between ext and extssh?</a></b>
492 :     <p>The extssh connection method uses a built-in SSH client. The ext connection
493 :     method allows you to specify an external SSH client to use. For extssh to
494 :     work with Eclipse 2.1.x and before, the server must be running an SSH server
495 :     with SSH1 protocol compatibility. If extssh does not work, it is possible
496 :     that the server is running only the SSH2 protocol. If this is the case,
497 :     you must configure the ext connection method with an external SSH client.
498 :     In Eclipse 3.0 and beyond, extssh does support SSH2. </p>
499 : jlemieux 1.44 </li>
500 : mvalenta 1.53 <li><a name="ssh_jcraft"></a><strong>My SSH server only support SSH2 protocol
501 : mvalenta 1.54 and I'm using Eclipse 2.1.x</strong> <br />
502 :     <br />
503 : mvalenta 1.53 Eclipse comes with a built-in SSH connection method called 'extssh'. Prior
504 :     to Eclipse 3.0, this method only supported SSH1 servers. If your server is
505 :     running SSH2 and you want to use Eclipse 2.1.x to connect to that server you
506 : mvalenta 1.54 have two options: <br />
507 : jlemieux 1.36 <ol>
508 : mvalenta 1.53 <li>use a command line SSH client that supports SSH2 with the 'ext' connection
509 : mvalenta 1.54 method <br />
510 : jlemieux 1.44 </li>
511 :     <li>download a plugin created by <a
512 : mvalenta 1.53 href="http://www.jcraft.com/eclipse-cvsssh2/">JCraft</a> that provides a SSH2
513 : mvalenta 1.54 connection method. <br />
514 : jlemieux 1.44 </li>
515 : jlemieux 1.36 </ol>
516 : mvalenta 1.53 To use the 'ext' connection method, download and install an SSH command line
517 :     client for your operating environment. In the Team &gt; CVS &gt; Ext Connection
518 :     Method preference page, configure the location of the SSH executable and how
519 :     the executable is to be called. For the ext method to work the CVS client
520 :     on your server must support the server mode. You can verify this by running
521 : mvalenta 1.54 cvs --help-commands and ensure that the server command is supported.<br />
522 : mvalenta 1.53 &nbsp; </li>
523 :     <li><b><a name="ssh_3">How do I set up public-key authentication for an external
524 :     SSH client?</a></b>
525 :     <p>The steps for setting up public-key authentication vary depending on your
526 :     SSH client. However, they all follow this set of common steps: </p>
527 :     <ol>
528 :     <li>Use the client program (or a utility that came with it) to generate
529 :     a public/private key pair. This program might be called ssh-keygen or
530 :     puttygen.exe.</li>
531 :     <li>Copy the public key to the server. This is often done by pasting the
532 :     public key into the file <code>/home/user/.ssh/authorized_keys</code>.</li>
533 :     </ol>
534 :     </li>
535 : mvalenta 1.54 <br />
536 : mvalenta 1.53 <li><b><a name="ssh_4">When I try to connect using SSH, it tells me "Could not
537 :     chdir to home directory /home/user/myname". What did I do wrong?</a></b>
538 :     <p>This often happens when using SourceForge projects for the first time,
539 :     but may occur on other servers as well. You must manually log in to the
540 :     server, using an interactive SSH session, in order to create your home directory
541 :     for the first time. After this, you will be able to log in successfully.
542 :     </p>
543 :     <p>Use your SSH client to connect to the server (e.g. cvs.sourceforge.net)
544 :     and log in with your username and password. Your home directory will be
545 :     created for you.</p>
546 :     </li>
547 :     <li><b><a name="ssh_5">I got an 'Unknown response' while trying to perform CVS
548 :     browsing. What went wrong?</a></b>
549 :     <p>A problem has been reported that involves the Cygwin SSH client (see bug
550 :     <a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=21180">21180</a>).
551 :     Try using another SSH client such as Putty or <a
552 : jlemieux 1.44 href="http://www.networksimplicity.com/openssh/">OpenSSH</a>. </p>
553 : jlemieux 1.36 </li>
554 : mvalenta 1.54 <li><a name="ssh_6"><strong>I can't get keys generated using Putty to work with
555 : mvalenta 1.58 Eclipse</strong></a>
556 : mvalenta 1.53 <p>Putty's private key is encrypted by AES, but JCE (Java Crtptgraphy Extension)
557 :     included in J2SE 1.4.x does not support AES. So, at present time, there is
558 :     no plan to support it. Of course, JSch (the SSH2 client used in Eclipse) may
559 :     support Putty's key by using the latest J2SE in the near future, but Eclipse
560 : mvalenta 1.54 3.0/3.1 will not be able to use it because they must run on J2SE 1.4.0. This
561 :     is explained more in bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=84281">https://bugs.eclipse.org/bugs/show_bug.cgi?id=84281</a>.</p>
562 : mvalenta 1.58 </li>
563 :     <li><a name="ssh_7"><strong>Why do CVS extssh connections fail on Fedora Core 4</strong></a>
564 :     <p>
565 :     There is an issue with Sun's JDK 1.4.2 and Fedora Core 4 that causes extssh
566 :     connections to fail with the message:
567 :     <pre>
568 :     CVS Communication error:
569 :     org.eclipse.team.internal.ccvs.ssh2.CVSSSH2ServerConnection$SSH2IOException:
570 :     Invalid argument or cannot assign requested address
571 :     </pre>
572 :     The issue seems to be related to both IPv6 and IPv4 being available in FC4. The
573 :     solution is to add
574 :     <pre>
575 :     -Djava.net.preferIPv4Stack=true
576 :     </pre>
577 :     with the -vmargs option when eclipse is started.
578 :     </p>
579 :     </li>
580 :     <li><strong><a name="ssh_8">Why does CVS extssh prompt for my password even when it is saved?</strong></a>
581 :     <p>This problem has been seen on servers that have a problems in a particular authentication
582 :     method. This will cause extssh to believe that there has been an authentication failure which
583 :     trigger a password prompt. See bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=119008">119008</a>
584 :     for details.
585 :     </p>
586 :     </li>
587 : james 1.1 </ol>
588 : mvalenta 1.54 <br />
589 : james 1.1 <!-- Upgrading from Eclipse 1.0 -->
590 : jlemieux 1.43 <h1>Upgrading from Eclipse 1.0</h1>
591 : james 1.1 <ol>
592 : jlemieux 1.44 <li><b><a name="10_1">Is there anything I should do before upgrading
593 :     from Eclipse 1.0 to 2.0?</a></b>
594 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
595 :     <p><b>IMPORTANT:</b> Before upgrading from Eclipse 1.0 to 2.0, make
596 :     sure you release all your changes to the repository using Eclipse 1.0.
597 :     Although it is possible to submit the changes using Eclipse 2.0 after
598 :     you upgrade, to do so is not straight forward due to a change in how
599 :     the synchronization information for each project is stored.</p>
600 :     </li>
601 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
602 :     <li><b><a name="10_2">I'm using a workspace from 1.0. Why does the
603 :     Team menu only contain "Share Project"?</a></b>
604 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
605 :     <p>Team support changed drastically between Eclipse 1.0 and 2.0. As
606 :     such, the method of sharing projects with the repository changed as
607 :     well. We have tried to make it relatively easy for you to migrate,
608 :     however. You will notice that your previously shared projects only have
609 :     "Share Project" in the Team menu. If you select that option, a wizard
610 :     will guide you through the migration process. When you are finished,
611 :     your project will be shared and the Synchronize view will open. You
612 :     will see conflicting changes on every file - this is due to changes in
613 :     the way sync information is stored between 1.0 and 2.0. If you do not
614 :     have any outgoing changes (which you shouldn't have if you committed
615 :     all your outgoing changes before upgrading as recommended above), then
616 :     you can simply select the project in the Synchronize view and select
617 :     "Override and Update" which will load the current contents from the
618 :     server. If you do have outgoing changes, you can pull down the triangle
619 :     menu in the Synchronize view and select "Compare File Contents". After
620 :     some work, the Synchronize view will show you only the files which are
621 :     actually different. You can then use the Synchronize view to resolve
622 :     these conflicts.</p>
623 :     </li>
624 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
625 :     <li><b><a name="10_3">Eclipse 1.0 created all my files as binary in
626 :     the repository. How do I fix this?</a></b>
627 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
628 :     <p>Any file checked into a CVS repository from Eclipse 1.0 was
629 :     marked as binary. This means that end-of-line conversions will not
630 :     occur on checkout, and some features of CVS (such as auto-mergeable
631 :     conflicts) will not apply to these files. As such, it may be desirable
632 :     to change some of these files from binary to text. To change the file
633 :     types, do the following:</p>
634 :     <ol>
635 :     <li>Make sure that all members of your team have saved and
636 :     committed any changes to the affected files.</li>
637 :     <li>Select the resources you wish to change in the Navigator or
638 :     other view.</li>
639 :     <li>Context Menu-&gt;Team-&gt;Set Keyword Substitution...</li>
640 :     <li>Select "Automatic" to use the recommended detection. Click
641 :     Next.</li>
642 :     <li>Select the checkbox labelled "Include files that are already
643 :     in the repository". Click Next.</li>
644 :     <li>Click Finish. All affected files will immediately be modified
645 :     in the repository.</li>
646 :     <li>All other team members must now check out fresh copies of all
647 :     affected files.</li>
648 :     </ol>
649 :     </li>
650 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
651 :     <li><b><a name="10_4">Is a Branch the same as a Stream? What about
652 :     other 1.0 terminology?</a></b>
653 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
654 :     <p>In an effort to move away from generic terminology that applies
655 :     to all repository providers, and toward provider-specific terminologies
656 :     and workflows, many terms, menu items and labels have changed in 2.0.
657 :     Here is a brief list of some of the changes. For more detailed
658 :     information, please see the Eclise CVS documentation.</p>
659 :     <table border="1">
660 :     <tbody>
661 :     <tr>
662 :     <td><b>Eclipse 1.0</b></td>
663 :     <td><b>Eclipse 2.0</b></td>
664 :     <td><b>Comments</b></td>
665 :     </tr>
666 :     <tr>
667 :     <td>Stream</td>
668 :     <td>Branch</td>
669 :     <td>The CVS terminology "Branch" replaces "Stream"</td>
670 :     </tr>
671 :     <tr>
672 :     <td>Catchup</td>
673 :     <td>Update</td>
674 :     <td>"Update" refers to the standard CVS method of retrieving
675 :     remote contents. For more details on Update, see the Eclipse CVS
676 :     documentation.</td>
677 :     </tr>
678 :     <tr>
679 :     <td>Release</td>
680 :     <td>Commit</td>
681 :     <td>These terms are equivalent.</td>
682 :     </tr>
683 :     <tr>
684 :     <td>Add to Workspace</td>
685 :     <td>Check Out as Project</td>
686 :     <td>The CVS terminology "Check Out" replaces "Add to
687 :     Workspace".</td>
688 :     </tr>
689 :     <tr>
690 :     <td><i>None</i></td>
691 :     <td>Tag</td>
692 :     <td>In CVS, a Tag refers to either a Branch Tag or a Version
693 :     Tag. Branches and versions together are referred to as Tags.</td>
694 :     </tr>
695 :     </tbody>
696 :     </table>
697 :     </li>
698 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
699 :     <li><b><a name="10_5">I get a message saying the .vcm_meta file is
700 :     obsolete and should be deleted. Should I really delete it?</a></b>
701 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
702 :     <p>In Eclipse 1.0, meta-information about a project was stored in
703 :     .vcm_meta. In Eclipse 2.0, this mechanism was made more general and the
704 :     data was moved to the .project file. As such, the .vcm_meta file is now
705 :     unneeded. The Eclipse CVS client will warn you of this state by placing
706 :     a warning in the task list. If you still have people on your team who
707 :     are using Eclipse 1.0 for development with your repository, then you
708 :     should not delete the .vcm_meta file. If all members of your team are
709 :     using Eclipse 2.0, then you can safely delete the .vcm_meta file and
710 :     commit the deletion to the repository.</p>
711 :     </li>
712 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
713 : james 1.1 </ol>
714 : mvalenta 1.54 <br />
715 : james 1.1 <!-- Using Eclipse and CVS for Java Development -->
716 : jlemieux 1.43 <h1>Using Eclipse and CVS for Java Development</h1>
717 : james 1.1 <ol>
718 : jlemieux 1.44 <li><b><a name="java_1">When I check out a Java project from the
719 :     repository, how do I make Eclipse aware it is a Java project?</a></b>
720 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
721 :     <p>Eclipse makes use of information in the .project file to
722 :     determine if a project is a Java project. If the project you have
723 :     checked out does not have a .project file, Eclipse will not mark it
724 :     properly. If you use "Checkout As..." instead of "Checkout As Project"
725 :     in the Repositories view, then you will be given an opportunity to
726 :     specify Java as the project type and provide Java specific
727 :     configuration information.</p>
728 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
729 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
730 :     </li>
731 :     <li><b><a name="java_2">What is the .classpath file? Should I commit
732 :     it to the repository?</a></b>
733 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
734 :     <p>Eclipse's Java development tools create and maintain a special
735 :     file, .classpath, in the root of each Java project. This file contains
736 :     information about the project's classpath, including references to
737 :     other projects, external jars, and the project's own source path. If
738 :     you are working on a team with other developers that use Eclipse, you
739 :     probably want to commit this file to the repository so that others can
740 :     benefit from correct classpath settings. If the other developers on
741 :     your team do not use Eclipse, you may still want to commit the
742 :     .classpath file so that your settings are persisted - this should not
743 :     affect the users that are not using Eclipse.</p>
744 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
745 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
746 :     </li>
747 :     <li><b><a name="java_3">In my CVS repository, there is a source
748 :     directory in the repository root. How can I use this with Eclipse?</a></b>
749 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
750 :     <p>If the name of the CVS module is part of the package name of
751 :     Java files, you will encounter problems. For example, if the module you
752 :     check out is called "test", and it contains a folder called "code"
753 :     which contains Java files that claim to be in the package "test.code",
754 :     Eclipse will not be able to compile these Java classes. There are
755 :     several solutions to this problem:</p>
756 :     <ol>
757 :     <li>One solution is to move the top-level package folder ("test"
758 :     in this case) to be a subfolder of the CVS module. In this case, create
759 :     a folder called "test" in the project "test", and move "code" into it.
760 :     Then commit your changes.
761 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
762 :     </li>
763 :     <li>Another possible solution is to use modules definitions.
764 :     Modules can be defined in the CVSROOT/modules file to include root
765 :     level projects as subfolders of the checked out folder stucture. The
766 :     steps to get this to work for the above example are:
767 :     <ol>
768 : mvalenta 1.54 <li>Add the following two lines to the CVSROOT/modules file<br />
769 :     test &amp;test<br />
770 : jlemieux 1.44 MyProject &amp;test </li>
771 :     <li>In the CVS Repositories View, select the modules with the
772 :     name matching the one defined in the CVSROOT/modules file (Note that in
773 :     Eclipse 2.0.x, you will need to switch to "Show Modules" mode using the
774 :     drop down menu in the title bar in order to see the module).</li>
775 :     <li>Select "MyProject" and choose "Checkout Module" from the
776 :     popup menu.</li>
777 :     </ol>
778 :     See the <a href="http://www.cvshome.org">CVS documentation</a> for
779 :     more information on defining modules.
780 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
781 :     </li>
782 :     <li>If you are using Eclipse 2.1, you can create a new Java
783 :     Project and then perform a "Checkout Into..." on the CVS Module. This
784 :     operation allows you to check out a CVS modules into an existing
785 :     project as a subfolder and configures that target project to be shared
786 :     with CVS. </li>
787 :     </ol>
788 :     <p>Source folders must always begin beneath the project, not above
789 :     it. See the Eclipse Java Development Tools documentation for more
790 :     information on source folders.</p>
791 :     </li>
792 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
793 :     <li><b><a name="java_4">How do I check out a module definition as a
794 :     Java project?</a></b>
795 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
796 :     <p>To check out a module that is defined in the CVSROOT/modules
797 :     file as a Java project, you may have to pre-create the target project
798 :     as a java project in the workspace before performing the "Check Out
799 :     Module". </p>
800 :     </li>
801 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
802 :     <li><b><a name="java_5">Why does the bin directory keep appearing in
803 :     the Synchronize view?</a></b>
804 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
805 :     <p>JDT marks most of its build output as being derived resources so
806 :     that CVS and other repository types can easily ignore these resources
807 :     from version control. However, if you define custom source and build
808 :     output folders, the newly created build output folder will not be
809 :     marked as derived. In many cases the root build output folder is named
810 :     bin. To ignore this folder, select it in the navigator and choose Team
811 :     &gt; Add to .cvsignore, then commit the .cvsignore file to the
812 :     repository so that the bin folder will be ignored at all times for that
813 :     project. </p>
814 :     </li>
815 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
816 :     <li><b><a name="java_5a">I ignored the bin directory but it appears
817 :     to be shared anyway. Why?</a></b>
818 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
819 :     <p>If a resources whose name matches a pattern in the .cvsignore
820 :     also exists in the repository, then this resource is not ignored. For
821 :     the case of the bin folder, chances are that the bin folder was
822 :     committed to the repository at some point. The solution is to purge
823 :     this directory from the repository. </p>
824 :     </li>
825 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
826 :     <li><b><a name="java_6">How do I use CVS keywords in Java templates?</a></b>
827 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
828 : mvalenta 1.58 <p>Substitute the usual keyword (e.g. $Revision: 1.57 $) with the $
829 :     escaped version (e.g. $$Revision: 1.57 $$). </p>
830 : jlemieux 1.44 </li>
831 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
832 :     <li><b><a name="java_7">I'm working with a virtual module defined in
833 :     the CVSROOT/modules file. How do I commit the .project and/or
834 :     .classpath file?</a></b>
835 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
836 :     <p>The easiest way to address this problem is to create a project
837 :     in the repository whose purpose is to hold the .project and .classpath
838 :     files for your module. For example, if your module definition is <i>my-module
839 :     &amp;sub-dir1 &amp;sub-dir2</i> you could change it to <i>my-module
840 :     my-module-project &amp;sub-dir1 $sub-dir2</i> where my-module-project
841 :     is an new folder on the CVS server. Committing the .project and
842 :     .classpath files would create the files in this folder. </p>
843 :     </li>
844 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
845 : james 1.1 </ol>
846 : mvalenta 1.54 <br />
847 : james 1.1 <!-- Compatibility Between CVS Command-line Client and Eclipse -->
848 : jlemieux 1.43 <h1>Compatibility Between CVS Command-line Client and Eclipse</h1>
849 : james 1.1 <ol>
850 : jlemieux 1.44 <li><b><a name="commandLine_1">Does Eclipse use [WinCVS|CVS
851 :     command-line client] to talk to the server?</a></b>
852 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
853 :     <p>No. Eclipse implements a CVS client in Java that talks directly
854 :     to the server using the documented CVS protocol. No external CVS client
855 :     is required.</p>
856 :     </li>
857 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
858 :     <li><b><a name="commandLine_2">The command-line CVS client stores
859 :     information in CVS folders. Does Eclipse do the same thing? If so,
860 :     where are the folders?</a></b>
861 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
862 :     <p>Eclipse stores CVS sync information in CVS/ folders in the same
863 :     way as the command-line CVS client does. However, you rarely see these
864 :     folders within Eclipse. They are marked using a Core facility called
865 :     "team-private" which causes them to be hidden from view. If you open a
866 :     (non-Eclipse) file explorer you will see that these directories and
867 :     their contents appear on the file system.</p>
868 :     </li>
869 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
870 :     <li><b><a name="commandLine_3">Is Eclipse compatible with the
871 :     command-line CVS client?</a></b>
872 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
873 :     <p>Eclipse Team CVS stores its meta information in a format that is
874 :     compatible with the command-line CVS client. Thus you should be able to
875 :     use a CVS command line client against Eclipse workspace files on disk.
876 :     Please note that this support is experimental, and you may run into
877 :     problems. However, we are very interested in making this work, so
878 :     please report any bugs you find.</p>
879 :     <p>Whenever you use external tools to modify workspace files, you
880 :     must perform a Refresh from within Eclipse to make the workspace aware
881 :     of the changes.</p>
882 :     <p>You may encounter unexpected behaviour when using the
883 :     command-line CVS client in conjunction with deleted folders. Eclipse's
884 :     CVS support keeps track of deleted folders and their contents so that,
885 :     on the next synchronization, the Synchronize view can properly report
886 :     on the changes. This information is kept outside of the CVS meta folder
887 :     structure. This is because in CVS you normally inform the repository of
888 :     deletions prior to deleting them locally, which is a different workflow
889 :     than we like to support in the Synchronization view. Thus it is
890 :     recommended that you do not use the command-line CVS client while you
891 :     have pending deletions to commit. In some circumstances it could cause
892 :     the Synchronize view to display incorrect contents, although it should
893 :     not cause any lost work.</p>
894 :     </li>
895 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
896 :     <li><b><a name="commandLine_4">Can I import a project into Eclipse
897 :     that was checked out using the command line?</a></b>
898 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
899 :     <p>Yes you can. However, you may encounter errors from the builder
900 :     related to the copying of the CVS folders. This can have two causes.
901 :     The first is when the project is imported before the CVS plugin is
902 :     loaded. To avoid this problem, make sure you open one of the CVS views
903 :     before importing the project. The second is due to a "race" on import
904 :     between the CVS plugin and other plugins that react to the import. If
905 :     the CVS plugin wins the race, then the CVS folders are hidden but if
906 :     another plugin discovers the CVS folders first, it may cause the
907 :     workbench to "know" about them and perform inappropriate actions on
908 :     them. The best way to solve the problem is to run a <b>Team&gt;Update</b>
909 :     on the project and then shutdown and restart Eclipse (although closing
910 :     and reopening the view in which the CVS folders appear may work as
911 :     well). If this fails, you may need to check the projects out from your
912 :     repository using Eclipse instead of the command line client.</p>
913 :     <p>There is a plugin named <i>org.eclipse.team.cvs.delta</i>
914 :     available on the <a
915 :     href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/dev.html">Development
916 :     Resources</a> page that loads on startup and ensures that CVS folders
917 :     are properly hidden. If you import CVS projects often, you may want to
918 :     use this plugin. </p>
919 :     </li>
920 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
921 :     <li><b><a name="commandLine_5">Why does Eclipse corrupt my *.jar,
922 :     *.zip, etc. files?</a></b>
923 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
924 :     <p>This problem is caused by the keyword substitution mode assigned
925 :     to the file on the server. Any binary files must be marked as -kb. The
926 :     default for CVS is to mark unknown file types as text. CVS provides
927 :     cvswrappers and the cvs admin command to set file types.</p>
928 :     </li>
929 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
930 :     <li><b><a name="commandLine_6">When I use the command-line CVS on my
931 :     project, why do the CVS folders sometimes appear in the Navigator View?</a></b>
932 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
933 :     <p>There are some cases where CVS folders are not hidden from the
934 :     UI as the user would expect. For instance, CVS folders will appear if a
935 :     user imports a CVS project into Eclipse before the CVS plug-in is
936 :     loaded. To avoid this, open the CVS Repositories view (thus loading the
937 :     CVS plug-in) before importing CVS projects into Eclipse. There is also
938 :     a plugin available <a
939 :     href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/dev.html">here</a>
940 :     that will ensure that the CVS folders are properly hidden even if the
941 :     CVS plugin is not loaded.</p>
942 :     </li>
943 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
944 :     <li><b><a name="commandLine_7">When I use the command-line CVS on my
945 :     project, why go I get "resource out of sync" errors?</a></b>
946 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
947 :     <p>This occurs when files that are resources in Eclipse are
948 :     modified outside of Eclipse. One solution is to perform a refresh
949 :     (available from a resource's popup menu) on any resources or projects
950 :     that where modified outside of Eclipse. There is also an "auto-refresh"
951 :     plugin available from Platform Core (click <a
952 :     href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/dev.html">here</a>
953 :     to go to there).</p>
954 :     </li>
955 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
956 : james 1.1 </ol>
957 : mvalenta 1.54 <br />
958 : james 1.1 <!-- Working with Patches -->
959 : jlemieux 1.43 <h1>Working with Patches</h1>
960 : james 1.1 <ol>
961 : jlemieux 1.44 <li><b><a name="patches_1">How do I send someone a patch?</a></b>
962 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
963 :     <p>If you have modified a project that you checked out from CVS,
964 :     you may want to send those changes to someone else. This often occurs
965 :     when you do not have commit rights, but want to send the changes to
966 :     someone who does. To create a patch file:</p>
967 :     <ol>
968 :     <li>Select the changed project in the Navigator or other view.</li>
969 :     <li>Context Menu-&gt;Team-&gt;Create Patch...</li>
970 :     <li>Select a location for the patch.</li>
971 :     <li>Use E-mail or other delivery method to send the patch to
972 :     someone else.</li>
973 :     </ol>
974 :     </li>
975 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
976 :     <li><b><a name="patches_2">How do I apply a patch that someone sent
977 :     me?</a></b>
978 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
979 :     <p>To apply a patch, such as one generated in the previous step, do
980 :     the following:</p>
981 :     <ol>
982 :     <li>Select the changed project in the Navigator or other view.</li>
983 :     <li>Context Menu-&gt;Compare With-&gt;Patch...</li>
984 :     <li>Fill in the location of the patch file</li>
985 :     <li>Click Next. A summary of changed files will appear.</li>
986 :     <li>Click Finish. The changes are now merged into the workspace.</li>
987 :     <li>Context Menu-&gt;Team-&gt;Synchronize. You may now commit the
988 :     changes into the repository.</li>
989 :     </ol>
990 :     </li>
991 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
992 : james 1.1 </ol>
993 : mvalenta 1.54 <br />
994 : mvalenta 1.30 <!-- Linux -->
995 : jlemieux 1.43 <h1>Linux Issues</h1>
996 : mvalenta 1.30 <ol>
997 : jlemieux 1.44 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
998 :     <li><b><a name="linux_0">On linux, using IBM JRE 1.3.0, I get a
999 :     timeout when connecting to a repository. What's wrong?</a></b>
1000 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1001 :     <p>Problems have been reported in this area using IBM JRE 1.3.0 on
1002 :     Linux. The solution is to upgrade your JRE to version 1.3.1.</p>
1003 :     </li>
1004 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1005 :     <li><b><a name="linux_1">On Red Hat 8, Eclipse fails to make a
1006 :     checkout but it works with other clients. Why?</a></b>
1007 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1008 :     <p>The problem may be the encoding in /etc/sysconfig/i18n file. If
1009 :     the language encoding is </p>
1010 : mvalenta 1.54 <pre> LANG="en_US.UTF-8"<br /> </pre>
1011 : jlemieux 1.44 changing it to
1012 : mvalenta 1.54 <pre> LANG="en_US"<br /> </pre>
1013 : jlemieux 1.44 should fix the problem.
1014 :     <p></p>
1015 :     </li>
1016 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1017 : mvalenta 1.30 </ol>
1018 :     <!-- Windows -->
1019 : jlemieux 1.43 <h1>Windows Issues</h1>
1020 : mvalenta 1.30 <ol>
1021 : jlemieux 1.44 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1022 :     <li><b><a name="windows_0">Eclipse crashed Windows 2000 (blue screen)
1023 :     when performing a CVS operation. What happened?</a></b>
1024 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1025 :     <p>Instances of this have been reported that involve the NDIS.sys
1026 :     driver and particular brands of network cards (see bug <a
1027 :     href="http://dev.eclipse.org/bugs/show_bug.cgi?id=21276">21276</a>).</p>
1028 :     </li>
1029 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1030 :     <li><b><a name="windows_2">Eclipse always times out when performing a
1031 :     Synchronize on one or two particular machines?</a></b>
1032 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1033 :     <p>Instances of this have been reported that involve the VIA
1034 :     on-board network cards (see bug <a
1035 :     href="http://dev.eclipse.org/bugs/show_bug.cgi?id=21276">27077</a>).
1036 :     Changing the network card fixed the problem.</p>
1037 :     </li>
1038 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1039 :     <li><b><a name="windows_3">Why do CVS operations slow down when I am
1040 :     connected to my network/dial-up?</a></b>
1041 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1042 :     <p>I have a large number of entries in my hosts file for anti-ad
1043 :     software - and when I'm connected, name resolution (even to localhost)
1044 :     slows to a crawl. When I'm not connected, localhost gets resolved at
1045 :     normal speed. I think this might be a "feature" of 2000/XP - it didn't
1046 :     happen in NT.</p>
1047 :     </li>
1048 :     <li><b><a name="windows_4">Why do all my files show as outgoing
1049 :     changes?</a></b>
1050 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1051 :     <p>The CVS plugin uses timestamps of the files on disk to track the
1052 :     modification state of versioned files. As a result, there are some
1053 :     cases where Windows users may find that as a result of either (1) an
1054 :     automatic daylight savings change or (2) moving files between file
1055 :     systems, that all the files show up as outgoing changes. See <a
1056 :     href="http://dev.eclipse.org/bugs/show_bug.cgi?id=5337">Bug 5337</a>
1057 :     for an explanation of the problem and workarounds. </p>
1058 : mvalenta 1.50 <p>Thers is a utility action that will reset the timestamps so the
1059 :     files are in-sync with CVS. Be warned however that this utility resets the
1060 :     timestamps for any file whose timestamp differs from the sync timestamp by 1 hour.
1061 :     There is a possibility that this could reset a file that is really dirty. Use at your own risk.
1062 : mvalenta 1.52 To use the action, install the plugin found <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/plugins/fixtimestamps.zip">here</a>
1063 :     and them run the CVS Util/Fix Timestamps command available from the context menu of the Resource Navigator.
1064 : mvalenta 1.50 </p>
1065 : mvalenta 1.38 </li>
1066 : jlemieux 1.44 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1067 : mvalenta 1.30 </ol>
1068 : james 1.1 <!-- Miscellaneous -->
1069 : jlemieux 1.43 <h1>Miscellaneous</h1>
1070 : james 1.1 <ol>
1071 : jlemieux 1.44 <li><b><a name="misc_0">Is there any equivalent to CVS_CLIENT_LOG is
1072 :     Eclipse?</a></b>
1073 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1074 :     <p>Yes, there are tracing facilities in Eclipse that will allow you
1075 :     to see what messages are being communicated between the CVS client and
1076 :     server. Here's how:</p>
1077 :     <ol>
1078 : mvalenta 1.56 <li>Create a file named ".options" in the directory you start Eclipse from
1079 :     (in most cases this is the directory that contains the executable but
1080 :     it may differ in some cases: for instance, if you use a shortcut in windows
1081 :     and specify a different starting directory) that contains the following
1082 :     2 lines that enable CVS debugging.
1083 : mvalenta 1.54 <pre> org.eclipse.team.cvs.core/debug=true<br /> org.eclipse.team.cvs.core/cvsprotocol=true<br /> </pre>
1084 : jlemieux 1.44 </li>
1085 :     <li>Start Eclipse with the following parameters tailored to you
1086 :     local setup (The below example is for windows). The important aspects
1087 :     are the use of java.exe instead of javaw.exe and the inclusion of the
1088 :     -debug and -consolelog options. These will cause the debug console to
1089 :     be visible and for debugging output to appear in the console.
1090 : mvalenta 1.54 <pre> C:\eclipse\eclipse.exe<br /> -vm C:\jre\bin\java.exe<br /> -data C:\eclipse\workspace<br /> -debug<br /> -consolelog<br /> </pre>
1091 : jlemieux 1.44 </li>
1092 :     <li>Inside Eclipse, create your repo location and expand it in
1093 :     the repositories view (for example). The CVS command traffic in the
1094 :     debug console should contains an invocation of the update command that
1095 :     looks something like (this is output from dev.eclipse.org):
1096 : mvalenta 1.54 <pre> CMD&gt; cvs -n update -d "."<br /> ...<br /> update<br /> E cvs server: Updating .<br /> E cvs server: New directory `CVSROOT' -- ignored<br /> E cvs server: New directory `jdt-core-home' -- ignored<br /> E cvs server: New directory `jdt-debug-home' -- ignored<br /> ...<br /> </pre>
1097 : jlemieux 1.44 </li>
1098 :     </ol>
1099 :     </li>
1100 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1101 :     <li><b><a name="misc_1">What is the .project file, and should I
1102 :     release it to CVS?</a></b>
1103 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1104 :     <p>The .project file is created and maintained by Eclipse. It
1105 :     stores meta-information about the project, such as which projects it
1106 :     references and what type of project it is. If other members of your
1107 :     team will be using Eclipse to check out this project from CVS, you
1108 :     almost certainly want to release the .project file to CVS. Even if
1109 :     other members of your team are not using Eclipse, you may still want to
1110 :     release the .project file so that the information is persisted for you.</p>
1111 :     </li>
1112 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1113 :     <li><b><a name="misc_2">I don't have update access to the CVS
1114 :     repository. Can I still check out a project with Eclipse?</a></b>
1115 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1116 :     <p>In some circumstances, depending on permissions on the server,
1117 :     you may not be able to browse the repository in the CVS Repositories
1118 :     view. In this case, it may still be possible to check out the project
1119 :     you want.</p>
1120 :     <ol>
1121 :     <li>Create an empty project.</li>
1122 :     <li>Context Menu-&gt;Team-&gt;Share Project...</li>
1123 :     <li>Enter the repository information and click Finish</li>
1124 :     <li>The Synchronize view appears. Update all incoming changes.</li>
1125 :     </ol>
1126 :     <p>The project in your workspace is now shared with the CVS
1127 :     repository, and contains the remote contents.</p>
1128 :     </li>
1129 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1130 :     <li><b><a name="misc_3">What does "Terminated with fatal signal 10"
1131 :     mean?</a></b>
1132 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1133 :     <p>There is a bug in the CVS server related to some compression
1134 :     levels. If you get this error, change the compression level on the CVS
1135 :     preferences page and see if that helps.</p>
1136 :     </li>
1137 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1138 :     <li><b><a name="misc_4">I copied some folders from one CVS project to
1139 :     another and the old CVS information remained. What happened?</a></b>
1140 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1141 :     <p>There is a bug in the CVS client in Eclipse 2.0 that will not
1142 :     purge the CVS folders properly if a folder under CVS control is moved
1143 :     into a folder that is not under CVS control. If this occurs, you will
1144 :     need to delete the CVS folders manually.</p>
1145 :     </li>
1146 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1147 :     <li><b><a name="misc_8">I used Team &gt; Share Project to connect a
1148 :     local project to an existing project and it takes forwever. Why?</a></b>
1149 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1150 :     <p>The particular method you have chosen to populate your workspace
1151 :     (i.e. create a new project and then sync against a large existing one)
1152 :     happens to be one of the most ineffiecient operations in the Eclipse
1153 :     CVS client. The CVS protocol does not support this type of operation
1154 :     directly which results in the ineffiecient, communication intensive
1155 :     operation. The proper way to populate your workspace is to use
1156 :     "Checkout as Project" from the CVS Repositories view. Once the project
1157 :     and its contents exists locally, the synchronize operatons should be
1158 :     much faster.</p>
1159 :     </li>
1160 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1161 :     <li><b><a name="misc_9">Does Eclipse support Watch/Edit?</a></b>
1162 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1163 :     <p>Eclipse 2.1 supports CVS Edit/Unedit. In 2.0, you can use the
1164 :     following workaround:</p>
1165 : mvalenta 1.54 <pre> Run-&gt;External Tools-&gt;Configure...-&gt;New<br /> Name: CVS Watchers<br /> Tool Location: C:\cygwin\bin\cvs.exe<br /> Tool arguments: watchers<br /> Working directory: ${container_loc}<br /> After running, refresh: Nothing<br /> Check Show Execution Log on Console<br /> OK<br /> New<br /> Name: CVS Edit<br /> Tool Location: C:\cygwin\bin\cvs.exe<br /> Tool arguments: edit ${resource_name}<br /> Working directory: ${container_loc}<br /> After running, refresh: Nothing<br /> Check Show Execution Log on Console<br /> OK<br /> </pre>
1166 : jlemieux 1.44 <p> Unedit works the same as Edit, Editors works the same way as
1167 :     Watchers. To use the tools, highlight the file or directory on which to
1168 :     execute the CVS command, then select Run-&gt;External Tools-&gt;<tool
1169 :     name=""> If you don't select the file/directory first, CVS will
1170 :     complain that the CVSROOT variable must be set first. </tool></p>
1171 :     </li>
1172 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1173 :     <li><b><a name="misc_12">Why do I get a "Pre-commit failed" error
1174 :     with no detailed error message?</a></b>
1175 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1176 :     <p> The problem is that the CVS server communicates the error
1177 :     details as M messages instead of E messages and so the error handling
1178 :     in Eclipse doesn't display them. Eclipse has a CVS console which you
1179 :     can open from the Window&gt;Show View&gt;Other menu command. If this
1180 :     view is open and you run the failing commit, it will show you the error
1181 :     details. </p>
1182 :     </li>
1183 :     <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
1184 : james 1.1 </ol>
1185 : jlemieux 1.44 </body>
1186 :     </html>