use of org.jetbrains.jps.maven.model.impl.MavenResourceFileFilter in project intellij-community by JetBrains.
the class MavenEjbArtifactRootCopyingHandlerProvider method createCustomHandler.
@Nullable
@Override
public FileCopyingHandler createCustomHandler(@NotNull JpsArtifact artifact, @NotNull File root, @NotNull JpsPackagingElement contextElement, @NotNull JpsModel model, @NotNull BuildDataPaths buildDataPaths) {
MavenProjectConfiguration projectConfiguration = JpsMavenExtensionService.getInstance().getMavenProjectConfiguration(buildDataPaths);
if (projectConfiguration == null)
return null;
MavenEjbClientConfiguration ejbCfg = projectConfiguration.ejbClientArtifactConfigs.get(artifact.getName());
if (ejbCfg == null) {
JpsArtifact parentArtifact = findParentArtifact(contextElement);
if (parentArtifact != null) {
ejbCfg = projectConfiguration.ejbClientArtifactConfigs.get(parentArtifact.getName());
}
}
return ejbCfg == null ? null : new FilterCopyHandler(new MavenResourceFileFilter(root, ejbCfg));
}
Aggregations