Thursday, March 23, 2006

Scripting CVS

Tonight, I created my first EclipseMonkey DOM - it allows you to check out CVS projects into your workspace from a script. I don't know when Bjorn will make the DOM available, but to whet your appetite, here is a script that shows how to use the DOM:

--- Came wiffling through the eclipsey wood ---
* Menu: CVS > Get JFace Data Binding
* Kudos: Boris Bokowski
* License: EPL 1.0
* DOM:

function main() {

var repository = "";
var projects = ["org.eclipse.jface.databinding", "org.eclipse.jface.examples.databinding", "org.eclipse.jface.tests.databinding"];
var tag = "HEAD";
for each(project in projects) {
var module = project;
cvs.checkOut(project, repository, module, tag);
--- And burbled as it ran! ---