views:

1618

answers:

2

Is there a (good) documentation about the format of the eclipse workspace files (.location, x.tree, ...)?

I need this to programatically create a workspace for automated builds. Unfortunately I have to do this job from a .NET program, so I can't use any Eclipse classes to do this! (We manage our Linux C++ projects using Eclipse + CDT).

+1  A: 

Not exactly a precise answer, but I just would point out the following sources for your question:

May between those three links you will find the actual documentation for workspace structure (if you do, post an answer here ;) )

VonC
A: 

This will not be a helpful answer.

If you possibly can, I would try and coax Eclipse to generate the workspace for you. Otherwise you will be delving in a lot of undocumented internal APIs, and trying to re-implement the filessytem, which is in-effect another internal APIs.

Eclipse makes it clear that you are on your own when using internal APIs, and are careful to say that these may break at any time (e.g. a very minor point release).

Edit: you may also find help looking at suggestions for this question. And buckminster, which you may find useful for other reasons too.

jamesh
I'm afraid you're right. So as I see it at the moment I have two options: a) Do changes to binary/xml files which can have another format at each update. b) Learn Java and build own Eclipse plugins/applications (which I was hoping I could avoid).
rstevens
I don't think you'll need to learn any Java, just enough about it to spin up eclipse to do it for you. See edits.
jamesh
That's where I will go to. At the moment I modify some files from C# directly (i.e. .location and some properties files). But I build an RCP application plugin to trigger a workspace build and I think I will do more and more of the modifications in the plugin using eclipse's classes. Thanx.
rstevens