Problem: Building and Running the Head of Eclipse P2, with SAT4J.
PreConditions: Have Subclipse and Maven plugins installed and setup as described in this blog entry.
Solution :
Step 1) Setup Network: Using pserver on some networks (for some reason) does not require going through the proxy. If this is so add the P2 CVS Server to the "Windows-->Preferences-->General-->Network Connections-->No Proxy" list.
Step 2) Get Eclipse: Get the most recent stable build of Eclipse and use this as the Development Environment.
Step 3) CVS Checkout: Add CVS repository ":pserver:anonymous@dev.eclipse.org:/cvsroot/rt"
Step 3.1) Checkout "HEAD --> org.eclipse.equinox --> p2 --> org.eclipse.equinox.p2.releng"
Step 3.2) Select org.eclipse.equinox.p2.releng project and "Right-Click -->Import Project Set"
(Note: Select the quoted text, open the CVS Repositories view, and select Paste Connection or hit Ctrl+V to add the connection)
Step 4) Get SAT4J: Add the SAT4J and Apache SVN repositories.
Check out the "SAT4J-->maven-->trunk" project as a maven project.
Check out the Apache "commons-->proper-->beanutils && cli --> trunk"
(Note: Dont forget to Update Project Configuration)
Step 5) Validate Tests: Run some tests over P2 with "Run-As Junit Plugin Test". Go to the test "Run Configuration-->Main-->Run an Application-->[No Application] - Headless Mode", if this is not set some tests will fail or freeze.
Also to speed things up restrict the test environment by deselecting all the unessesary plugins in "Run Configuration-->Plugins".
Useful Links (where I plagiarized most of this from):
http://wiki.eclipse.org/Equinox_p2_Getting_Started_for_Developers
http://wiki.eclipse.org/Equinox_p2_tests
Labels: problem
0 comments:
Post a Comment