Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "How To Test Autobuild On Local Machine"

Line 7: Line 7:
 
# 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.jar''', '''javasvn.jar''', '''js.jar''', '''svnant.jar''', '''svnClientAdapter.jar''', '''svnjavahl.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''
+
# 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 13: Line 13:
 
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
* Autobuild always checkout the project and its dependent projects from the cvs/svn repositories and there is no way to
+
* There are several useful properties which you can use to customize default behaviour of the autobuilder:
* If you don't want to run build for all projects in the org.eclipse.higgins.auto/runtime/projects.xml, specify '''-DprojectId=<your project id>''' VM argument on JRE tab.  
+
*# '''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).
* Default working directory for autobuild is org.eclipse.higgins.auto/wDir.
+
*# '''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.
* By default autobuilder ckeckout projects and their dependencies from SVN repositories to org.eclipse.higgins.auto/wDir/bDir directory. If you want to test your projects prior to commit them to SVN, specify '''buildDirectory''' property pointing to your workspace. In this case autobuilder will not checkout existing projects. You can specify '''buildDirectory''' property in the same way as ECLIPSE_HOME property or use '''-DbuildDirectory=<path to your workspace>''' VM argument on JRE tab.
+
  
 
== Links ==
 
== Links ==

Revision as of 19:26, 30 March 2008

{{#eclipseproject:technology.higgins}}

  1. Checkout org.eclipse.higgins.auto project at org.eclipse.higgins/trunk/builds/ from https://dev.eclipse.org/svnroot/technology SVN repository
  2. Add your new project to org.eclipse.higgins.auto/runtime/projects.xml
  3. Update org.eclipse.higgins.auto/runtime/resourceLocation.xml for cvs/svn repository locations of the project and its dependent projects. Also add the remote locations of missing 3rd party libs required for the projects in <remoteLibs> section
  4. Generate build.xml and dependencies.xml of the project and its dependent projects using Higgins2Ant plug-in
  5. Run generated build.xml with all targets you want to use in nightly builds
  6. Right click on org.eclipse.higgins.auto/runtime/autoBuild.xml -> Run As ... -> Ant Build ... -> Classpath
  7. Click on "User Entries" and then click "Add JARs ..."
  8. 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
  9. 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)
  10. 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:
    1. 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).
    2. 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

Back to the top