[jboss-jira] [JBoss JIRA] (WFLY-5676) Wrong WildFly version when WildFly standalone is started
Tomaz Cerar (JIRA)
issues at jboss.org
Wed Nov 18 09:04:00 EST 2015
[ https://issues.jboss.org/browse/WFLY-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130286#comment-13130286 ]
Tomaz Cerar commented on WFLY-5676:
-----------------------------------
Yeah, that is still valid, but since version 9, where we have split WildFly to core and "full" it requires bit different setup.
this is from top of my head on what could be done, not tested or anything.
{code:java}
ProductConfig pc = new ProductConfig(Module.getBootModuleLoader(), System.getProperty("jboss.home.dir"), null);
String version = pc.getProductVersion();
{code}
you will still need the org.jboss.as.version module imported to make this work.
> Wrong WildFly version when WildFly standalone is started
> --------------------------------------------------------
>
> Key: WFLY-5676
> URL: https://issues.jboss.org/browse/WFLY-5676
> Project: WildFly
> Issue Type: Bug
> Components: Server
> Affects Versions: 9.0.2.Final
> Reporter: Stefan Lindner
> Assignee: Jason Greene
>
> See also Bug WFLY-2544
> Wildfly 9.2.0 final reports Version 1.0.2 if asked from within Java-application (consulting org.jboss.as.version.Version):
> AS_VERSION = 1.0.2.Final
> AS_RELEASE_CODENAME = Kenny
> Yes, we could test if it's "kenny" and the aha: 1.0.2 is 9.0.2 but this sounds strange
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list