How to automatically generate compile timestamp? [message #249526] |
Tue, 13 November 2007 06:23 |
Eclipse User |
|
|
|
Originally posted by: chenal.naritech.cn
I want to generate compile timestamp (linke c/c++ __DATE__ macro) for
product version management.
Can Eclipse run an external script file which updates and outputs the
MyVersion.java file before building the project?
Or is there any better method to generate compile timestamp?
Thank you!
Allen
|
|
|
Re: How to automatically generate compile timestamp? [message #249556 is a reply to message #249526] |
Tue, 13 November 2007 14:39 |
Eclipse User |
|
|
|
Originally posted by: eclipse6.rizzoweb.com
Allen Chen wrote:
> I want to generate compile timestamp (linke c/c++ __DATE__ macro) for
> product version management.
>
> Can Eclipse run an external script file which updates and outputs the
> MyVersion.java file before building the project?
Yes, you can set up a custom Builder that invokes an Ant script (or
another arbitrary program) to do that. Open the Project properties and
select the Builders section, where you can define a new Builder and move
it above the Java Builder.
If you want more details, see the Eclipse Help, Workbench User Guide.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.02929 seconds