Hervé BOUTEMY schrieb:

what about MavenProject.class.getPackage().getImplementationVersion()?

That could be a good additional check because of its simplicity and different data source. I wouldn't suggest to make it the only check because of [0]:

"Null is returned if no package object was created by the class loader of this class."


Benjamin


[0] http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getPackage%28%29

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to