The .cfg file created by JPackage contains some useful metadata such as the app.version. Here's a snippet...
app.name=MyApp
app.version=1.0
app.runtime=$APPDIR\runtime
app.identifier=com.company.package
app.classpath=
app.mainmodule=application/com.company.package.Main
[JavaOptions]
[ArgOptions]
Is there a simple way to query this file through Java without manually loading the file from the file system and parsing it?
For context, we would have liked to retrieve the version from the manifest within the JAR, but unfortunately this doesn't seem to be available when the application is built using modules.
Cheers.