Difference between revisions of "Common Build Infrastructure/Virtual Server Setup/WinXP"

From Eclipsepedia

Jump to: navigation, search
(New page: {{stub}} This page documents how http://buildbox/ was set up for use in EclipseCon 2009's [http://www.eclipsecon.org/2009/sessions?id=302 Hands-On: Using the new Common Builder for Push-...)
 
Line 23: Line 23:
 
* install Cygwin. Make sure to include the following, along with the defaults:
 
* install Cygwin. Make sure to include the following, along with the defaults:
 
   cvs svn perl curl wget Xvfb vnc vnc-server  
 
   cvs svn perl curl wget Xvfb vnc vnc-server  
 +
 +
::[[Image:Cygwin-installer.png|200px]]
  
 
== Run a build in Eclipse ==
 
== Run a build in Eclipse ==
Line 50: Line 52:
 
 
 
* select build.xml, right-click and Run as > Ant Build
 
* select build.xml, right-click and Run as > Ant Build
 +
 +
::[[Image:Run-CBI-on-WindowsXP.png|200px]]
  
 
+ to kill a bad build in progress, open a Windows Task Manager, switch to Processes tab, and kill the appropriate thread. Or, use cygwin and do
 
+ to kill a bad build in progress, open a Windows Task Manager, switch to Processes tab, and kill the appropriate thread. Or, use cygwin and do

Revision as of 00:55, 10 March 2009


This page documents how http://buildbox/ was set up for use in EclipseCon 2009's Hands-On: Using the new Common Builder for Push-Button PDE Builds tutorial.

Contents

Create virtual server image

  • create 30G extensible virtual disk for use with Virtual Box

+ VirtualBox recommends no more than 256M vram, but you need more or you get java.io.IOException: error=12, Cannot allocate memory when running tests

+ Hudson-based GEF 3.5 build ran OK with 640M (111 tests, including UI tests)
  • install Windows from mounted CD
  • unmount .iso image; mount Virtual Box additions image instead
  • restart when prompted

Install software

  • install Virtual Box Guest Additions; restart guest if required.
  • for easily transferring files between host and guest, mount a shared drive; I use X:\ on the guest mapped to ~/VBoxShared on the host
  • download and install Java 5
  • install Cygwin. Make sure to include the following, along with the defaults:
 cvs svn perl curl wget Xvfb vnc vnc-server 
Cygwin-installer.png

Run a build in Eclipse

  • download and unpack Eclipse 3.4.2, then double-click the launcher (eclipse.exe).
  • choose a workspace without spaces or a lengthy path, such as c:\workspace
  • import the psf into Eclipse using File > Import > Team > Project Set File. You should end up with three workspace projects, org.eclipse.releng.basebuilder, org.eclipse.dash.common.releng, and org.eclipse.gef.releng.
  • download ant-contrib.jar into c:\workspace\org.eclipse.dash.common.releng\lib\
  • open gef.releng, configure build.properties to correct java and Eclipse platform settings. For example
dependencyURLs=http://download.eclipse.org/eclipse/downloads/drops/S-3.5M5-200902021535/eclipse-SDK-3.5M5-win32.tar.gz 

JAVA_HOME=C:/Progra~1/Java/jdk1.6.0_11
JAVA14_HOME=C:/Progra~1/Java/jdk1.6.0_11
JAVADOC14_HOME=C:/Progra~1/Java/jdk1.6.0_11/bin
# for windows, must be explicit about paths using correct slashes (/); dirs with spaces should be avoided
relengBuilderDir=C:/workspace/org.eclipse.gef.releng
relengBaseBuilderDir=C:/workspace/org.eclipse.releng.basebuilder
relengCommonBuilderDir=C:/workspace/org.eclipse.dash.common.releng
  • select build.xml, right-click and Run as > Ant Build
Run-CBI-on-WindowsXP.png

+ to kill a bad build in progress, open a Windows Task Manager, switch to Processes tab, and kill the appropriate thread. Or, use cygwin and do

pkill -f N200903

TODO

+ verify tests work

+ verify any missing cygwin requirements