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

PTP/release engineering

< PTP
Revision as of 15:35, 18 March 2009 by G.watson.computer.org (Talk | contribs) (Running a headless build)

Overview

Building a PTP release or interim build uses an automated headless build on build.eclipse.org. This document describes how this build is configured, and will enable you to build PTP locally.

Preparation

Check out the releng/org.eclipse.ptp.releng plugin. This plugin contains the main build scripts for PTP.

If you are building locally, you will need to download copies of the following files:

Edit build.xml and change the values of the eclipseDist, cdtDist, mylynDist, rseDist, and tauJars properties to the location of each downloaded file, respectively.

Running a headless build

The ptpbuild script in the org.eclipse.ptp.releng plugin manages the process of building PTP. It requires one argument that is the version of PTP that is being built. This version is only used to specify the location of the resulting build output files.

The following locations are used by default:

/opt/public/download-staging.priv/tools/ptp/releng 
Main directory where the build will take place. This can be overidden by changing the value of the STAGING_DIR variable in the script.
/home/www/tools/ptp/builds/ptp_version 
Default location for output build files, where ptp_version is the version specified on the command line. This can be overidden by changing the value of the BUILDS_DIR variable in the script.

The ptpbuild script checks out a copy of the org.eclipse.ptp.releng project prior to the build. In order to prevent the version in CVS from being used instead of your modified local version, you will need to comment out the section of the script that does the checkout. Once you've done this, copy the org.eclipse.ptp.releng directory you checked out earlier (and modified) to the STAGING_DIR.

Build results

On completion, a successful build will be located in a subdirectory of the BUILDS_DIR directory called I.IYYYMMDDHHMM, where YYYYMMDDHHMM is the date and time stamp for the build. This directory will contain a signed zipped copy of the master update site along with various other files. Files produced by the build include:

  • ptp-master-M.N.O-IYYYYMMDDHHMM.zip
  • RDT servers for the various operating systems
  • build.log

If the build was not successful, then there will be no corresponding subdirectory. Instead, the build.log and partial build will be located in the STAGING_DIR.

Modifying the build

Changing the build version

In order to build a different version of PTP, change the branchVersion attribute in build.xml. You will also need to supply the new version to the ptpbuild script so that the build output goes to the correct place.

Changing the build type

Back to the top