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.
Difference between revisions of "Build Workshop 3: Build Hard With A Purpose/How Build Works"
(→How CBI Builds work) |
(→Entry point: start.sh) |
||
Line 17: | Line 17: | ||
== Process == | == Process == | ||
=== Entry point: [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.commonbuilder.releng/tools/scripts/start.sh?root=Technology_Project&view=markup start.sh] === | === Entry point: [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.commonbuilder.releng/tools/scripts/start.sh?root=Technology_Project&view=markup start.sh] === | ||
− | <source lang= | + | * build up options from command line input |
− | + | * small hacks for modeling projects | |
− | < | + | * set up commonSriptsDir and configfile variables (cleanup?) |
− | + | <source lang=bash> | |
− | < | + | commonScriptsDir=$writableBuildRoot/build/org.eclipse.dash.common.releng/tools/scripts |
+ | mkdir -p $commonScriptsDir | ||
+ | cd $commonScriptsDir | ||
+ | configfile=$commonScriptsDir/../../server.properties | ||
+ | </source> | ||
+ | * set environment variables (could use a bit of cleanup) | ||
+ | <source lang=bash> | ||
+ | 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 | ||
+ | </source> | ||
+ | |||
+ | |||
+ | <source lang=bash> | ||
</source> | </source> |
Revision as of 09:32, 29 October 2008
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