Dear all,
I am going to implement a plug-in for CodeBlocks adding support for several ClearCase commands.
As it is now, I still need to learn a few things.
To start out with I am providing an executable that allows also to do some ClearCase commands. You can find it at :
http://users.pandora.be/lieven.de.cock/CodeBlocks/ClearCase4Devcpp.zipAs the name suggests it was something I initially created for Dev-cpp, but it also works with CB.
How to install it : extract the exe somewhere on your PC (oh yes : windows only :-( ) and then in CB go to "tools" menu and select "Configure Tools".
Next press the add Button, and fill in the fields as follows :
Name : ClearCase for CodeBlocks
Executable : browse for the exe you just put somewhere on your machine
Parameters : $(ACTIVE_EDITOR_FILENAME) $(PROJECT_DIR)
--> not the space inbetween the 2 parameters.
Working Directory : select the directory where the exe is in
The exe might need to some MS runtimes since it was build with .NET 2003. Yeah, using M$ to use other IDE's. ;-)
Please look for them and ensure they are in your path.
When you are working on a project (cbp !!) whose sources are in ClearCase you can run the clearcase commands for the active editor by going to the Tools menu and selecting our newly added tool. The rest is pretty obvious on what to do.
Roadmap :
1) create a simple plug-in that calls the cleartool on the command line for everything, clearcase menu in the menubar, and the context menu. Does not allow yet to add comments (needs a gui for that, one of the things that I need to study ...)
2) the same as 1 but with a GUI that allows to add comments for the action you excute
3) Maybe ? : replace cleartool calls by using the api dll (windows only)
4) more to come ...
I already have a FIRST QUESTION : what's the counterpart for CreateProcess (from the windows API) on wxWindows ?
Since I don't want to just call system(...), sometimes we need to wait untill the action is finished before the code can continue.
kind regards,
Lieven