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 "How To Test Autobuild On Local Machine"
m (recategorized) |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#eclipseproject:technology.higgins}} | + | {{#eclipseproject:technology.higgins|eclipse_custom_style.css}} |
− | # Checkout org.eclipse.higgins.auto project at | + | # Checkout org.eclipse.higgins.auto project at /trunk/builds/ from https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins SVN repository |
− | + | ||
− | + | ||
# Generate build.xml and dependencies.xml of the project and its dependent projects using [[Higgins2Ant]] plug-in | # Generate build.xml and dependencies.xml of the project and its dependent projects using [[Higgins2Ant]] plug-in | ||
+ | # Run generated build.xml with all targets you want to use in nightly builds | ||
# Right click on org.eclipse.higgins.auto/runtime/autoBuild.xml -> Run As ... -> Ant Build ... -> Classpath | # Right click on org.eclipse.higgins.auto/runtime/autoBuild.xml -> Run As ... -> Ant Build ... -> Classpath | ||
# Click on "User Entries" and then click "Add JARs ..." | # Click on "User Entries" and then click "Add JARs ..." | ||
− | # Add '''bsf.jar''', '''commons-logging-1.0.4 | + | # Add '''bsf.jar''', '''commons-logging-1.0.4.jar''', '''js.jar''', '''xercesImpl.jar''', '''xml-apis.jar''', '''html-tools.jar''' from ''org.eclipse.higgins.auto/lib'' and '''auto-classes.jar''' from ''org.eclipse.higgins.auto/build/lib'' |
# Click Properties tab, un-select "Use global properties as specified in the Ant runtime preferences", click "Add Property ...". Set Name = ECLIPSE_HOME and Value = <path to your eclipse installation folder> (e.g. C:\eclipse) | # Click Properties tab, un-select "Use global properties as specified in the Ant runtime preferences", click "Add Property ...". Set Name = ECLIPSE_HOME and Value = <path to your eclipse installation folder> (e.g. C:\eclipse) | ||
# Click Run button | # Click Run button | ||
Line 12: | Line 11: | ||
Note: | Note: | ||
* Make sure you are using JDK 1.4 because build machine is using JDK 1.4 | * Make sure you are using JDK 1.4 because build machine is using JDK 1.4 | ||
− | * | + | * There are several useful properties which you can use to customize default behaviour of the autobuilder: |
− | * | + | *# '''projectId''' - this property is useful if you want to run build for single project. By default autobuilder run build for each project defined in org.eclipse.higgins.auto/runtime/projects.xml. To run autobuilder for single project specify '''projectId''' property with value of your project id (e.g. org.eclipse.higgins.configuration.api). |
+ | *# '''buildDirectory''' - this property is useful if you want to test your projects prior to commit them to SVN. By default autobuilder ckeckout projects and their dependencies from SVN repositories to org.eclipse.higgins.auto/wDir/bDir directory. To test projects prior to commit them specify '''buildDirectory''' with value pointing to workspace with your projects. | ||
== Links == | == Links == | ||
* [[Automated Builds]] | * [[Automated Builds]] | ||
+ | See [http://www.eclipse.org/higgins/downloads.php?loc=downloads Higgins downloads] | ||
− | [[Category:Higgins | + | See [[Starting a Higgins Build]] |
+ | |||
+ | See [[Higgins Committers and Contributors#Processes]] | ||
+ | |||
+ | See [[How Autobuild Gets Dependencies]] | ||
+ | [[Category:Higgins 1.x - Building]] |
Latest revision as of 16:50, 25 April 2011
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
- Checkout org.eclipse.higgins.auto project at /trunk/builds/ from https://dev.eclipse.org/svnroot/technology/org.eclipse.higgins SVN repository
- Generate build.xml and dependencies.xml of the project and its dependent projects using Higgins2Ant plug-in
- Run generated build.xml with all targets you want to use in nightly builds
- Right click on org.eclipse.higgins.auto/runtime/autoBuild.xml -> Run As ... -> Ant Build ... -> Classpath
- Click on "User Entries" and then click "Add JARs ..."
- Add bsf.jar, commons-logging-1.0.4.jar, js.jar, xercesImpl.jar, xml-apis.jar, html-tools.jar from org.eclipse.higgins.auto/lib and auto-classes.jar from org.eclipse.higgins.auto/build/lib
- Click Properties tab, un-select "Use global properties as specified in the Ant runtime preferences", click "Add Property ...". Set Name = ECLIPSE_HOME and Value = <path to your eclipse installation folder> (e.g. C:\eclipse)
- Click Run button
Note:
- Make sure you are using JDK 1.4 because build machine is using JDK 1.4
- There are several useful properties which you can use to customize default behaviour of the autobuilder:
- projectId - this property is useful if you want to run build for single project. By default autobuilder run build for each project defined in org.eclipse.higgins.auto/runtime/projects.xml. To run autobuilder for single project specify projectId property with value of your project id (e.g. org.eclipse.higgins.configuration.api).
- buildDirectory - this property is useful if you want to test your projects prior to commit them to SVN. By default autobuilder ckeckout projects and their dependencies from SVN repositories to org.eclipse.higgins.auto/wDir/bDir directory. To test projects prior to commit them specify buildDirectory with value pointing to workspace with your projects.