Search in sources :

Example 1 with BuildArtifactsBeforeRunTask

use of com.intellij.packaging.impl.run.BuildArtifactsBeforeRunTask in project azure-tools-for-java by Microsoft.

the class BeforeRunTaskUtils method createIntellijBuildTask.

@NotNull
public static BeforeRunTask<?> createIntellijBuildTask(@NotNull Artifact artifact, @NotNull RunConfiguration config) {
    final BuildArtifactsBeforeRunTaskProvider provider = new BuildArtifactsBeforeRunTaskProvider(config.getProject());
    final BuildArtifactsBeforeRunTask task = provider.createTask(config);
    task.addArtifact(artifact);
    return task;
}
Also used : BuildArtifactsBeforeRunTask(com.intellij.packaging.impl.run.BuildArtifactsBeforeRunTask) BuildArtifactsBeforeRunTaskProvider(com.intellij.packaging.impl.run.BuildArtifactsBeforeRunTaskProvider) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

BuildArtifactsBeforeRunTask (com.intellij.packaging.impl.run.BuildArtifactsBeforeRunTask)1 BuildArtifactsBeforeRunTaskProvider (com.intellij.packaging.impl.run.BuildArtifactsBeforeRunTaskProvider)1 NotNull (org.jetbrains.annotations.NotNull)1