use of org.eclipse.n4js.tests.codegen.Project in project n4js by eclipse.
the class ScenarioGenerator method createClientProject.
/**
* Creates the client project containing the given module and vendor ID with a dependency on the given supplier
* project.
*
* @param clientModule
* the client module to add to the project
* @param vendorId
* the vendor ID
* @param supplierProject
* the supplier project which the newly created project should depend on
*
* @return the newly created project
*/
private Project createClientProject(Module clientModule, String vendorId, Project supplierProject) {
Project clientProject = new Project("ClientProject", vendorId, vendorId + "_name", PROJECT_TYPE);
clientProject.addProjectDependency(supplierProject.getName());
clientProject.createSourceFolder("src").addModule(clientModule);
return clientProject;
}
Aggregations