Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "PTP/release engineering"
(→Running a headless build) |
(→Running a headless build) |
||
Line 27: | Line 27: | ||
; <code>BUILDS_DIR=/home/www/tools/ptp/builds/''ptp_version''</code> : 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 <code>BUILDS_DIR</code> variable in the script. | ; <code>BUILDS_DIR=/home/www/tools/ptp/builds/''ptp_version''</code> : 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 <code>BUILDS_DIR</code> variable in the script. | ||
− | The <code>ptpbuild</code> script checks out a copy of the <code>org.eclipse.ptp.releng</code> 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 <code>org.eclipse.ptp.releng</code> directory you checked out earlier (and modified) to the <code>STAGING_DIR</code>. | + | The <code>ptpbuild</code> script checks out a copy of the <code>org.eclipse.ptp.releng</code> 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 <code>org.eclipse.ptp.releng</code> directory you checked out earlier (and modified) to the <code>STAGING_DIR</code>, then run <code>ptpbuild</code>. |
== Build results == | == Build results == |
Revision as of 15:36, 18 March 2009
Contents
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:
- The Eclipse 3.4 SDK for your architecture (http://download.eclipse.org/eclipse/downloads)
- The latest build of CDT 5.0.x (http://download.eclipse.org/tools/cdt/builds)
- Mylyn 3.1 (http://www.eclipse.org/mylyn/downloads)
- RSE 3.0 (http://download.eclipse.org/dsdp/tm/downloads)
- TAU Jars (http://nic.uoregon.edu/~wspear/tau_jars.zip)
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:
-
STAGING_DIR=/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.
-
BUILDS_DIR=/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
, then run ptpbuild
.
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.