Automatic licence lookup

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Automatic licence lookup

Postby charliewakeup » Thu Sep 02, 2021 7:25 pm

It would be nice if, instead of having to call Lm.verifyLicense, we could instead put a file somewhere on the classpath like /META-INF/licences/jide.properties which JIDE would look up itself when it wants to find a licence.

Reasoning is, it's easy to forget to call Lm.verifyLicense (or rather the utility method we made call it) from every place which could possibly be using JIDE, and generally bugs of this sort crop up at random due to the order tests run in, which makes discovering the bug surprising every time.

The suggestion to "call it in the main method" never really appealed to us, because:
  • there are multiple main methods so you can still forget to call it and the scope of the main method doesn't know whether JIDE will be used or not, which makes it the wrong place to make the decision
  • unit tests don't have a main method anyway so those would still have to do something else
  • it's no longer simple to "just use" a component, e.g. in a GUI builder, because you have to know about JIDE licensing
charliewakeup
 
Posts: 57
Joined: Sun Nov 22, 2009 10:03 pm

Re: Automatic licence lookup

Postby JIDE Support » Thu Sep 02, 2021 10:44 pm

You can already do that. The properties file is

com\jidesoft\utils\utils.properties

The content of the file should be

verifyLicense.companyName=xxxx
verifyLicense.projectName=xxxx
verifyLicense.licenseKey=xxxx

You can also pass in them as system properties.
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37054
Joined: Sun Sep 14, 2003 10:49 am

Re: Automatic licence lookup

Postby charliewakeup » Tue Sep 14, 2021 7:31 pm

Aha! Well there is something I didn't know. We will switch to doing it that way.
charliewakeup
 
Posts: 57
Joined: Sun Nov 22, 2009 10:03 pm


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests

cron