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 "Common Build Infrastructure/Getting Started/Bootstrapping"
(New page: If building on build.eclipse.org, the infrastructure needed to do an Athena build is already in place. However, if you want to use a different version of basebuilder or common.releng, or i...) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
If building on build.eclipse.org, the infrastructure needed to do an Athena build is already in place. However, if you want to use a different version of basebuilder or common.releng, or if you want to use a different Hudson instance, you'll need to bootstrap your build in its workspace. | If building on build.eclipse.org, the infrastructure needed to do an Athena build is already in place. However, if you want to use a different version of basebuilder or common.releng, or if you want to use a different Hudson instance, you'll need to bootstrap your build in its workspace. | ||
− | To run a self-contained and automatically bootstrapped build, you need to call bootstrap.xml from your build.xml script. | + | To run a self-contained and automatically bootstrapped build, you need to call [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/bootstrap.xml?root=Technology_Project&revision=1.1&content-type=text%2Fplain bootstrap.xml] from your build.xml script. |
<project default="run"> | <project default="run"> | ||
− | + | <target name="run"> | |
− | + | <ant antfile="bootstrap.xml" target="init"> | |
− | + | <property name="basebuilderTag" value="r35x_v20090811" /> | |
− | + | <property name="commonrelengTag" value="HEAD" /> | |
− | + | <property name="ANTCONTRIB_VERSION" value="1.0b2" /> | |
− | + | <property name="ANT4ECLIPSE_VERSION" value="1.0.0.M3" /> | |
− | + | <property name="build.properties" value="build.properties" /> | |
− | + | </ant> | |
− | + | ... | |
− | + | <condition property="JAVA_HOME" value="${java.home}" else="${java.home}/.."> | |
− | + | <available file="${java.home}/bin/javac" type="file" /> | |
− | + | </condition> | |
− | + | ... | |
− | + | <property name="build.properties" value="build.properties" /> | |
− | + | <property file="${build.properties}" /> | |
− | + | <ant antfile="${relengCommonBuilderDir}/build.xml" /> | |
− | + | </target> | |
</project> | </project> | ||
− | Note that all properties and even the target are optional; | + | Note that all properties and even the target are optional; to use defaults, simply call this: |
+ | |||
+ | <ant antfile="bootstrap.xml"/> | ||
+ | |||
+ | == Try it out == | ||
+ | |||
+ | For a working example build, do this: | ||
+ | |||
+ | * Check out project: | ||
+ | |||
+ | svn co http://anonsvn.jboss.org/repos/tdesigner/trunk/releng/ teiid-designer-trunk-releng | ||
+ | |||
+ | * Run build: | ||
+ | |||
+ | cd teiid-designer-trunk-releng; ant | ||
+ | |||
+ | * Wait about 20-25 mins. You should see: | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 21 minutes 33 seconds | ||
+ | |||
+ | == Run build w/ Hudson == | ||
+ | |||
+ | * Attach a Hudson instance using a new free-form job, which will run Ant. Here's a [[Common_Build_Infrastructure/Getting_Started/Build_In_Hudson/Bootstrapping/config.xml|sample config.xml]] file you can use as a starting point. | ||
+ | |||
+ | |||
+ | [[Category:Athena Common Build]] | ||
+ | [[Category:Releng]] | ||
+ | [[Category:Draft_Documentation]] |
Latest revision as of 16:18, 15 April 2010
If building on build.eclipse.org, the infrastructure needed to do an Athena build is already in place. However, if you want to use a different version of basebuilder or common.releng, or if you want to use a different Hudson instance, you'll need to bootstrap your build in its workspace.
To run a self-contained and automatically bootstrapped build, you need to call bootstrap.xml from your build.xml script.
<project default="run"> <target name="run"> <ant antfile="bootstrap.xml" target="init"> <property name="basebuilderTag" value="r35x_v20090811" /> <property name="commonrelengTag" value="HEAD" /> <property name="ANTCONTRIB_VERSION" value="1.0b2" /> <property name="ANT4ECLIPSE_VERSION" value="1.0.0.M3" /> <property name="build.properties" value="build.properties" /> </ant> ... <condition property="JAVA_HOME" value="${java.home}" else="${java.home}/.."> <available file="${java.home}/bin/javac" type="file" /> </condition> ... <property name="build.properties" value="build.properties" /> <property file="${build.properties}" /> <ant antfile="${relengCommonBuilderDir}/build.xml" /> </target> </project>
Note that all properties and even the target are optional; to use defaults, simply call this:
<ant antfile="bootstrap.xml"/>
Try it out
For a working example build, do this:
- Check out project:
svn co http://anonsvn.jboss.org/repos/tdesigner/trunk/releng/ teiid-designer-trunk-releng
- Run build:
cd teiid-designer-trunk-releng; ant
- Wait about 20-25 mins. You should see:
BUILD SUCCESSFUL Total time: 21 minutes 33 seconds
Run build w/ Hudson
- Attach a Hudson instance using a new free-form job, which will run Ant. Here's a sample config.xml file you can use as a starting point.