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,413 次查看
_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 回复数