private fun fillPomsFromChildren( poms: MutableCollection<ArtifactInformation>, art: ArtifactInformation, artifacts: Map<String, ArtifactInformation> ): Int { var cnt = 0 for (childId in art.getChildIds()) { val child: ArtifactInformation? = artifacts[childId] if (child != null) { val childName: String = child.getName() if (isPomFileName(childName)) { poms.add(child) ++cnt } } } return cnt }
Fill a collection with all POMs for the children of an artifact .