G
GB
Can someone help & point out why this doesn't work please?
I have written a manifest file which contains;
Manifest-version: 1.0
Name: com/xyz/mylib/
Implementation-Title: com.xyz.mylib
Implementation-Version: 42
Implementation-Vendor: My Co
This is placed in the file manifest.mf in the META-INF directory in my jar.
But when I do this;
Package version_info = Package.getPackage("com.xyz.mylib");
String revision = version_info.getImplementationVersion();
revision is always set as null.
If I substitute "com.xyz.mylib" for "org.apache.log4j" (log4j being
one of the jars I use) then this works and I get revision set to
"1.2.8".
What have I missed?
I have written a manifest file which contains;
Manifest-version: 1.0
Name: com/xyz/mylib/
Implementation-Title: com.xyz.mylib
Implementation-Version: 42
Implementation-Vendor: My Co
This is placed in the file manifest.mf in the META-INF directory in my jar.
But when I do this;
Package version_info = Package.getPackage("com.xyz.mylib");
String revision = version_info.getImplementationVersion();
revision is always set as null.
If I substitute "com.xyz.mylib" for "org.apache.log4j" (log4j being
one of the jars I use) then this works and I get revision set to
"1.2.8".
What have I missed?