use of org.gradle.plugins.ide.eclipse.model.Variable in project gradle by gradle.
the class EclipseDependenciesCreator method createLibraryEntry.
private static AbstractLibrary createLibraryEntry(File binary, File source, File javadoc, EclipseClasspath classpath, ModuleVersionIdentifier id) {
FileReferenceFactory referenceFactory = classpath.getFileReferenceFactory();
FileReference binaryRef = referenceFactory.fromFile(binary);
FileReference sourceRef = referenceFactory.fromFile(source);
FileReference javadocRef = referenceFactory.fromFile(javadoc);
final AbstractLibrary out = binaryRef.isRelativeToPathVariable() ? new Variable(binaryRef) : new Library(binaryRef);
out.setJavadocPath(javadocRef);
out.setSourcePath(sourceRef);
out.setExported(false);
out.setModuleVersion(id);
return out;
}
Aggregations