I'd like to extend velocity via a plugin.
My plugin war contains just WEB-INF/vosao-plugin.xml.
The file vosao-plugin.xml points to a class that is part of my app engine
project.
The plugin installs correctly but I can't uninstall or update it.
The problem seems to be in PluginLoader.removePluginResources().
The object listResource contains one element but listResource.getContent() is
an empty array, so this calls fails:
ids.add(Long.valueOf(id));
because id is an empty string.
The reason why listResource is not empty is because when the plugin was
installed in PluginLoader.install(), two empty lists resourceList and
fileCacheList were saved:
saveResourceList(plugin, resourceList, fileCacheList);
If I manually remove the PluginResourceEntity instances from the datastore, I
can then remove the plugin succesfully.
The reason why I want to keep the plugin implementation in my project files is
because I can more easily debug it and change it at runtime.
I don't know another way to extend velocity (in vosao) other than via plugins,
maybe a static/plugins could be provided?
Thanks, amazing project!
Original issue reported on code.google.com by theb...@emanueleziglioli.it on 8 Jun 2011 at 12:09
Original issue reported on code.google.com by
theb...@emanueleziglioli.it
on 8 Jun 2011 at 12:09