Page 1 of 1
Plugin revision

Posted:
Sat Feb 18, 2012 11:04 pm
by moltra
Hey guys I am getting ready to start on the plugin part of the repository. I would like to have some way of getting the version of the plugin. Can we get a uniform way that everyone can use to document the revision of the plugin they create?
Is there a way to put a tag in the plugin, that can be check easily? Or if there is not, maybe we can put in a comment at the beginning that has the version number.
Re: Plugin revision

Posted:
Sun Feb 19, 2012 11:37 am
by zip
Java supports @version tag in the JavaDoc comments so that could be used. How do you want to use that in the API?
Re: Plugin revision

Posted:
Sun Feb 19, 2012 3:21 pm
by moltra
I was thinking about either having it in the plugin field. ie "livefeed.groovy 1.2" Or maybe a second field with just the "1.2" for version 1.2. Either way it we can set it up so that the API will download the newest version of the plugin.
Re: Plugin revision

Posted:
Sun Feb 19, 2012 6:09 pm
by zip
yes, I'd say get the latest.
Re: Plugin revision

Posted:
Sun Feb 19, 2012 8:22 pm
by moltra
What should I set up in the field? x.y.z like you are doing with serviio or will x.y be enough?
Update. The more I think about it, the more I think I will let this be an open field and each developer will use what ever way he wants, as long as you can tell the progression of revisions.
Re: Plugin revision

Posted:
Sun Feb 19, 2012 10:39 pm
by zip
I'd make it just an integer, ie 1, 2, 3, etc
Re: Plugin revision

Posted:
Sun Feb 19, 2012 11:31 pm
by moltra
true that would be easier for everyone.