Search in sources :

Example 1 with DefaultClasspathAttribute

use of org.gradle.plugins.ide.internal.tooling.eclipse.DefaultClasspathAttribute in project gradle by gradle.

the class EclipseModelBuilder method createAttributes.

private static List<DefaultClasspathAttribute> createAttributes(AbstractClasspathEntry classpathEntry) {
    List<DefaultClasspathAttribute> result = Lists.newArrayList();
    Map<String, Object> attributes = classpathEntry.getEntryAttributes();
    for (Map.Entry<String, Object> entry : attributes.entrySet()) {
        Object value = entry.getValue();
        result.add(new DefaultClasspathAttribute(convertGString(entry.getKey()), value == null ? "" : value.toString()));
    }
    return result;
}
Also used : DefaultClasspathAttribute(org.gradle.plugins.ide.internal.tooling.eclipse.DefaultClasspathAttribute) Map(java.util.Map) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 Map (java.util.Map)1 DefaultClasspathAttribute (org.gradle.plugins.ide.internal.tooling.eclipse.DefaultClasspathAttribute)1