Automated builds from the command line

Starting with Red Suite 3, you can run an automated build from the command line with Red Suite using the following instructions. Note that Red Suite 3 or greater is required - it will not work with Red Suite 2.

  1. Open a command prompt window
  2. Execute the <product>Path.cmd batch file in the root of your installation directory. This sets up the paths so the compiler etc can be found by the tools.

  3. Use the <product>c application with the following options (note the additional 'c' on the end of the excutable name, which indicates this is the command line version of the tool). Note 1: options are case sensitive. Note 2: replace <product> with your product name.

<product>c -nosplash 
        -application org.eclipse.cdt.managedbuilder.core.headlessbuild 
        -import {[uri:/]/path/to/project} 
        -build {project_name[/build_config] | all} 
        -cleanBuild {project_name[/build_config] | all}
        -data /path/to/workspace

Example

To clean and build all the projects in the workspace c:\workspace\product, run the following command

RedSuite3c -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild all -build all -data c:\workspace\product

Note: This will build every build configuration (e.g. Debug and Release).

To clean and build the Release configuration of my_project (using Red Suite 4 or greater):

redsuitec -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild my_project/Release -build my_project/Release -data c:\workspace\product

Additional options in v4 or greater

HeadlessBuild (last edited 2012-03-23 19:08:39 by DerekMorris)