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

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

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

796 Views
_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 Kudos
0 Replies