How to automatically generate compile timestamp? [message #249526] |
Tue, 13 November 2007 06:23 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.04443 seconds