use of com.intellij.packaging.artifacts.ArtifactManager in project intellij-community by JetBrains.
the class ArtifactsWorkspaceSettings method getArtifactsToBuild.
public List<Artifact> getArtifactsToBuild() {
final List<Artifact> result = new ArrayList<>();
final ArtifactManager artifactManager = ArtifactManager.getInstance(myProject);
for (String name : myState.myArtifactsToBuild) {
ContainerUtil.addIfNotNull(result, artifactManager.findArtifact(name));
}
return result;
}
use of com.intellij.packaging.artifacts.ArtifactManager in project intellij-community by JetBrains.
the class JavaFxModuleUtil method hasJavaFxArtifacts.
private static boolean hasJavaFxArtifacts(@NotNull Project project) {
return CachedValuesManager.getManager(project).getCachedValue(project, () -> {
final ArtifactManager artifactManager = ArtifactManager.getInstance(project);
final Collection<? extends Artifact> artifacts = artifactManager.getArtifactsByType(JavaFxApplicationArtifactType.getInstance());
return CachedValueProvider.Result.create(!artifacts.isEmpty(), artifactManager.getModificationTracker());
});
}
use of com.intellij.packaging.artifacts.ArtifactManager in project intellij-community by JetBrains.
the class AppEngineCommunityWebIntegration method addLibraryToArtifact.
@Override
public void addLibraryToArtifact(@NotNull Library library, @NotNull Artifact artifact, @NotNull Project project) {
final ArtifactManager artifactManager = ArtifactManager.getInstance(project);
for (PackagingElement<?> element : PackagingElementFactory.getInstance().createLibraryElements(library)) {
final String dir = element.getFilesKind(artifactManager.getResolvingContext()).containsDirectoriesWithClasses() ? "classes" : "lib";
artifactManager.addElementsToDirectory(artifact, "WEB-INF/" + dir, element);
}
}
Aggregations