blob: 8718c26ea3a712c20c3ceb5338fbaf26ce5ade9d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2006 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="section"> <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="stepexpand"><span>Create a file called .cvsignore in your project's <span class="filepath">WebContent/WEB-INF</span> folder.</span></li>
<li class="stepexpand"><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="stepexpand"><span>In addition, you should turn off the <span><b>Prune empty
directories</b></span> option. Select <span><span class="menucascade"><b>Windows</b> &gt; <b>Preferences</b></span></span>, switch to the <span><span class="menucascade"><b>Team</b> &gt; <b>CVS</b></span></span> properties
page, and ensure that the <span><b>Prune empty directories</b></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&#8482; build error.</p>
</li>
</ol>
</div>
</body></html>