How to executing a windows batch file as pre build step command in eclipse

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

How to executing a windows batch file as pre build step command in eclipse

1,003件の閲覧回数
_ZZ_
Contributor II

Hi every one!

I need to include the git details (Git commit Hash, Date and time) in my source code. 

I have heard that it is possible to execute a windows batch file as a  pre build command in eclipse IDE. however, I am not so sure how to make the eclipse doing that. what would be the pre build command ?

basically, every time we build the software, the batch file must be executed and create a c header file in the project and write the git info into it. then software can access this hear file.

Has anyone here done this before or has done the job in a different way.

Note that I am working in a windows environment. (eclipse IDE runs on windows 10) 

0 件の賞賛
返信
0 返答(返信)