|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if Implementation-Version is not available then try reading |
|
|
// if Implementation-Version is not available then try reading |
|
|
// Bundle-Version |
|
|
// Bundle-Version |
|
|
if (version == null) |
|
|
|
|
|
|
|
|
if (version == null) { |
|
|
version = getBundleVersion(); |
|
|
version = getBundleVersion(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if both Implementation-Version and Bundle-Version are not available |
|
|
// if both Implementation-Version and Bundle-Version are not available |
|
|
// then throw an exception |
|
|
// then throw an exception |
|
|
if (version == null) |
|
|
|
|
|
|
|
|
if (version == null) { |
|
|
throw die(CLIText.get().cannotReadPackageInformation); |
|
|
throw die(CLIText.get().cannotReadPackageInformation); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
outw.println( |
|
|
outw.println( |