Skip to content

Latest commit

 

History

History
106 lines (79 loc) · 6.51 KB

Developer Getting Started Guide.md

File metadata and controls

106 lines (79 loc) · 6.51 KB

Developer Getting Started Guide

This document provides the information required to create a fully functional BridgePoint development environment.

Preparation

  1. This is a link to git documentation that describes working with forks. BridgePoint development requires developers to have a working knowledge of git and git forks. Throughout this document we will refer to the repositories using the formula: https://github.com/"username"/"repository".git where "username" is your personal Github user name. (For example: https://github.com/keithbrown/bridgepoint.git)

  2. This document may be used in Linux, MAC, or Windows, but its examples use Linux. In Windows, cygwin is used to ease setup. Throughout this document we use "" in the example path names. If you are building on Windows replace "" with "c:" (or "/cygdrive/c" when using the cygwin shell).

  3. This document uses ~/git as the root folder for git repostiories, and it uses ~/workspace as the development workspace. You may substitute any folder you desire, but you must be consistent. WARNING!: If you are updating your development environment to 5.8.5 or greater start with a clean workspace.

  4. Optionally, a pre-configured development virtual machine (VirtualBox) is available for download. See intructions to download and setup here

  5. If you have any problems or questions, check the FAQ or post to the [xtUML.org Forums] (https://xtuml.org/community/forum/xtuml-forum/) for help.

Setup Instructions

GUI Build Instructions

The instructions in this section describe how to use the eclipse BridgePoint UI to build the BridgePoint plug-ins.

  • Clone the repositories:
git clone https://github.com/"username"/bridgepoint.git ~/git/bridgepoint
git clone https://github.com/"username"/bptest.git ~/git/bptest
git clone https://github.com/"username"/mc.git ~/git/mc
git clone https://github.com/"username"/pt_antlr.git ~/git/pt_antlr
git clone https://github.com/"username"/models.git ~/git/models

Note: To build BridgePoint, you need only the bridgepoint, mc and pt_antlr repositories. bptest and models are used for unit testing and application development.

  • Prepare your development workspace with the required preferences.
mkdir -p ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings
cp -f ~/git/bridgepoint/utilities/build/preferences/*  ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings
  • Set up pt_antlr for building BridgePoint
cp -f ~/git/pt_antlr/pt_antlr/antlr.jar  ~/git/bridgepoint/src/org.xtuml.bp.als/lib/antlr.jar
  • Launch BridgePoint (<BridgePoint installation folder>/bridgepoint for MAC it is Eclipse.app)

    • During startup, enter the name of a new eclipse workspace that will become your development workspace.
      (Example: ~/workspace)
  • Switch to the git repository perspective and add the repositories that were cloned above.

  • Import existing projects from the BridgePoint repository into your workspace.

    • WARNING!: Ensure "Search for nested projects" is Unchecked.
    • WARNING!: Import all projects from this bridgepoint repository, but do NOT import any projects from the other repositories. Only projects from bridgepoint are needed in the workspace.
  • Switch to the Java perspective

  • Select Project > Build Automatically

    • This will cause each project in the workspace to build. The builder will build dependent projects first. Since all projects are being processed, the build will take a while and should finish successfully.

Congratulations! Your environment is now built and ready for BridgePoint development.

Additional Notes

  • Information about running the BridgePoint build via the command line may be found in the FAQ.