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

Parent Directory Parent Directory | Revision Log Revision Log


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