Difference between revisions of "IAM Building"

From Eclipsepedia

Jump to: navigation, search
(Set path to jdk and p2 install of svn-pde-build. Fix path to iam folder)
 
(One intermediate revision by one user not shown)
Line 10: Line 10:
  
 
PDE Build ships with CVS support, but not SVN. You will need to install the SVN support from [http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ Subversive update site].
 
PDE Build ships with CVS support, but not SVN. You will need to install the SVN support from [http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ Subversive update site].
 +
 +
= build.eclipse.org =
 +
 +
To build IAM using PDE on the Eclipse build server you need shell access first. Ask the project leads if you really need it.
 +
 +
Currently, these committers have shell access:
 +
* Abel Muiño
 +
* Joakim Erdfelt
 +
 +
== Set up ==
 +
Before starting, we need java 5 on our path:
 +
<pre>
 +
export PATH=/opt/ibm/ibm-java-jdk-ppc-60/bin/:$PATH
 +
</pre>
 +
 +
Go to IAM work directory
 +
<pre>
 +
cd /shared/technology/iam/builds/
 +
</pre>
 +
 +
=== Initial set up ===
 +
Usually, you'll be able to just update the two build projects:
 +
<pre>
 +
svn update dev-tools
 +
svn update pde-build
 +
</pre>
 +
 +
But if you need to start fresh, check out the projects from svn:
 +
<pre>
 +
svn co http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/pde-build
 +
svn co http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/dev-tools
 +
</pre>
 +
... and prepare the builder Eclipse ...
 +
<pre>
 +
tar xzvf /home/data/httpd/download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk-ppc.tar.gz
 +
 +
./eclipse/eclipse -nosplash -consolelog \
 +
  -application org.eclipse.equinox.p2.director.app.application \
 +
  -metadataRepository http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ \
 +
  -artifactRepository http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ \
 +
  -installIU org.eclipse.team.svn.pde.build.feature.group \
 +
  -profileProperties org.eclipse.update.install.features=true
 +
 +
</pre>
 +
 +
'''Note:''' Anonymous http access is used. File access to the svn repo is also available.
 +
 +
=== Rebuild the target platform ===
 +
(This might not be needed if there are no updates to the target platform)
 +
 +
<pre>
 +
cd dev-tools
 +
</pre>
 +
 +
Point the ant script to the base Eclipse SDK (available locally) by creating a `local.properties` file with this content:
 +
 +
<pre>
 +
tarball=/home/data/httpd/download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk-ppc.tar.gz
 +
</pre>
 +
 +
Launch the ant script
 +
 +
<pre>
 +
ant -f iam-prep-target-platform.xml reset download
 +
</pre>
 +
 +
'''TODO:''' Most of the components for the target platform are locally available... need to figure a portable way to take advantage of that. ''amuino''.
 +
 +
=== Build IAM ===
 +
 +
<pre>
 +
cd pde-build
 +
</pre>
 +
 +
Launch the build script
 +
 +
<pre>
 +
BUILDER_ECLIPSE_HOME=../eclipse ./runBuild.sh
 +
</pre>
 +
  
 
[[Category:IAM]]
 
[[Category:IAM]]

Latest revision as of 18:55, 12 March 2009

< To: IAM

Contents

[edit] IAM Development Environment

Follow these instructions to get your development environment up and running.

[edit] Setup environment

Follow the instructions at [IAM_Environment] to set up the environment

[edit] Subversion configuration

PDE Build ships with CVS support, but not SVN. You will need to install the SVN support from Subversive update site.

[edit] build.eclipse.org

To build IAM using PDE on the Eclipse build server you need shell access first. Ask the project leads if you really need it.

Currently, these committers have shell access:

  • Abel Muiño
  • Joakim Erdfelt

[edit] Set up

Before starting, we need java 5 on our path:

export PATH=/opt/ibm/ibm-java-jdk-ppc-60/bin/:$PATH

Go to IAM work directory

cd /shared/technology/iam/builds/

[edit] Initial set up

Usually, you'll be able to just update the two build projects:

svn update dev-tools
svn update pde-build

But if you need to start fresh, check out the projects from svn:

svn co http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/pde-build
svn co http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/dev-tools

... and prepare the builder Eclipse ...

tar xzvf /home/data/httpd/download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk-ppc.tar.gz

./eclipse/eclipse -nosplash -consolelog \
  -application org.eclipse.equinox.p2.director.app.application \
  -metadataRepository http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ \
  -artifactRepository http://download.eclipse.org/technology/subversive/0.7/pde-update-site/ \
  -installIU org.eclipse.team.svn.pde.build.feature.group \
  -profileProperties org.eclipse.update.install.features=true

Note: Anonymous http access is used. File access to the svn repo is also available.

[edit] Rebuild the target platform

(This might not be needed if there are no updates to the target platform)

cd dev-tools

Point the ant script to the base Eclipse SDK (available locally) by creating a `local.properties` file with this content:

tarball=/home/data/httpd/download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk-ppc.tar.gz

Launch the ant script

ant -f iam-prep-target-platform.xml reset download

TODO: Most of the components for the target platform are locally available... need to figure a portable way to take advantage of that. amuino.

[edit] Build IAM

cd pde-build

Launch the build script

BUILDER_ECLIPSE_HOME=../eclipse ./runBuild.sh