If you will use the following piece of code while developing plugin for openfire (the most simple version I found):
public class MyClass {
** private enum myEnum {}**
** private void myMethod() {}**
}
you get the following error while executing plugin build task:
com.thoughtworks.qdox.parser.ParseException: syntax error …
though obviously there are no error in that code.
the error occures inside **buildplugin **macro when it runs **copy **task
I’d appreciate if someone could add this as an issue in Openfire JIRA,
because I haven’t found how to do it.
LG1
March 25, 2012, 4:47pm
2
Would you please attach all the classes / code that you did create and use? This would help a lot to create a test case and make sure that it can be fixed properly.
Sure, here is the simplest example I found (2 files):
myplugin/src/java/com/myplugin:
package com.myplugin;
import java.io.File;
import org.jivesoftware.openfire.container.Plugin;
import org.jivesoftware.openfire.container.PluginManager;
public class MyPlugin implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDirectory) {}
public void destroyPlugin() {}
public static class MyClass {
private enum myEnum {}
// uncomment the following to make workaround
// ;
private void myMethod() {}
}
}
myplugin/plugin.xml:
**
**
<?xml version="1.0" encoding="UTF-8"?>
com.myplugin.MyPlugin
My Plugin
Test plugin
Me
2.6
23/3/2012
2.1.2
internal
ant target:
**
**
myplugin.rar.zip (835 Bytes)