In eclipse CDT from the command line I can create workspaces, import and build projects, etc. This works.
I'm trying to change the 'active configuration' of a project from (X) to (Y) In the GUI, I can do this: Right click on the project name, go down to "Build Configurations" -> "Set Active"
I want to do this from the command line, I'm no java developer otherwise I would set a breakpoint and step through the java code and figure this out {I don't have a java build environment setup either, simply to complex for my needs right now}
Option 1 - the setting is stored in a file.
Somewhere - in a saved file - Eclipse has to have some setting that marks a project as "the active configuration" but I can't seem to find this.
Option 2 - something from the command line ... that will let me do this
Any suggestions?
For Option 2, you can select which configuration to use while building from the command line with this
eclipse -nosplash -data . -application org.eclipse.cdt.managedbuilder.core.headlessbuild -build <project name>/<configuration>
See this bug report for more details: https://bugs.eclipse.org/bugs/show_bug.cgi?id=281397
I was also looking for option 2, until I realized there is a fast way to set the active configuration for all of my projects.
I just need to select all of my projects, then:
Build Configuration > Set Ative > My_Config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With