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.
-------------- 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/20090409/b50935b5/attachment.pgp>

Reply via email to