[rules-users] How to determine Drools runtime version?

Mark Proctor mproctor at codehaus.org
Sun Dec 30 10:05:23 EST 2012


our jars are produced with maven. So you can try the pom.properties, which is in all our jars.

Mark
On 29 Dec 2012, at 22:46, Ansgar Konermann <ansgar.konermann at googlemail.com> wrote:

> Hi,
> 
> I'd like to determine at runtime which version of Drools is in use/on
> the classpath. I cannot use reflection on the Drools classes itself, as
> this will not work in the intended runtime environment (Google App Engine).
> 
> The following code works in a normal Java VM, but not in GAE:
> 
>    Package droolsCorePackage = KnowledgePackageImp.class.getPackage();
>    String implementationTitle = droolsCorePackage.getImplementationTitle();
>    String implementationVersion =
> droolsCorePackage.getImplementationVersion();
> 
> In GAE, the getImplementation{Title|Version} methods both return null.
> 
> Is there another, maybe more "official" way of determining the Drools
> version? I'd like to support Drools 5.x.y starting at x >= 3.
> 
> Best regards
> 
> Ansgar
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list