package Ġcirc let . plugins . pipelines . services . run Ċ Ċ import Ġcom . intellij . execution .* Ċ import Ġcom . intellij . execution . exec utors .* Ċ import Ġcom . intellij . openapi . project .* Ċ Ċ object ĠCirc let Run Configuration Utils Ġ{ ĊĠĠĠ Ġfun Ġrun ( task Name : ĠString , Ġproject : ĠProject ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrun Manager Ġ= ĠRun Manager . getInstance ( project ) ĊĠĠĠĠĠĠĠ Ġval Ġsettings Ġ= Ġrun Manager . create Configuration (" Run Ġtask Ġ$ task Name ", ĠCirc let Run Configuration Type :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġconfiguration Ġ= Ġsettings . configuration Ġas ĠCirc let Run Configuration ĊĠĠĠĠĠĠĠ Ġconfiguration . options . task Name Ġ= Ġtask Name ĊĠĠĠĠĠĠĠ Ġrun Manager . add Configuration ( settings ) ĊĠĠĠĠĠĠĠ Ġrun Manager . selected Configuration Ġ= Ġsettings ĊĠĠĠĠĠĠĠ ĠProgram Runner Util . execute Configuration ( settings , ĠDefault Run Executor . get Run Executor Instance ()) ĊĠĠĠ Ġ} Ċ } Ċ