On Wed, 12 Aug 2026 at 13:54, Neil C Smith <[email protected]> wrote:
> One option I can think of is to parse the manifest of one of the
> modules.  The implementation version of most modules is
> VERSION-GITHASH.

ie. something like this -

String base = "/usr/lib/apache-netbeans";
String bootJar = base + "/platform/lib/boot.jar";
JarFile jar = new JarFile(bootJar);
Manifest manifest = jar.getManifest();
String implVersion = manifest.getMainAttributes()
        .getValue("OpenIDE-Module-Implementation-Version");
String platformVersion = implVersion.split("-", 2)[0];
System.out.println("NetBeans platform version : " + platformVersion);

Best wishes,

Neil

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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to