Last compilation date included in .class

N

Nomak

Hello,

What are the different ways to automaticaly include in a project the
compilation date in java?

For one file, the CVS last update date is in $Date$ keyword but the main files are not modified often, and i don't know how to do a "max($Date$ for all files)" so i can't use that.

Any solution specific to the eclipse IDE/netbeans are welcome too.

Thx
 
D

Daniel Dyer

Hello,

What are the different ways to automaticaly include in a project the
compilation date in java?

For one file, the CVS last update date is in $Date$ keyword but the main
files are not modified often, and i don't know how to do a
"max($Date$ for all files)" so i can't use that.


Are you using Ant? If so you can use a combination of the TStamp
(http://ant.apache.org/manual/CoreTasks/tstamp.html) and Filter
(http://ant.apache.org/manual/CoreTasks/filter.html) tasks to achieve this.

Dan.
 
J

Juha Laiho

Nomak said:
What are the different ways to automaticaly include in a project the
compilation date in java?

Do you really consider the compile date that important?

Or is it important to know which file versions were included
in a given compile? If this latter, then use version tagging,
and export the project from CVS using the tag name (which
will be available as the $Name$ CVS tag).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top