Import project automatically using .bat file or python script

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Import project automatically using .bat file or python script

1,363件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,278件の閲覧回数
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 件の賞賛
返信

1,297件の閲覧回数
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 件の賞賛
返信