use of org.gradle.plugins.ide.eclipse.model.WbModuleEntry in project gradle by gradle.
the class WtpComponentFactory method configure.
public void configure(final EclipseWtpComponent wtp, WtpComponent component) {
List<WbModuleEntry> entries = Lists.newArrayList();
entries.addAll(getEntriesFromSourceDirs(wtp));
for (WbResource element : wtp.getResources()) {
if (wtp.getProject().file(element.getSourcePath()).isDirectory()) {
entries.add(element);
}
}
entries.addAll(wtp.getProperties());
Project project = wtp.getProject();
entries.addAll(getEntriesFromConfigurations(project, configOrEmptySet(wtp.getRootConfigurations()), configOrEmptySet(wtp.getMinusConfigurations()), wtp, "/"));
entries.addAll(getEntriesFromConfigurations(project, configOrEmptySet(wtp.getLibConfigurations()), configOrEmptySet(wtp.getMinusConfigurations()), wtp, wtp.getLibDeployPath()));
component.configure(wtp.getDeployName(), wtp.getContextPath(), entries);
}
Aggregations