Good idea, I did that approach and it works great!
Anders Hammar wrote:
I would go the normal Java way. Store the version in the manifest and then
use the java.lang.Package object, like this:
clazz.getPackage().getImplementationVersion()
There are loads of discussion about this on the net. Here's one:
http://forums.sun.com/thread.jspa?threadID=642761
/Anders
2009/11/18 Gajo Csaba <[email protected]>
Hello,
I'm writing a plugin which is generating certain files, and I would like to
add something like a "Generated by xxx version 1.2.3" string to each file it
generates. The problem is, how can the plugin know its own version (without
hardcoding it)?
Regards, Csaba
---------------------------------------------------------------------
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]