The current check:
- First evaluates the JBOSS_HOME environmental variable, looks for version.txt in that filepath, and runs a regex to ensure the Enterprise version is installed
- Failing to find JBOSS_HOME, it looks in /etc/eap/version.txt (which is where the JBoss Product Managers told us JBoss is installed for VMs and container images, IIRC)
Before going into the code to much, is that approach appropriate?
By contrast, it looks like your script unzips jar files and looks in META-INF/maven/org.jboss.
modules/jboss-modules/pom. properties. I don't have enough JBoss knowledge to know if these approaches are effectively the same, or if one is more ideal. Can you help us understand?