1 / 11

Control System Studio Training - Development Setup

This guide provides step-by-step instructions on how to set up Control System Studio (CSS) for training and development purposes. It includes information on importing CSS sources into Eclipse, configuring Java preferences, running CSS from source code, and more. Suggested for users who want to use Eclipse 4.x as their IDE for CSS development.

jshilling
Download Presentation

Control System Studio Training - Development Setup

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Control System Studio Training-Development Setup Kay Kasemir ORNL/SNS kasemirk@ornl.gov April 2013

  2. Getting CSS to run from source code • Get Java, Eclipse, CSS Sources • Start Eclipse • “Import”Sources into Workspace • Open CSS *.product file, Launch

  3. Java • Check: Is java available? java -version Need Sun/Oracle Java 1.7;Not GCJ, OpenJDK

  4. Eclipse Versions • Eclipse just went from 3.x to 4.x • Can use Eclipse 4.x as IDE • CSS Production code: Currently Eclipse 3.7.2 • Can use 4.x IDE with 3.7.2 “Target Platform” • Ongoing port to 4.x

  5. Start Eclipse • Run eclipse/eclipse “Workspace”:use CSS/Workspace in your home directory • Suggest to check Preferences: • Java, Installed JREs: Is it the one you want? • Eclipse may automatically find a JRE, but you want the JDK for source-level debugging • Usage Data Collector: Disable capture? • Add (older) version of Eclipse as “Target Platform”?

  6. Source Code vs. Eclipse Workspace • Source Code: • Where the sources are • Workspace:Directory with“.metadata”subdir. • Tracks currentlyopen window, … To avoid confusion: Keep Separate! • Example: Use CSS/Sources, CSS/Workspace

  7. Eclipse Workspace “Import” Sourcesinto Workspace: • File/Import…,General,Existing Projectsinto Workspace • Select “root” directory,import all projects found • Do not“Copy projects into Workspace” Note: Need to “Import” even if sources are already located in workspace directory

  8. Run Product Open org.csstudio.basic.epics.product/*.product Press • Synchronize • Launch an Eclipse application • Later, re-run via the Run button in toolbar

  9. Fundamentally, that’s it • Product: • List of plugins • *.product file to run the product • IDE can also ‘export’ product binary • Feature: • Logical group of plugins • Allows online ‘install’, automated ‘update’

  10. “Headless Build” • Command-line process to turn *.product or *.feature into binary • Can be scripted, launched from Hudson, … • Sadly, somewhat in parallel to IDE: • Specific directory layout • Need to copy sources into plugins/ and features/ folders • Additional build.properties file • Target platform, Java object code level, ..

  11. “Update Site” • Fundamentally, just a build option to create “P2 Metadata Repository” for products and features • Published on web site • Products can then • Install features from repository • Automatically update to latest version • Requires careful setting of dependencies and version numbers

More Related