SMILA/Documentation/HowTo/Howto set up dev environment
This HowTo describes the necessary steps for setting up a SMILA development environment.
Here is the list of things that you will definitely need for developing SMILA components:
- JDK 1.6
- Recent Eclipse SDK - This HowTo was tested with Eclipse Classic SDK 3.7.1 (Indigo SR1)
Getting the source code
There is more than one way of getting the code into your Eclipse workspace. In the next two sections, two recommended ways are shown. After having imported the source code into your workspace, it will show up a lot of errors. Don't worry, they'll disappear when you run through all steps of this HowTo.
Both methods descibed below will lead you to the same result: They will provide you with a workspace containing all core SMILA projects (plus SMILA.releng when you choose the Project Set File).
Getting the source code manually
Getting the source code manually without the Project Set File is the recommended practice, especially when you wish to update frequently.
- Use your favorite SVN client to check out SMILA's source code from the repository located at:
Hint: We recommend to check out the trunk/core as opposed to importing the projects through IDE SVN integrations. By doing so, you can easily get new projects just by updating your working copy and reimporting the sources.
- After having checked out the source code, import it into your workspace:
- Click File --> Import --> General --> Existing Projects into Workspace --> Next
- Select the root folder of the local trunk --> (all projects should be selected automatically) --> Finish
Using the Project Set File to get the source code
If you do not want to check out the source files manually, you can use the provided Project Set File (.psf) to check out and import all projects automatically.
- Install Subversive Team Provider and Subversive SVN JDT Ignore Extensions from the Eclipse software repository.
- Restart Eclipse.
- Select Windows > Preferences > SVN. This should open the Subversive Connector Discovery window.
- Select the Subversive SVN Connector that you wish to use. We suggest to take the latest SVN Kit that is offered. At the time of writing it was SVN Kit 1.3.5.
- Restart Eclipse.
- Download the file SMILA-core.psf.
- Select File --> Import --> Team --> Team Project Set --> Next.
- Click Browse and navigate to the .psf file.
- Click Finish.
Now your IDE starts to download and import the SMILA projects. This will take quite a while.
Hint: When you want to reimport the .psf file (e.g. because there are new projects available in the SMILA core repository), you have to update the .psf file in the SMILA.releng project and import it (right click on it and click on "Import Project Set...", be sure to click "No To All" to the question whether to overwrite existing projects in the workspace, otherwise it will check out everything again instead of ignoring the projects, that are already checked out.
Enabling the BPEL Designer
If you want to work with the SMILA extensions for Eclipse BPEL designer, you need to check out the bundles from trunk/tooling. Currently, the required bundles are:
- org.eclipse.smila.processing.designer.ui Debug Configurations and expand OSGI Framework
- Select SMILA launch file
- Check if no junit 4 bundles are activated:
- enter junit in the filter of the Bundles
- uncheck all junit 4 bundles, if they are checked (e.g. org.junit4, org.junit(4.8.2....) etc.) since they conflict with the junit 3 bundles used in SMILA.
- press Debug
- If everything is started correctly, you will get an output in the Console view like below:
osgi> Persistence bundle starting... ProviderTracker: New service detected... ProviderTracker: Added service org.eclipse.persistence.jpa.osgi.PersistenceProviderOSGi Persistence bundle started. [INFO ] Context /zookeeper: Registered handler(1) ZooKeeperAdminHandler, pattern /(.*)$ [INFO ] Added worker webFetcher to WorkerManager. ... [INFO ] HTTP server has SMILA handler RequestDispatcher for context /smila. [INFO ] HTTP server started successfully on port 8080.
Congratulations! You've just successfully checked out and configured your SMILA development environment and can now start developing your own bundles.