use of de.janthomae.leiningenplugin.run.LeiningenRunnerParameters in project intellij-leiningen-plugin by derkork.
the class RunBuildAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent anActionEvent) {
Project project = anActionEvent.getData(PlatformDataKeys.PROJECT);
List<String> goals = anActionEvent.getData(LeiningenDataKeys.LEININGEN_GOALS);
if (goals == null || goals.isEmpty()) {
return;
}
LeiningenProject leiningenProject = anActionEvent.getData(LeiningenDataKeys.LEININGEN_PROJECT);
if (leiningenProject == null) {
return;
}
LeiningenRunnerParameters params = new LeiningenRunnerParameters(goals, leiningenProject.getWorkingDir());
LeiningenRunConfigurationType.runConfiguration(project, params, anActionEvent.getDataContext());
}
Aggregations