I do not think you want to set this information into a java class, but into your final jar file using manifest file.
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

Hope it helps,
Dmitri.

Frederich, Eric P21322 wrote:
Hello,

Is there an easy way to set final Java Strings at compile time?
I know you can set properties at runtime with -Dproperty=value but could
I do this at compile time?
What I want to do is have one target which makes a program called "Java
Program XYZ - production" and another which is called "Java Program XYZ
- development".
Also, it would be useful to somehow get the date and time at which it
was compiled into the program.

I figured this would be common, hopefully it is.  Perhaps I just don't
know the right words to search on Google.

Thanks in advance,
~Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to