Placing Project Metadata Into Subversion
See Also
The IDE's Subversion support enables developer groups to synchronize
project-specific metadata as well as the source files that make up
their applications. Using Subversion, you can place project metadata, such as
project properties files and Ant build scripts, under version control.
- When working with projects in Subversion, the physical location of a
project relative to the location of projects and libraries on its
classpath must be exactly the same on each system in order to avoid
broken references. If any references are broken, the IDE displays a
warning when you open the project. To avoid broken references, it is
important to ensure that the location of projects in the remote
repository corresponds to their location once they are checked out to a
local working
directory.
IDE Project Metadata Files
Depending on project type, the IDE generates different metadata
files and stores them in the nbproject directory.
The types of project metadata files in the IDE include:
- nbproject directory
- project.xml
- build-impl.xml (standard projects only)
- genfiles.properties (standard projects only)
- project.properties (standard projects only)
- private directory (standard projects only)
- build.xml
- You should not place your private directory into the
repository as it contains information that is specific to your system's
IDE installation. In addition, you should not put your dist
or build directories into the repository. The IDE
automatically ignores the private, build,
and dist directories when running Subversion
commands.
To place an IDE project under version control:
- In the Projects window, right-click your project's node and
choose Clean Project to delete the build and dist
directories.
- In the Projects window, add the project to the
repository by right-clicking the project's topmost node and choosing
Subversion > Import into Subversion.
- In the Subversion Repository page of the Import wizard, specify the location of the Subversion
repository as defined by the Subversion URL. Click Next.
- In the Repository Folder page, specify the repository folder in which you want to place the project.
- Enter a message describing your changes to the repository in the
Import Message field.
- Optionally, click Next to view a list of the files that will be imported.
- Click Finish.
The IDE uploads the project files to the repository and the
Ouput window opens to display the progress.
- The IDE automatically ignores the private, build,
and dist directories .
- See Also
- Working with Subversion
- About Projects
Legal Notices