blob: a8e5644ae7f115ab557e0f9c06e3ea8c6b06f11d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Setting CVS repository defaults</title>
</head>
<body id="twcvsr"><a name="twcvsr"><!-- --></a>
<h1 class="topictitle1">Setting CVS repository defaults</h1>
<div><div class="skipspace"> <p>When you use a CVS repository during team development, you might
want to use the following setup to ensure that the CVS versioning
support ignores the project's build output folder:</p>
</div>
<ol><li class="skipspace"><span>Create a file called .cvsignore in your project's <span class="filepath">WebContent/WEB-INF</span> folder.</span></li>
<li class="skipspace"><span>In this file, add a line with the name of the build output folder
(for example, <samp class="codeph">classes</samp>).</span> <p>Currently, you have
the option of creating this file automatically (as a feature) when using the
New Dynamic Web Project wizard.</p>
<p>When you synchronize with a CVS team
stream, the output folder will be ignored.</p>
</li>
<li class="skipspace"><span>In addition, you should turn off the <span><span class="uicontrol">Prune empty
directories</span></span> option. Select <span><span class="menucascade"><span class="uicontrol">Windows</span> &gt; <span class="uicontrol">Preferences</span></span></span>, switch to the <span><span class="menucascade"><span class="uicontrol">Team</span> &gt; <span class="uicontrol">CVS</span></span></span> properties
page, and ensure that the <span><span class="uicontrol">Prune empty directories</span></span> check
box is not checked.</span> <p>If this option is enabled and your Web project's
source directory is empty, it will be deleted when the project is added to
your workspace from a CVS repository, causing a Java™ build error.</p>
</li>
</ol>
</div>
</body>
</html>