private void copyPathGroup(PathGroup attr, IArtifact artifact) { artifact.setBase(createStringFromPath(attr.getBase())); List<IPath> paths = attr.getPaths(); if (paths.size() == 0) return; if (paths.size() == 1) artifact.setPath1(createStringFromPath(paths.get(0))); else { List<org.eclipse.buckminster.cspecxml.IPath> xmlPaths = artifact.getPath(); for (IPath path : paths) { org.eclipse.buckminster.cspecxml.IPath xmlPath = ICSpecXMLFactory.eINSTANCE.createPath(); xmlPath.setPath(createStringFromPath(path)); xmlPaths.add(xmlPath); } } }
private void copyArtifact(Artifact attr, IArtifact xmlAttr) { copyAttribute(attr, xmlAttr); copyPathGroup(attr, xmlAttr); attr.setFilter(xmlAttr.getFilter()); }