use of com.intellij.openapi.externalSystem.service.execution.ExternalSystemBeforeRunTask in project azure-tools-for-java by microsoft.
the class BeforeRunTaskUtils method createGradleAssembleTask.
@NotNull
public static BeforeRunTask<?> createGradleAssembleTask(@NotNull ExternalProjectPojo project, @NotNull RunConfiguration config) {
final GradleBeforeRunTaskProvider provider = new GradleBeforeRunTaskProvider(config.getProject());
final ExternalSystemBeforeRunTask task = provider.createTask(config);
task.getTaskExecutionSettings().setExternalSystemIdString(GradleConstants.SYSTEM_ID.toString());
task.getTaskExecutionSettings().setExternalProjectPath(project.getPath());
task.getTaskExecutionSettings().setTaskNames(Collections.singletonList(GRADLE_TASK_ASSEMBLE));
return task;
}
use of com.intellij.openapi.externalSystem.service.execution.ExternalSystemBeforeRunTask in project azure-tools-for-java by Microsoft.
the class BeforeRunTaskUtils method createGradleAssembleTask.
@NotNull
public static BeforeRunTask<?> createGradleAssembleTask(@NotNull ExternalProjectPojo project, @NotNull RunConfiguration config) {
final GradleBeforeRunTaskProvider provider = new GradleBeforeRunTaskProvider(config.getProject());
final ExternalSystemBeforeRunTask task = provider.createTask(config);
task.getTaskExecutionSettings().setExternalSystemIdString(GradleConstants.SYSTEM_ID.toString());
task.getTaskExecutionSettings().setExternalProjectPath(project.getPath());
task.getTaskExecutionSettings().setTaskNames(Collections.singletonList(GRADLE_TASK_ASSEMBLE));
return task;
}
Aggregations