Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Swordfish Documentation: Creating Headless Build"

Line 1: Line 1:
= Creating and Running a Headless Build =
+
= Creating and Running a Headless Build =
This section contains instructions on creating a headless build.<br>
+
  
[[Image:Swordfish_build_process1.png‎]]
+
This section contains instructions on creating a headless build.<br>
  
== Prerequisites ==
+
[[Image:Swordfish build process1.png]]
The following prerequisites must be met before you start creating the build.
+
You must have the latest version of Eclipse, Apache Ant & Subversion installed.
+
Detailed instructions are provided here.
+
  
=== Eclipse ===
+
== Prerequisites  ==
Install a fresh Eclipse SDK you want to use for building and keep it free from modifications.
+
  
=== Eclipse Test Framework ===
+
The following prerequisites must be met before you start creating the build. You must have the latest version of Eclipse, Apache Ant &amp; Subversion installed. Detailed instructions are provided here.  
Download Eclipse Testing Framework package. You will need it in order to run integration tests which are part of the headless build.<br>
+
Eclipse Testing Framework for Eclipse for
+
[http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5-200906111540/eclipse-test-framework-3.5.zip Galileo] or
+
[http://download.eclipse.org/eclipse/downloads/drops/S-3.6M3-200910301201/download.php?dropFile=eclipse-test-framework-3.6M3.zip Helios] ''(Note that you cannot use a later Helios milestone than M3 for JUnit compatibility reasons!)''
+
  
=== Ant ===
+
=== Eclipse  ===
Install the latest Ant build (currently, the version available is 1.7) and include it into your path.<br>
+
You can find the latest version here: [http://ant.apache.org/ Apache Ant]
+
  
=== Subversion PDE build plugin ===
+
Install a fresh Eclipse SDK you want to use for building and keep it free from modifications.  
You can download the zipped version here: [http://sourceforge.net/projects/svn-pde-build/ SVN PDE Build]
+
  
=== SVN ===
+
=== Eclipse Test Framework  ===
Install the latest version of the SVN client (currently, the version available is 1.6.2).<br>
+
You can find the latest version here: [http://subversion.apache.org/ Subversion]
+
  
=== Check Proxy Settings ===
+
Download Eclipse Testing Framework package. You will need it in order to run integration tests which are part of the headless build.<br> Eclipse Testing Framework for Eclipse for [http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5-200906111540/eclipse-test-framework-3.5.zip Galileo] or [http://download.eclipse.org/eclipse/downloads/drops/S-3.6M3-200910301201/download.php?dropFile=eclipse-test-framework-3.6M3.zip Helios] ''(Note that you cannot use a later Helios milestone than M3 for JUnit compatibility reasons!)''
If you want to run the build scripts within a firewall, ensure that you enable the proxy settings.  
+
E.g. add the <tt>-autoproxy</tt> parameter when you run the <tt>ant</tt> scripts.<br>
+
<b>NOTE</b>: The <tt>ant</tt> scripts use your default system proxy settings.
+
  
You also need to ensure that your SVN client is enabled to access the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish Swordfish Repository] via your proxy.
+
=== Ant  ===
  
== Runtime build ==
+
Install the latest Ant build (currently, the version available is 1.7) and include it into your path.<br> You can find the latest version here: [http://ant.apache.org/ Apache Ant]
The build process is divided into two main stages. The first stage involves the following steps:
+
  
<ol>
+
=== Subversion PDE build plugin ===
  <li>Generate the third-party bundles</li>
+
<li>Create an update site and store these bundles there.</li>
+
<li>Upload the update site into the Swordfish download area.</li>
+
</ol>
+
<b>NOTE</b>: The last step only needs to be done when changes occur.
+
E.g. when you create a new bundle, remove an obsolete bundle or create a new bundle version.
+
<br>
+
  
The second stage involves the following steps:
+
You can download the zipped version here: [http://sourceforge.net/projects/svn-pde-build/ SVN PDE Build]
  
<ol>
+
=== SVN  ===
<li>Create the Swordfish site.</li>
+
<li>Create the corresponding Swordfish update site.</li>
+
</ol>
+
  
You also need to ensure that your SVN client is enabled to access the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish Swordfish Repository] via your proxy.
+
Install the latest version of the SVN client (currently, the version available is 1.6.2).<br> You can find the latest version here: [http://subversion.apache.org/ Subversion]  
  
=== Running a Third-Party Build ===
+
=== Check Proxy Settings  ===
This is the first step of the Swordfish build process, that is, creating the third-party builds.
+
  
To successfully create and run the third-party build:
+
If you want to run the build scripts within a firewall, ensure that you enable the proxy settings. E.g. add the <tt>-autoproxy</tt> parameter when you run the <tt>ant</tt> scripts.<br> '''NOTE''': The <tt>ant</tt> scripts use your default system proxy settings.  
<ol>
+
<li>Check out the following projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN] + version-to check-out, e.g. <tt>trunk</tt>.
+
  <ul>
+
    <li><tt>rt/org.eclipse.swordfish.build</tt></li>
+
    <li><tt>rt/org.eclipse.swordfish.bundles</tt></li>
+
    <li><tt>third-parties/org.eclipse.swordfish.third-parties.site</tt></li>
+
  </ul>
+
<li>Edit the <tt>[local_directory]/rt/org.eclipse.swordfish.build/etc/launcher.properties</tt> to set these two properties:
+
<ul>
+
<li>eclipseLocation=[root directory of Eclipse installation, e.g. <tt>c:/Program Files/eclipse</tt>]</li>
+
<li>pdeSvnBuildPluginPackage=[fully qualified path to [[Swordfish_Documentation:_Creating_Headless_Build#Subversion_PDE_build_plugin | Subversion PDE build plugin zip]] e.g. <tt>c:/Install/org.eclipse.pde.build.svn-1.0.1RC2.zip</tt> ]
+
</ul> 
+
</li>
+
<li>Switch to the directory <tt><Swordfish project root directory>/rt/org.eclipse.swordfish.build</tt></li>
+
<li>Start the <tt>ant</tt> script to run the build with the parameter, <tt>third.parties</tt>.</li>
+
<li>Check the build results in <tt><local_directory>/rt/org.eclipse.swordfish.build/target-third-parties</tt>.</li><br>
+
  </ol>
+
<b>NOTE</b>: The build results consist of the update site for Swordfish third-parties. It is located in the <tt>site</tt> sub-directory.
+
<br>
+
  
=== Running the Swordfish Headless Build ===
+
You also need to ensure that your SVN client is enabled to access the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish Swordfish Repository] via your proxy.  
This is the second step of the Swordfish build process, that is, creating the Swordfish build and update site.
+
  
==== Running as remote build ====
+
== Runtime build ==
To successfully create and run the Swordfish build:
+
  
<ol>
+
The build process is divided into two main stages. The first stage involves the following steps:  
<li>Check out the following projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN]</li>
+
  <ul>
+
    <li>rt/org.eclipse.swordfish.build</li>
+
      <li>rt/org.eclipse.swordfish.bundles</li>
+
      <li>third-parties/org.eclipse.swordfish.third-parties.site</li>
+
  </ul>
+
<li>Switch to the directory <tt>[Swordfish project root directory]/rt/org.eclipse.swordfish.build</tt></li>
+
<li>Edit the <tt>[used_directory]/org.eclipse.swordfish.build/etc/launcher.properties</tt> to set these three properties:
+
<ul>
+
<li>eclipseLocation=[root directory of Eclipse installation, e.g. <tt>c:/Program Files/eclipse</tt>]</li>
+
<li>pdeSvnBuildPluginPackage=[fully qualified path to [[Swordfish_Documentation:_Creating_Headless_Build#Subversion_PDE_build_plugin | Subversion PDE build plugin zip]] e.g. <tt>c:/Install/org.eclipse.pde.build.svn-1.0.1RC2.zip</tt> ]</li>
+
<li>eclipseTestFrameworkPackage=[location of Eclipse Testing Framework archive, e.g. <tt>c:/Install/eclipse-test-framework-3.5.zip</tt>]</li>
+
</ul> 
+
<li>Start the <tt>ant</tt> script to run the build.</li>
+
<li>Check the build results:</li>
+
  <ul>
+
      <li>Browse to the directory <tt>org.eclipse.swordfish.build/target</tt>.</li>
+
      <li>The <tt>site</tt> sub-directory contains the update site for Swordfish.</li>
+
    </ul>
+
</ol>
+
  
==== Running as local build ====
+
#Generate the third-party bundles
Before you run a local build the following tasks must first be completed.<br>
+
#Create an update site and store these bundles there.  
<ol>
+
#Upload the update site into the Swordfish download area.  
<li>Execute the [[Swordfish_Documentation:_Creating_Headless_Build#Running_a_Third-Party_Build | third-party build]] ''(This has to be a remote build!)''.</li>
+
<li>Check the build results.</li>
+
<li>If not already done, check out '''all''' projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN] + version-to check-out, e.g. <tt>trunk</tt>. </li>
+
</ol>
+
  
To execute the local build:
+
'''NOTE''': The last step only needs to be done when changes occur. E.g. when you create a new bundle, remove an obsolete bundle or create a new bundle version. <br>
<ol>
+
 
<li>Switch to the directory <tt><Swordfish project root directory>/rt/org.eclipse.swordfish.build</tt> and execute the <tt>ant</tt> build script with parameter: <pre>ant -Dlocal=true</pre></li>
+
The second stage involves the following steps:
<br>
+
 
You can also specify this property in your launcher.properties file.
+
#Create the Swordfish site.
</ol>
+
#Create the corresponding Swordfish update site.
 +
 
 +
You also need to ensure that your SVN client is enabled to access the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish Swordfish Repository] via your proxy.
 +
 
 +
=== Running a Third-Party Build  ===
 +
 
 +
This is the first step of the Swordfish build process, that is, creating the third-party builds.
 +
 
 +
To successfully create and run the third-party build:  
 +
 
 +
#Check out the following projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN] + version-to check-out, e.g. <tt>trunk</tt>.
 +
#*<tt>rt/org.eclipse.swordfish.build</tt>
 +
#*<tt>rt/org.eclipse.swordfish.bundles</tt>
 +
#*<tt>third-parties/org.eclipse.swordfish.third-parties.site</tt> 
 +
#Edit the <tt>[local_directory]/rt/org.eclipse.swordfish.build/etc/launcher.properties</tt> to set these two properties:
 +
#*eclipseLocation=[root directory of Eclipse installation, e.g. <tt>c:/BuildTools/eclipse</tt>]
 +
#*pdeSvnBuildPluginPackage=[fully qualified path to [[Swordfish Documentation: Creating Headless Build#Subversion_PDE_build_plugin|Subversion PDE build plugin zip]] e.g. <tt>c:/BuildTools/org.eclipse.pde.build.svn-1.0.1RC2.zip</tt> ] 
 +
#Switch to the directory <tt>&lt;Swordfish project root directory&gt;/rt/org.eclipse.swordfish.build</tt>
 +
#Start the <tt>ant</tt> script to run the build with the parameter, <tt>third.parties</tt>.
 +
#Check the build results in <tt>&lt;local_directory&gt;/rt/org.eclipse.swordfish.build/target-third-parties</tt>.<br>
 +
 
 +
'''NOTE''': The build results consist of the update site for Swordfish third-parties. It is located in the <tt>site</tt> sub-directory. <br>
 +
 
 +
=== Running the Swordfish Headless Build  ===
 +
 
 +
This is the second step of the Swordfish build process, that is, creating the Swordfish build and update site.
 +
 
 +
==== Running as remote build  ====
 +
 
 +
To successfully create and run the Swordfish build:
 +
 
 +
#Check out the following projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN]
 +
*rt/org.eclipse.swordfish.build
 +
*rt/org.eclipse.swordfish.bundles
 +
*third-parties/org.eclipse.swordfish.third-parties.site 
 +
#Switch to the directory <tt>[Swordfish project root directory]/rt/org.eclipse.swordfish.build</tt>  
 +
#Edit the <tt>[used_directory]/org.eclipse.swordfish.build/etc/launcher.properties</tt> to set these three properties:
 +
#*eclipseLocation=[root directory of Eclipse installation, e.g. <tt>c:/BuildTools/eclipse</tt>]
 +
#*pdeSvnBuildPluginPackage=[fully qualified path to [[Swordfish Documentation: Creating Headless Build#Subversion_PDE_build_plugin|Subversion PDE build plugin zip]] e.g. <tt>c:/BuildTools/org.eclipse.pde.build.svn-1.0.1RC2.zip</tt> ]
 +
#*eclipseTestFrameworkPackage=[location of Eclipse Testing Framework archive, e.g. <tt>c:/BuildTools/eclipse-test-framework-3.5.zip</tt>] 
 +
#Start the <tt>ant</tt> script to run the build.
 +
#Check the build results:
 +
*Browse to the directory <tt>org.eclipse.swordfish.build/target</tt>.
 +
*The <tt>site</tt> sub-directory contains the update site for Swordfish. 
 +
 
 +
==== Running as local build  ====
 +
 
 +
Before you run a local build the following tasks must first be completed.<br>
 +
 
 +
#Execute the [[Swordfish Documentation: Creating Headless Build#Running_a_Third-Party_Build|third-party build]] ''(This has to be a remote build!)''.
 +
#Check the build results.
 +
#If not already done, check out '''all''' projects from the [http://dev.eclipse.org/svnroot/soa/org.eclipse.swordfish/ Swordfish SVN] + version-to check-out, e.g. <tt>trunk</tt>. 
 +
 
 +
To execute the local build:
 +
 
 +
#Switch to the directory <tt>&lt;Swordfish project root directory&gt;/rt/org.eclipse.swordfish.build</tt> and execute the <tt>ant</tt> build script with parameter: <pre>ant -Dlocal=true</pre>  
 +
<br> You can also specify this property in your launcher.properties file.  
 +
 
 +
 
 +
==== Executing runtime tests  ====
  
==== Executing runtime tests ====
 
 
By default the tests execution is enabled. The results of the tests will be stored in  
 
By default the tests execution is enabled. The results of the tests will be stored in  
* <tt>rt/org.eclipse.swordfish.built/target/'''unit-tests'''</tt>
 
* <tt>rt/org.eclipse.swordfish.built/target/'''integration-tests'''</tt>
 
  
You can switch off the test execution by setting the system property <tt>noTest</tt> to true. E.g.:
+
*<tt>rt/org.eclipse.swordfish.built/target/'''unit-tests'''</tt>
<pre>ant -DnoTest=true</pre>
+
*<tt>rt/org.eclipse.swordfish.built/target/'''integration-tests'''</tt>
 +
 
 +
You can switch off the test execution by setting the system property <tt>noTest</tt> to true. E.g.:  
 +
<pre>ant -DnoTest=true</pre>  
 +
To run the tests later without doing a full build, use the targets
 +
 
 +
*<tt>unit.tests</tt> to run the unit tests and
 +
*<tt>integration.tests</tt> to run the integration tests
  
To run the tests later without doing a full build, use the targets
+
----
* <tt>unit.tests</tt> to run the unit tests and
+
* <tt>integration.tests</tt> to run the integration tests
+
  
----------------
+
[[Swordfish Documentation|Swordfish Documentation Home]] <br> [[Swordfish|Swordfish Wiki Home]] <br>
[[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
+
[[Swordfish | Swordfish Wiki Home]] <br/>
+

Revision as of 03:50, 21 May 2010

Creating and Running a Headless Build

This section contains instructions on creating a headless build.

Swordfish build process1.png

Prerequisites

The following prerequisites must be met before you start creating the build. You must have the latest version of Eclipse, Apache Ant & Subversion installed. Detailed instructions are provided here.

Eclipse

Install a fresh Eclipse SDK you want to use for building and keep it free from modifications.

Eclipse Test Framework

Download Eclipse Testing Framework package. You will need it in order to run integration tests which are part of the headless build.
Eclipse Testing Framework for Eclipse for Galileo or Helios (Note that you cannot use a later Helios milestone than M3 for JUnit compatibility reasons!)

Ant

Install the latest Ant build (currently, the version available is 1.7) and include it into your path.
You can find the latest version here: Apache Ant

Subversion PDE build plugin

You can download the zipped version here: SVN PDE Build

SVN

Install the latest version of the SVN client (currently, the version available is 1.6.2).
You can find the latest version here: Subversion

Check Proxy Settings

If you want to run the build scripts within a firewall, ensure that you enable the proxy settings. E.g. add the -autoproxy parameter when you run the ant scripts.
NOTE: The ant scripts use your default system proxy settings.

You also need to ensure that your SVN client is enabled to access the Swordfish Repository via your proxy.

Runtime build

The build process is divided into two main stages. The first stage involves the following steps:

  1. Generate the third-party bundles
  2. Create an update site and store these bundles there.
  3. Upload the update site into the Swordfish download area.

NOTE: The last step only needs to be done when changes occur. E.g. when you create a new bundle, remove an obsolete bundle or create a new bundle version.

The second stage involves the following steps:

  1. Create the Swordfish site.
  2. Create the corresponding Swordfish update site.

You also need to ensure that your SVN client is enabled to access the Swordfish Repository via your proxy.

Running a Third-Party Build

This is the first step of the Swordfish build process, that is, creating the third-party builds.

To successfully create and run the third-party build:

  1. Check out the following projects from the Swordfish SVN + version-to check-out, e.g. trunk.
    • rt/org.eclipse.swordfish.build
    • rt/org.eclipse.swordfish.bundles
    • third-parties/org.eclipse.swordfish.third-parties.site
  2. Edit the [local_directory]/rt/org.eclipse.swordfish.build/etc/launcher.properties to set these two properties:
    • eclipseLocation=[root directory of Eclipse installation, e.g. c:/BuildTools/eclipse]
    • pdeSvnBuildPluginPackage=[fully qualified path to Subversion PDE build plugin zip e.g. c:/BuildTools/org.eclipse.pde.build.svn-1.0.1RC2.zip ]
  3. Switch to the directory <Swordfish project root directory>/rt/org.eclipse.swordfish.build
  4. Start the ant script to run the build with the parameter, third.parties.
  5. Check the build results in <local_directory>/rt/org.eclipse.swordfish.build/target-third-parties.

NOTE: The build results consist of the update site for Swordfish third-parties. It is located in the site sub-directory.

Running the Swordfish Headless Build

This is the second step of the Swordfish build process, that is, creating the Swordfish build and update site.

Running as remote build

To successfully create and run the Swordfish build:

  1. Check out the following projects from the Swordfish SVN
  • rt/org.eclipse.swordfish.build
  • rt/org.eclipse.swordfish.bundles
  • third-parties/org.eclipse.swordfish.third-parties.site
  1. Switch to the directory [Swordfish project root directory]/rt/org.eclipse.swordfish.build
  2. Edit the [used_directory]/org.eclipse.swordfish.build/etc/launcher.properties to set these three properties:
    • eclipseLocation=[root directory of Eclipse installation, e.g. c:/BuildTools/eclipse]
    • pdeSvnBuildPluginPackage=[fully qualified path to Subversion PDE build plugin zip e.g. c:/BuildTools/org.eclipse.pde.build.svn-1.0.1RC2.zip ]
    • eclipseTestFrameworkPackage=[location of Eclipse Testing Framework archive, e.g. c:/BuildTools/eclipse-test-framework-3.5.zip]
  3. Start the ant script to run the build.
  4. Check the build results:
  • Browse to the directory org.eclipse.swordfish.build/target.
  • The site sub-directory contains the update site for Swordfish.

Running as local build

Before you run a local build the following tasks must first be completed.

  1. Execute the third-party build (This has to be a remote build!).
  2. Check the build results.
  3. If not already done, check out all projects from the Swordfish SVN + version-to check-out, e.g. trunk.

To execute the local build:

  1. Switch to the directory <Swordfish project root directory>/rt/org.eclipse.swordfish.build and execute the ant build script with parameter:
    ant -Dlocal=true


You can also specify this property in your launcher.properties file.


Executing runtime tests

By default the tests execution is enabled. The results of the tests will be stored in

  • rt/org.eclipse.swordfish.built/target/unit-tests
  • rt/org.eclipse.swordfish.built/target/integration-tests

You can switch off the test execution by setting the system property noTest to true. E.g.:

ant -DnoTest=true

To run the tests later without doing a full build, use the targets

  • unit.tests to run the unit tests and
  • integration.tests to run the integration tests

Swordfish Documentation Home
Swordfish Wiki Home

Back to the top