In the wiki:
http://wiki.codeblocks.org/index.php?title=Scripting_commands#ProjectFile (http://wiki.codeblocks.org/index.php?title=Scripting_commands#ProjectFile)
QuotebuildTargets
is a PUBLIC class variable to retrieve the targets file.
If we write ('prjfile' is a ProjectFile) :
Quotelocal Targetsfile = prjfile.buildTargets
and after finishing with the local variable :
QuoteTargetsfile.Clear()
it may happen that the files are
REMOVED from the project !
The use of a PUBLIC class variable, in that event, causes side effects.
I enclose a 'Hello.cbp' with a test script that demonstrates this problem.
Hello1.zipI suggest a fix for r9251
implement_GetbuildTargets_r9251.patch Thank you for your answers.
Applied in SVN. Thank you! :-)
thank you. Still effective !
But should we keep "wxArrayString buildTargets" user accessible ?
I think that this variable must be 'private' or 'protected'.