This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
My build configuration names are include special characters like "[,_". So i cant run "setActiveBuildConfig" and "buildProject" functions. I get NullPointerException error. How can i fix this? I don't want to change my build configuration names.
Project Name : "@Project"
Build Conf. Name : "!Debug"
setActiveBuildConfig("\\@Project","\\!Debug")
I've opened new project to test this and it works, but it doesn't work on my main project, it gives "wait condition time out"
BTW i can build project without backslashes or one blackslash
Edit:
I got the problem. It doen't work because of build conf. name's description. If i delete "description", it works. But i can't delete the description for all my build configs. There are more the 80 configuration.
Ki-Soo Lee said:The description should not matter.
You are right, it *does* matter. I'm befuddled why it has an impact. But it looks like a bug to me.
You can set the active build config with description using this syntax. Note that the ".*" at the end of the configuration name. Ideally, you shouldn't need to add the wildcard, the API should include this by default.
setActiveBuildConfig("@Project", "!Debug.*");
Regards,
Patrick