How do I import the classes I have defined in classes/ folder into my plugins folder.
According to the Plugin Guide, All properties/classes must live in the classes/ file. I have done so. I have tried to reference a class called HandleIncoming.java from my plugin. Eclipse automatically made the imports. However, when I build my pugins, I get an error.
package src.java.org.clinton.openfire.plugin;
import classes.HandleIncoming;
@Override public void initializePlugin(PluginManager manager, File pluginDirectory) { startSpring(); HandleIncoming.performIncoming(); }
package classes;
import java.util.List; public class HandleIncoming { public static void performIncoming() { String JSON = new FetchNews(NewsItemsID.CULTURE).fetchData(); List<NewsFacade> newsFacades = new ParseNewsData().doParsing(JSON); new StoreData(newsFacades, NewsItemsID.CULTURE); System.out.println("Successfully executed for " + NewsItemsID.CULTURE); } }
Thank you.