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.
Build Workshop 3: Build Hard With A Purpose/How Build Works
Contents
How CBI Builds work
Input
Required
- Project ID (same as portal ex. tools.gef, technology.linuxtools) (-projectid)
- Version to use (-version)
- CVS Root for project's releng plugin (we will add SVN support soon) <-- could perhaps come from portal in future (-projRelengRoot)
- CVS Path for project's releng plugin (we will add SVN support soon) <-- could perhaps come from portal in future (-projRelengPath)
- URLs of dependencies (ex. http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz) (we will automate this more in the future) (-URL)
Optional
- CVS branch of org.eclipse.releng.basebuilder (-basebuilderBranch)
- JAVA_HOME (-javaHome)
- Path to a local checkout of the source (avoids checking out during build) (-localSourceCheckoutDir)
- Nick should probably fill in the rest with all of the options he has
Output
- Master zip
- SDK zip
Process
Entry point: start.sh
- build up options from command line input
- small hacks for modeling projects
- set up commonSriptsDir and configfile variables (cleanup?)
commonScriptsDir=$writableBuildRoot/build/org.eclipse.dash.common.releng/tools/scripts mkdir -p $commonScriptsDir cd $commonScriptsDir configfile=$commonScriptsDir/../../server.properties
- set environment variables (could use a bit of cleanup)
export HOME=$writableBuildRoot if [ "x$javaHome" != "x" ]; then export JAVA_HOME=$javaHome; else # use default export JAVA_HOME=$($commonScriptsDir/readProperty.sh $configfile JAVA_HOME) javaHome="$JAVA_HOME" fi export ANT_HOME=$($commonScriptsDir/readProperty.sh $configfile ANT_HOME); ANT_BIN=$($commonScriptsDir/readProperty.sh $configfile ANT_BIN); if [ "x$ANT_BIN" != "x" ]; then export ANT=$ANT_BIN else export ANT=$ANT_HOME"/bin/ant"; fi