1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
"http://www.w3.org/TR/html4/loose.dtd">
4
* Copyright © 2007 Sun Microsystems, Inc. All rights reserved.
5
* Use is subject to license terms.
9
<title>Placing Projects Under Version Control (Subversion)</title>
10
<link href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css"
11
rel="StyleSheet" type="text/css">
15
<h2>Placing Projects Under Version Control (Subversion)</h2>
17
<p><small><a href="#seealso">See Also</a></small></p>
19
<p>The IDE enables you to place any project you are working on under version
20
control. You effectively <em>import</em> your sources into the remote
21
repository. To do so, you need to be able to access a Subversion repository
22
which you have write privileges for.</p>
24
<h4>To place an IDE project under version control:</h4>
27
<li>In the Projects window, select an unversioned project and choose either:
30
<li>Versioning > Import into Subversion Repository from the node's
31
right-click menu.</li>
32
<li>Versioning > Subversion > Import into Repository from the
34
</ul>The Subversion Import wizard opens.</li>
36
<li>In the Subversion Repository page of the Import wizard, specify the
37
<a href="#protocolTypes">protocol</a> and location of the Subversion
38
repository as defined by the Subversion URL. Depending on your selection,
39
you may require to specify further settings, such as repository username
40
and password, or, in the case of <tt>svn+ssh://</tt>, you must specify
41
the tunnel command to establish the external tunnel. Click Next.</li>
42
<li>In the Repository Folder panel, specify the repository folder in which you
43
want to place the project in the repository. A folder containing the name
44
of your project is suggested for you in the Repository Folder text field
46
<li>In the text area beneath Specify the Message, enter a description of the
47
project you are importing into the repository.</li>
48
<li>Click Finish to initiate the import, or optionally, click Next to continue
49
to a third panel that enables you to preview all files that are prepared
50
for import. From this panel, you can choose to exclude individual files
51
from import, or identify the MIME types of files before importing. Upon
52
clicking Finish, the IDE uploads the project files to the repository and
53
the Ouput window opens to display the progress.</li>
56
<p><a name="protocolTypes"></a>The IDE supports the following Subversion protocol types:</p>
58
<table border="1" cellpadding="5">
59
<tr align="center"><th>Protocol</th><th>Access Method</th><th>Example</th></tr>
60
<tr><td align="center"><strong>file</strong></td><td>Direct repository access (on local
61
disk)</td><td><tt>file:///repository_path[@REV]</tt></td></tr>
62
<tr><td align="center"><strong>http</strong></td><td>Access via WebDAV protocol to a
63
Subversion-aware server</td><td><tt>http://hostname/repository_path[@REV]</tt></td></tr>
64
<tr><td align="center"><strong>https</strong></td><td>Access via HTTP protocol with SSL
65
encryption</td><td><tt>https://hostname/repository_path[@REV]</tt></td></tr>
66
<tr><td align="center"><strong>svn</strong></td><td>Access via custom protocol to an
67
<tt>svnserve</tt> server</td><td><tt>svn://hostname/repository_path[@REV]</tt></td></tr>
68
<tr><td align="center"><strong>svn+ssh</strong></td><td>Access via SVN protocol through
69
an external SSH tunnel</td><td><tt>svn+ssh://hostname/repository_path[@REV]</tt></td></tr>
73
<dt><a name="seealso">See Also</a></dt>
74
<dd><a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/proj_about.html">About Projects</a></dd>
75
<dd><a href="svn_overview.html">Working with Subversion</a></dd>
77
<hr><small><a href="../credits.html">Legal Notices</a></small>