Search in sources :

Example 1 with WbModuleEntry

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);
}
Also used : Project(org.gradle.api.Project) WbModuleEntry(org.gradle.plugins.ide.eclipse.model.WbModuleEntry) WbResource(org.gradle.plugins.ide.eclipse.model.WbResource)

Aggregations

Project (org.gradle.api.Project)1 WbModuleEntry (org.gradle.plugins.ide.eclipse.model.WbModuleEntry)1 WbResource (org.gradle.plugins.ide.eclipse.model.WbResource)1