-1 for storing the version in .properties.+1 for using a VERSION or RELEASE file in the root folder to store this information.
It's easily accessible, you cannot overlook it and the content can be read by any functionality. It can also be automatically set by (custom) builds to be generated.
I think it might be a good idea to just render the version in the applications header or footer template as a HTML comment. Then it is viewable by anyone even if there is no access to the source. This should be made configurable in general.properties to prevent to show it if the user does not want this.
Thanks and regards, Michael Am 29.11.17 um 07:38 schrieb Taher Alkhateeb:
Hi James, The purpose of Config.java is to configure critical server settings at startup such as log location, admin settings, etc. These settings could be also used in test.properties and load-data.properties and all such properties get a default value if not set. OFBiz version by definition is not a startup parameter. It is not something you need to set so that the system works correctly. It's only a piece of information. That is why I suggested that it might not be a good fit for start.properties and Config.java. It's also hard for users to find the version if it is hidden somewhere like that. And given the nature of verbose logging in OFBiz I suspect that it might not be very useful to spit out OFBiz version in the logs because it will be lost in the mix. So if I may suggest maybe there are a few alternatives that could work like: - adding it to another properties file like general.properties (although still a bit hidden yet more related than start.properties) - adding it to the UiLabelMap and putting it in the footer of the system - putting it in a VERSION file or README.md as originally suggested I'm sure you can also come up with good ideas to that end, I'm just thinking quickly of alternatives that might fit. On Nov 29, 2017 2:30 AM, "James Yong" <[email protected]> wrote: Hi Taher, The reason of putting released version (e.g. 16.11.03) in start.properties file is because the start program is already reading that file and that info will be included in the startup message. Printing released version to the console is in line with what other applications, like Tomcat, have been doing. I haven't check how the start program will read the VERSION file but I have no issue with this approach and we can further discuss how it can be done. Regards, James Yong On 2017-11-29 02:51, Taher Alkhateeb <[email protected]> wrote:Hi James, I'm not sure of the purpose of doing all of that? start.properties is a file to feed into Config.java which in turn configures the startup settings of OFBiz. The version has nothing with the startup code so it seems like an improper place to put the property and maybe it might confuse users. Also, why go through all this logic? why not simply create a VERSION file and place the version in it? Much simpler and easier if all you need is a version reference. Unless you want to introduce some logic? On Tue, Nov 28, 2017 at 6:04 PM, James Yong <[email protected]> wrote:Hi all, If there is no further discusson, I will create a JIRA issue later to 1) add an ofbiz.version key in start.properties file; and 2) have the ofbiz.version key value included in the startup message. Regards, James Yong On 2017-11-28 01:35, Jacques Le Roux <[email protected]>wrote:OK then if we have both, why not? Jacques Le 27/11/2017 à 17:15, James Yong a écrit :Hi Jacques, The developer can refer to the proposed ofbiz.version property ifneeded.Regards, James Yong On 2017-11-28 00:03, Jacques Le Roux <[email protected]>wrote:Hi James, That's good when you start but could be hard to find after manydays running in production for instanceJacques Le 27/11/2017 à 15:43, James Yong a écrit :Hi all, How about hardcoding the released version in start.properties? E.g. ofbiz.version=v16.11.03 During startup, we can print out the version as part of thestartup message like:____ __________ _ / __ \/ ____/ __ )(_)___ / / / / /_ / __ / /_ / / /_/ / __/ / /_/ / / / /_ \____/_/ /_____/_/ /___/ v16.11.03 is started and ready. Just update the released version in the properties before arelease.Regards, James Yong On 2017-11-27 22:08, Akash Jain <[email protected]>wrote:+1, version information should available somewhere, it will behelpful.Thanks and Regards -- Akash Jain On Mon, Nov 27, 2017 at 6:07 PM, Sharan Foga <[email protected]>wrote:Hi Having the version info available somehow could be useful.Whenever a userreports a problem on our user lists, one of the first questionswe ask themis "What version are you using?" Perhaps asking the question about version information, on theuser listmight help. Thanks Sharan On 2017-11-27 08:49, Pierre Smits <[email protected]> wrote:Hi Devanshu Vyas, Please see inline. Best regards, Pierre Smits ORRTIZ.COM <http://www.orrtiz.com> OFBiz based solutions & services OEM - The OFBiz Extensions Marketplace1 http://oem.ofbizci.net/oci-2/ 1 not affiliated to (and not endorsed by) the OFBiz project On Mon, Nov 27, 2017 at 7:33 AM, Devanshu Vyas <[email protected]>wrote:Thank you all for your thoughts on this. I really like the idea shared by Taher to create a versionfile usingtarget and after second thought I agree that it can be atiresome tasktoupdate version info manually with each release. But before we conclude this discussion, I would like to shareanotherthought with you. I think we can add OFBiz version info in thelicensinginformation we add to our files. I know it will be a manual task, but can be easily done with asimpleFind& Replace. I am happy to work on the whichever implementation we decidehere(hoping Iam not stepping on anyone's toes).Don't worry. I bet you aren't. ;)And my reason to raise the concern was that it is verydifficult toidentify which version of code a user is using(a real-timescenariowhere Iwas exposed to OFBiz code and I couldn't perform anything onit. Sojust bylooking at it, I was unable to determine what version it was)So you experienced a user being exposed to a OOTB OFBizdeployment,deployed by your employer HotWax? Or was the user exposed to adeploymentthat was also modified? In either case this is an issue relatedto theRelease Management process applied. And not necessarily anOFBIZ problem.Waiting for your replies!! Thanks & Regards, Devanshu Vyas.
smime.p7s
Description: S/MIME Cryptographic Signature
