Skip to main content
Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/HowTo/Howto set up target platform"

(How to manually set up the target platform)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== How to manually set up the target platform ==
+
This page describes which steps you have to follow to manually define a target platform for SMILA.
  
This page describes which steps you have to follow to manually define a target platform for SMILA.
+
== How to manually set up the target platform ==
  
If you do not want to set it up manually, please follow the instructions on [[SMILA/Development Guidelines/Howto set up dev environment#Defining_the_target_platform_the_easy_way|Howto set up dev environment]]
+
If you do not want to set up the target platform manually, please follow the instructions on [[SMILA/Development Guidelines/Howto set up dev environment#Defining_the_target_platform_the_easy_way|Howto set up dev environment]].
  
::*Download the eclipse SDK (if you have not already done so) and the <tt>Delta Pack</tt> from the eclipse download page listed in the [[SMILA/Development_Guidelines/Howto set up dev environment#Preconditions|Setup Development Environment Preconditions]] section.
+
#Download the Eclipse SDK (if you have not already done so) from the Eclipse download page listed in the [[SMILA/Development Guidelines/Howto set up dev environment#Preconditions|Setup Development Environment Preconditions]] section.  
::**You should use the same eclipse version as target SDK and as the development IDE.
+
#*You should use the same Eclipse version as target SDK and as the development IDE.  
::**Please note that it really should be the plain Eclipse SDK to prevent naughty problems from occurring when trying to start SMILA, because of conflicting bundles etc.
+
#*Please note that it really should be the plain Eclipse SDK to prevent naughty problems when trying to start SMILA, because of conflicting bundles etc.  
::*Extract the SDK in a directory you should name something like <tt>eclipse-target</tt> so you don't confuse it with your IDE's installation folder.
+
#Extract the Eclipse SDK to a directory you should name something like <tt>eclipse-target</tt> so you don't confuse it with your IDE's installation folder.  
::*Unzip the Delta Pack' contents into the contents of the <tt>eclipse-target</tt> folder, always answer <tt>yes</tt> if the system asks you to confirm overwriting of files.
+
  
This directory will be referenced as "eclipse-target" in the following lines.
+
This directory will be referenced as "eclipse-target" in the following lines.  
  
In your IDE do the following:
+
In your IDE do the following:  
::*Click Window --&gt; Preferences --&gt; Plug-in Development --&gt; Target Platform
+
::*Rename the new target, e.g. to "Running target + SMILA.Extension"
+
::*Click Add... --&gt; Select "Nothing: Start with an empty target definition" for target initialization and click "Next"
+
::*Click Add... --&gt; Select "Installation" and click "Next"
+
::*Click on "Browse..." and browse to your "eclipse-target" directory (SDK + delta pack) --&gt; Click OK
+
::*--&gt; Click Finish in the "Add Installation" window
+
::*Click "Add..." --&gt; Select "Directory" --&gt; Click Next --&gt; Select <tt>SMILA.extension/eclipse/plugins</tt> folder under local trunk as the location --&gt; Click Finish
+
::*The target definition dialog should now contain the following entries:
+
::**Name: <tt>Running target + SMILA.Extension</tt>
+
::**In page "Locations" the following entries:
+
::***Installation icon with path to your <tt>eclipse-target</tt> directory, showing the number of available plug-ins
+
::***Directory icon with path to the <tt>SMILA.extension/eclipse/plugins</tt> directory in your checked out SMILA code, showing the number of available plug-ins.
+
::*Change to page "Environment" and select "JavaSE-1.6" as Execution Environment
+
::*Click "Finish" and activate the new target platform by checking the box left to its name.
+
::*Click "OK"
+
  
Doing so will trigger compilation of your workspace.
+
#Click ''Window --&gt; Preferences --&gt; Plug-in Development --&gt; Target Platform''.
 +
#Click ''Add... --&gt; ''Select "Nothing: Start with an empty target definition" for target initialization and click ''Next''.
 +
#Rename the new target, e.g. to "SMILA target".
 +
#Click Add... --&gt; Select "Installation" and click ''Next''.
 +
#Click ''Browse...'' and navigate to your "eclipse-target" directory --&gt; click ''OK''.
 +
#Click ''Finish'' in the ''Add Installation'' window.
 +
#Click ''Add...'' --&gt; Select "Directory" --&gt; Click ''Next'' --&gt; Enter <tt>${workspace_loc:/SMILA.extension/eclipse/plugins}</tt> --&gt; click ''Finish''.
 +
#The target definition dialog should now contain the following entries:
 +
#*Name: <tt>SMILA target</tt>
 +
#*In page ''Locations'' the following entries:
 +
#**Installation icon with path to your <tt>eclipse-target</tt> directory, showing the number of available plug-ins
 +
#**Directory icon with path to the <tt>SMILA.extension/eclipse/plugins</tt> directory in your checked out SMILA code, showing the number of available plug-ins.
 +
#*In page ''Content'' you can disable plug-ins which have different versions in the Eclipse target installation and the workspace as they can cause conflicts when running JUnit tests in the IDE. However, currently (pre-1.4 snapshots) that should not be necessary.
 +
#Click ''Finish'' and activate the new target platform by checking the check box on the left-hand side of its name.
 +
#Click ''OK''.
 +
 
 +
Doing so will trigger the compilation of your workspace.

Latest revision as of 15:37, 4 May 2015

This page describes which steps you have to follow to manually define a target platform for SMILA.

How to manually set up the target platform

If you do not want to set up the target platform manually, please follow the instructions on Howto set up dev environment.

  1. Download the Eclipse SDK (if you have not already done so) from the Eclipse download page listed in the Setup Development Environment Preconditions section.
    • You should use the same Eclipse version as target SDK and as the development IDE.
    • Please note that it really should be the plain Eclipse SDK to prevent naughty problems when trying to start SMILA, because of conflicting bundles etc.
  2. Extract the Eclipse SDK to a directory you should name something like eclipse-target so you don't confuse it with your IDE's installation folder.

This directory will be referenced as "eclipse-target" in the following lines.

In your IDE do the following:

  1. Click Window --> Preferences --> Plug-in Development --> Target Platform.
  2. Click Add... --> Select "Nothing: Start with an empty target definition" for target initialization and click Next.
  3. Rename the new target, e.g. to "SMILA target".
  4. Click Add... --> Select "Installation" and click Next.
  5. Click Browse... and navigate to your "eclipse-target" directory --> click OK.
  6. Click Finish in the Add Installation window.
  7. Click Add... --> Select "Directory" --> Click Next --> Enter ${workspace_loc:/SMILA.extension/eclipse/plugins} --> click Finish.
  8. The target definition dialog should now contain the following entries:
    • Name: SMILA target
    • In page Locations the following entries:
      • Installation icon with path to your eclipse-target directory, showing the number of available plug-ins
      • Directory icon with path to the SMILA.extension/eclipse/plugins directory in your checked out SMILA code, showing the number of available plug-ins.
    • In page Content you can disable plug-ins which have different versions in the Eclipse target installation and the workspace as they can cause conflicts when running JUnit tests in the IDE. However, currently (pre-1.4 snapshots) that should not be necessary.
  9. Click Finish and activate the new target platform by checking the check box on the left-hand side of its name.
  10. Click OK.

Doing so will trigger the compilation of your workspace.

Back to the top