Child pages
  • SVN - Sharing a Project
Skip to end of metadata
Go to start of metadata

If you have connected to a repository, you are now able to share your solutions (which are Eclipse projects) with other developers by putting them in the repository.

You can also connect to the repository as part of the sharing process, but it is normally good practice to make sure that you can connect and that your repository is available before sharing it.

Share a Project from Your Workspace

  1. In the Servoy Design Perspective, right-click your active solution node. From the contextual popup menu, select Team > Share Project...
  2. Select SVN as the repository type and click Next
  3. Select an existing repository location (see Connecting to a SVN Repository) or create a new location.
  4. Select the option to use a specified folder name and click Select. From the Repository Browser, select the Trunk folder. The trunk is normally where you want to store your solution.
  5. Optionally enter a comment for the share. This action will commit the new project folder into the repository, but your other project resources are still not committed. This action also will count as a revision to the repository.
  6. If this is a fresh install of Servoy, then there is probably a repository database connection which is configured to serve as the default mode for team development. You will see a dialog, warning you that using different repository types at the same time can result in unwanted behavior. It is recommended to click the option to Change setting / restart and skip to step 8.
  7. If you chose not to change your settings as in step 6, and now want to change the setting, you can navigate in your Web Browser, to http://localhost:8080/servoy-admin and manually reset the property startRepositoryAsTeamProvider to false. The next time Servoy Developer restarts, then the setting will take effect.
  8. Next you will be warned by another dialog that you will be navigating away from the Servoy Design perspective and into the Team Synchronizing perspective. This perspective is in fact not part of Servoy, but provided by the SVN plugin that you've installed. It is a good idea to go ahead and click Remember my decision before clicking Yes because you will be switching to this prospective quite a bit in a team development environment.
  9. In the Synchronize tab, you will see incoming and outgoing changes, as well as conflicts. Since we just shared the project, all of the resources in the project should show as outgoing changes. Select the button to Commit All Outgoing Changes...
  10. Once again, because you are committing a new revision, you'll have a chance to review the revision and you'll be prompted to add an optional comment.

    Best practices dictate that you should enter a short comment for every revision to provide information on what was worked on. Many SVN tools use the revision comments to provide project visibility, such as email digests with revision summaries. Some tools even will integrate special notation in the comments to project management actions (i.e. ticket resolution).


  11. Once complete, you may return to the Servoy Design perspective. And looking in the Solution Explorer tree, you'll find SVN metadata about each resource, including the current revision number, the date, time and user id for the last revision.
  12. Repeat this process with the Resources Project. To do this right-click the Resources node in the solution explorer and follow the same steps as you did for the solution project.

    Resource Project

    The resource project is a separate project in Servoy Developer and must be uploaded to the repository separately. This project contains style, database, and i18n information and should be shared over all the developers.

    What else can go into the truck folder?

    Best practice would be to put any projects in the workspace into the trunk. This would be the main application project, any modules, and the resource project. If you are building multiple applications, you should consider using multiple workspaces, especially if the resources (database, styles, etc.) are different.

  • No labels