use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateActivator.
@Test
public void testProjectTemplateActivator() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("activator-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("activator");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateServiceBuilder.
@Test
public void testProjectTemplateServiceBuilder() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("service-builder-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("service-builder");
op.setPackageName("com.liferay.test");
IProject parent = create(op);
assertTrue(parent != null && parent.exists());
IProject api = CoreUtil.getProject("service-builder-test-api");
assertTrue(api != null && api.exists());
IProject service = CoreUtil.getProject("service-builder-test-service");
assertTrue(service != null && service.exists());
IProjectBuilder builder = LiferayCore.create(IProjectBuilder.class, service);
builder.buildService(monitor);
api.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
service.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
IBundleProject apiBundle = LiferayCore.create(IBundleProject.class, api);
assertNotNull(apiBundle);
IPath apiOutput = apiBundle.getOutputBundle(true, monitor);
assertNotNull(apiOutput);
assertTrue(apiOutput.toFile().exists());
assertEquals("service-builder-test-api-1.0.0.jar", apiOutput.lastSegment());
IBundleProject serviceBundle = LiferayCore.create(IBundleProject.class, service);
IPath serviceOutput = serviceBundle.getOutputBundle(true, monitor);
assertNotNull(serviceOutput);
assertTrue(serviceOutput.toFile().exists());
assertEquals("service-builder-test-service-1.0.0.jar", serviceOutput.lastSegment());
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateNpmBillboardjsPortlet.
@Test
public void testProjectTemplateNpmBillboardjsPortlet() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("npm-billboardjs-portlet-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("npm-billboardjs-portlet");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateTheme.
@Test
public void testProjectTemplateTheme() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("theme-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("theme");
createAndBuild(op);
}
use of com.liferay.ide.project.core.modules.NewLiferayModuleProjectOp in project liferay-ide by liferay.
the class MavenModuleProjectTests method testProjectTemplateMvcPortlet.
@Test
public void testProjectTemplateMvcPortlet() throws Exception {
NewLiferayModuleProjectOp op = NewLiferayModuleProjectOp.TYPE.instantiate();
op.setProjectName("mvc-portlet-test");
op.setProjectProvider("maven-module");
op.setProjectTemplateName("mvc-portlet");
createAndBuild(op);
}
Aggregations