Search in sources :

Example 6 with EtlasCommand

use of com.typelead.gradle.utils.EtlasCommand in project gradle-eta by typelead.

the class EtaRepl method repl.

@TaskAction
public void repl() {
    final File workingDir = getDestinationDir();
    /* Fork an etlas process to start the repl.  */
    final EtlasCommand etlas = new EtlasCommand(project);
    etlas.getWorkingDirectory().set(workingDir);
    String packageName = getPackageName();
    etlas.repl(packageName == null ? null : EtlasCommand.libTarget(packageName), getArgs());
}
Also used : File(java.io.File) EtlasCommand(com.typelead.gradle.utils.EtlasCommand) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

EtlasCommand (com.typelead.gradle.utils.EtlasCommand)6 TaskAction (org.gradle.api.tasks.TaskAction)6 File (java.io.File)5 Project (org.gradle.api.Project)4 RegularFile (org.gradle.api.file.RegularFile)4 EtaConfiguration (com.typelead.gradle.eta.api.EtaConfiguration)3 Configuration (org.gradle.api.artifacts.Configuration)3 OutputDirectory (org.gradle.api.tasks.OutputDirectory)3 OutputFile (org.gradle.api.tasks.OutputFile)3 EtaDependency (com.typelead.gradle.eta.api.EtaDependency)2 EtaExtension (com.typelead.gradle.eta.api.EtaExtension)2 DependencyUtils (com.typelead.gradle.eta.internal.DependencyUtils)2 CabalHelper (com.typelead.gradle.utils.CabalHelper)2 WriteResult (com.typelead.gradle.utils.CabalHelper.WriteResult)2 IOException (java.io.IOException)2 LinkedHashSet (java.util.LinkedHashSet)2 Set (java.util.Set)2 Collectors (java.util.stream.Collectors)2 DefaultTask (org.gradle.api.DefaultTask)2 GradleException (org.gradle.api.GradleException)2