I am currently working on a small cccc plug-in.
The plug-in will issue a 'wxExecute' to have the cccc executable to it's thing.
I am observing a few strange things.
But first :
assumption : the starting working directory is the directory where the .cbp file is of the active project.
When I run command I want the plug-in to execute in the project directory it works.
Works meaning in this scenario :
* it finds the files specified on the command line (that is a list of ProjectFile::relativeFilename 's)
* it creates an output directory (.cccc, or when I specify a directory, my directory specified)
This is for example my command in the project directory :
killerbot@thorgal:~/Projects/Traficon/view_vipnt_buildserver/vipnt/Codec/Project> cccc --outdir=ldc "../inc/CodecP.h" "../src/Codec.cpp" "../src/Codec.h" "../src/CodecDecoder.cpp" "../src/CodecDecoder.h" "../src/CodecDisplay.cpp" "../src/CodecDisplay.h" "../src/CodecP.cpp"
or
killerbot@thorgal:~/Projects/Traficon/view_vipnt_buildserver/vipnt/Codec/Project> cccc "../inc/CodecP.h" "../src/Codec.cpp" "../src/Codec.h" "../src/CodecDecoder.cpp" "../src/CodecDecoder.h" "../src/CodecDisplay.cpp" "../src/CodecDisplay.h" "../src/CodecP.cpp"
However when this command is executed through wxExecute from the plug-in (NOTE :tested on LINUX) :
Then cccc can't find the files, when I remove those " , then it can find the files.
But in any case it will never create the output directory (and place the report files in it).
What would make it behave so different ?
Follow up : Anyone already can tell me how I can launch the CB html viewer, (the one which kicks in when you click the url at the bottom of the build log after a build), this would help me a lot otherwise I have to go hunting in the code ;-) ?