On Thursday 09 April 2009 23:33:28 Matthew Toseland wrote:
> I have introduced an easily comparable version number for plugins via the 
> FredPluginRealVersioned. I have added this to all the default plugins, the 
> few plugins that I missed are IMHO not used much (e.g. Librarian), and may 
> not be versioned at all (ditto).
> 
> We have always assumed that this would be compiled in to the jar so we can 
> check it before we deploy the jar. However, THIS SUCKS:
> - It is not cross platform, unless we call java code from ant to determine 
it 
> and stick it in a variable. 
> - If we don't, it relies on unpublished build scripts, which devs developing 
> the plugins will not use. We need the plugin to be versioned even if it is 
an 
> unofficial build!
> - If we do, we have to protect the Version.java from unauthorized commits.
> 
> Bombe gives the example:
> <exec executable="git" outputproperty="build.version"><arg 
> value="describe" /><arg value="--tags" /><arg value="HEAD" /></exec>
> 
> For the time being I am just going to load the plugin. If it fails to load, 
it 
> probably isn't compatible. If it loads and has an incompatible version, we 
> can unload it without starting it.
> 
The solution is to use a properties file. See bug #2976.
https://bugs.freenetproject.org/view.php?id=2976

This does not need to be done before releasing the next stable build, so it 
won't be.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20090410/5f0398df/attachment.pgp>

Reply via email to