Project setup with CVS
Contents
Starting from scratch
- Create a project repository in cvs (for example: mkdir <project repository name>; cd <project repository name>; cvs import <project repository name> mycompany initial; cd ..)
- Add project from Changelogic web interface (user menu->new project)
- cvs checkout <project repository name>
- cd <project repository name>
- Download changelogic-build.xml (you can get it from Changelogic web interface under user menu->supporting files)
- Dowload and modify according to your needs: build.xml, changelogic-project.properties, changelogic-personal.properties
- Test: ant -f changelogic-build.xml init
- cvs add build.xml changelogic-project.properties changelogic-build.xml Be careful not to add changelogic-personal.properties, it should be local in every developers' working directory
- cvs commit
- cvs tag -b latest
- cvs tag <version tag>
- Test: create a change and run ant edit
Version tag is in format ver-x_x_x_x (for example if the version is 1.2.3.4 then the tag is ver-1_2_3_4). You select the first version number when adding a project from web interface. “latest” is Changelogic's special branch.
You can add your project specific build targets to build.xml.
Adding existing project (some code already written)
Steps are described in previous instruction, you should start from step 2.
In case of existing project you probably already have a build script too. Here are some guidelines, how to integrate Changelogic's targets into your build script.
Adding project with modules
- Add project from Changelogic web interface (user menu->new project)
- Import the project's code into cvs
- cvs rtag -b latest <project modules>
- cvs rtag -r latest ver-1_1_1_0 <project modules>
- Add modules to project (from project's detail form)
- Import module's code: cvs import -m \"\" module module_name initial
- Check “Is imported” box at the module's details page
- From your working directory run ant -f changelogic-build.xml setup_project