Import project automatically using .bat file or python script

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import project automatically using .bat file or python script

1,352 Views
MVR
Contributor V

Hello everyone,

I'm trying to open a project on S32DS IDE from a batch file or python script from the command line. 

Is it possible to do it? 

Thanks,

MVR

Tags (1)
0 Kudos
Reply
2 Replies

1,267 Views
nxa11767
NXP Employee
NXP Employee

Hi @MVR ,

Eclipse CDT has a feature called headless build - this feature offer the option clean/build projects from workspace and also to import from command line an existing project. Since S32DS is eclipse based this feature can be used. How to use it - browse to S32DS eclipse folder and run eclipsec.exe from a command line (or batch script even python) with next parameters mandatory:

eclipsec.exe -noSplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild --launcher.ini s32ds.ini -data /path/to/workspace

You can add to the command, the next options:

* Import projects:                       -import     {[uri:/]/path/to/project}
* Import all projects in the tree:       -importAll  {[uri:/]/path/to/projectTreeURI}
* Build projects / the workspace:        -build      {project_name_reg_ex/config_name_reg_ex | all}
* Clean build projects / the workspace:  -cleanBuild {project_name_reg_ex/config_name_reg_ex | all}
* Add Include path to build:             -I          {include_path}
* Add Include file to build:             -include    {include_file}
* Add preprocessor define to build:      -D          {prepoc_define}
* Replace environment variable in build: -E          {var=value}
* Append environment variable to build:  -Ea         {var=value}
* Prepend environment variable to build: -Ep         {var=value}
* Remove environment variable in build:  -Er         {var}
* Replace a tool option value:           -T          {toolid} {optionid=value}
* Append to a tool option value:         -Ta         {toolid} {optionid=value}
* Prepend to a tool option value:        -Tp         {toolid} {optionid=value}
* Remove a tool option:                  -Tr         {toolid} {optionid=value}

I hope this info helps!

Best regards,

Alexandra

0 Kudos
Reply

1,286 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We apologize for the delay from our side. For what we are able to find, we do not see any specific information on regards of opening a project through batch or python. 

We only see information on regards of using the Configuration Tool through CLI.

We do apologize.

Please, let us know.

0 Kudos
Reply