use of com.liferay.ide.project.core.BundleFactoryDelegate in project liferay-ide by liferay.
the class PortalSourceLookupTests method addProjectToServer.
private IServer addProjectToServer(IProject project, IServer server) throws CoreException {
IServerWorkingCopy serverWorkingCopy = server.createWorkingCopy();
IModule module = new BundleFactoryDelegate().createSimpleModule(project);
serverWorkingCopy.modifyModules(new IModule[] { module }, null, _NPM);
return serverWorkingCopy.save(true, _NPM);
}
Aggregations