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: http://download.eclipse.org/technology/dash/update/org.eclipse.dash.cvs
*/

function main() {

var repository = ":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse";
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! ---

1 comment:

Unknown said...

Any update on this? I'd love to try it out.