use of org.jetbrains.jps.model.artifact.elements.JpsArtifactRootElement in project intellij-community by JetBrains.
the class JpsArtifactOutputPackagingElementImpl method getSubstitution.
@Override
public List<JpsPackagingElement> getSubstitution() {
JpsArtifact artifact = getArtifactReference().resolve();
if (artifact == null)
return Collections.emptyList();
JpsCompositePackagingElement rootElement = artifact.getRootElement();
if (rootElement instanceof JpsArtifactRootElement) {
return new ArrayList<>(rootElement.getChildren());
} else {
return Collections.<JpsPackagingElement>singletonList(rootElement);
}
}
Aggregations