Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to automatically generate compile timestamp?
How to automatically generate compile timestamp? [message #249526] Tue, 13 November 2007 06:23 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:Changes to AST and class file but not source
Next Topic:How to retrieve all implicit casts?
Goto Forum:
  


Current Time: Tue Nov 12 19:48:36 GMT 2024

Powered by FUDForum. Page generated in 0.02810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top