How can I automate getting the date of build into a constant visible to my code?

后端 未结 7 1432
太阳男子
太阳男子 2020-12-08 05:14

I would like to define in my code a constant holding the date on which the executable was built. I would naturally like to automate that process.

I know that I can w

7条回答
  •  太阳男子
    2020-12-08 05:43

    I use FinalBuilder to do all my builds, and with that it is easy to add a utility that will update any source file in advance of compilation to search for and modify the definition of a variable or constant. I do build version numbers, dates, anything that makes sense this way.

提交回复
热议问题