Browse Subversion Repository
Diff of /exewrap-jetty/trunk/src/main/java/org/eclipse/jetty/util/ManifestUtils.java
Parent Directory
| Revision Log
| Patch
| 64 |
* @param klass the class of the jar/module to retrieve the version |
* @param klass the class of the jar/module to retrieve the version |
| 65 |
* @return the jar/module version, or an empty Optional |
* @return the jar/module version, or an empty Optional |
| 66 |
*/ |
*/ |
|
@SuppressWarnings("unchecked") |
|
| 67 |
public static Optional<String> getVersion(Class<?> klass) |
public static Optional<String> getVersion(Class<?> klass) |
| 68 |
{ |
{ |
| 69 |
Optional<String> version = getManifest(klass).map(Manifest::getMainAttributes) |
Optional<String> version = getManifest(klass).map(Manifest::getMainAttributes) |
|
|
Legend:
| Removed from v.97 |
|
| changed lines |
| |
Added in v.98 |
|
|
|