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 "Common Build Infrastructure/Virtual Server Setup/WinXP"
(→Install software) |
|||
Line 21: | Line 21: | ||
* download and install Java 5 | * download and install Java 5 | ||
− | * 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]] | ::[[Image:Cygwin-installer.png|200px]] | ||
+ | |||
+ | * add c:\cygwin\bin to the Windows PATH | ||
+ | |||
+ | ::[[Image:Set-Windows-PATH-include-cygwin-bin.png]|200px]] | ||
== Run a build in Eclipse == | == Run a build in Eclipse == |
Revision as of 01:33, 10 March 2009
This article is a stub. You can help Eclipsepedia by expanding it.
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.
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
- add c:\cygwin\bin to the Windows PATH
- [[Image:Set-Windows-PATH-include-cygwin-bin.png]|200px]]
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
- download gef.psf.
- 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
+ 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