Placing Project Metadata Under Version Control
See Also
The IDE's CVS support enables developer groups to synchronize
project-specific metadata as well as the source files that make up
their applications. Using CVS, you can place project metadata, such as
project properties files and Ant build scripts, under version control.
- When working with projects in CVS, 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 CVS
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
CVS > Import into Repository.
- In the Import Project wizard, specify the location of the CVS
repository as defined by the CVS root. Click Next.
- Specify the local project folder to import into the CVS
repository.
- Enter a message describing your changes to the repository in the
Import Message field.
- Select the repository folder into which you want to import the
project folder.
- If you want to work on the versioned copies of the files
once they have been added to the repository, select Checkout After Import.
- 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
- Using CVS with the IDE
- Working with CVS
- About Projects
Legal Notices