Source code control basics
The following sections detail the basic steps in using source code control using Infor e-Commerce Development Studio.
Before you start
You need to have at least basic knowledge in Subversion. You also need to install an SVN client and you need to know how to use it. You must have set up a repository folder for the project.
Basic source code control usage
When working on a project, you use source code control for the following scenarios.
Using a latest copy of the e-Commerce project, import the project to Eclipse, then commit the code to the SVN repository at the trunk folder.
You tag a project, and the destination should be a tag folder at the SVN repository.
When you need to modify code without affecting the trunk folder, you can create a branch. You can then switch to the branch and start your modifications. All modifications should be committed to this branch folder.
When you are done with all the modifications, you can tag the project.
Tagging a project
In the Project Explorer, right click on the root folder of your project, then select Infor e-Commerce Development Studio> Subversion > Tag Project. Specify values in the necessary fields then click OK.
To verify if the previous tags are visible (if there are previous tags), right click on your project root folder, then select Infor e-Commerce Development Studio> Subversion> View Tags.
Creating a diff file
To create a diff file, go to View Project Tags, right-click the selected tag label then select 'Create a diff file'. In Compare Revisions dialog box, select on which to compare the tag then specify the location where the diff file should be saved. The output diff file is used as a patch that can be applied in a project.
Exporting modified files to a local directory
To export the modified files to local directory, go to View Project Tags, right-click the selected tag label then select 'Export modified files to local directory'. Select a location then click OK. The exported files can then be used for comparing.
Comparing and exporting modifications
To compare and export the modifications, go to Project Explorer, right-click on the root folder of your project, then select Infor e-Commerce Development Studio > Subversion > Compare and Export Modifications. Locate the exported files.