use of org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry in project gradle by gradle.
the class WtpClasspathAttributeSupport method enhance.
public void enhance(Classpath classpath) {
for (ClasspathEntry entry : classpath.getEntries()) {
if (entry instanceof AbstractClasspathEntry) {
AbstractClasspathEntry classpathEntry = (AbstractClasspathEntry) entry;
Map<String, Object> wtpEntries = createDeploymentAttribute(classpathEntry);
classpathEntry.getEntryAttributes().putAll(wtpEntries);
}
}
}
use of org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry in project gradle by gradle.
the class EclipseDependenciesCreator method createProjectDependencies.
private List<AbstractClasspathEntry> createProjectDependencies() {
ArrayList<AbstractClasspathEntry> projects = Lists.newArrayList();
Collection<IdeProjectDependency> projectDependencies = dependenciesExtractor.extractProjectDependencies(classpath.getProject(), classpath.getPlusConfigurations(), classpath.getMinusConfigurations());
for (IdeProjectDependency projectDependency : projectDependencies) {
projects.add(projectDependencyBuilder.build(projectDependency));
}
return projects;
}
use of org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry in project gradle by gradle.
the class EclipseDependenciesCreator method createLibraryDependencies.
private List<AbstractClasspathEntry> createLibraryDependencies() {
ArrayList<AbstractClasspathEntry> libraries = Lists.newArrayList();
boolean downloadSources = classpath.isDownloadSources();
boolean downloadJavadoc = classpath.isDownloadJavadoc();
Collection<IdeExtendedRepoFileDependency> repoFileDependencies = dependenciesExtractor.extractRepoFileDependencies(classpath.getProject().getDependencies(), classpath.getPlusConfigurations(), classpath.getMinusConfigurations(), downloadSources, downloadJavadoc);
for (IdeExtendedRepoFileDependency dependency : repoFileDependencies) {
libraries.add(createLibraryEntry(dependency.getFile(), dependency.getSourceFile(), dependency.getJavadocFile(), classpath, dependency.getId()));
}
Collection<IdeLocalFileDependency> localFileDependencies = dependenciesExtractor.extractLocalFileDependencies(classpath.getPlusConfigurations(), classpath.getMinusConfigurations());
for (IdeLocalFileDependency it : localFileDependencies) {
libraries.add(createLibraryEntry(it.getFile(), null, null, classpath, null));
}
return libraries;
}
Aggregations