Skip to content

Commit

Permalink
Move executable to tasks module.
Browse files Browse the repository at this point in the history
  • Loading branch information
buijs-dev committed Aug 13, 2022
1 parent 56a5627 commit a3004bf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 43 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ package dev.buijs.klutter.tasks

import dev.buijs.klutter.kore.KlutterException
import dev.buijs.klutter.kore.KlutterTask
import dev.buijs.klutter.kore.shared.execute
import mu.KotlinLogging
import java.io.BufferedOutputStream
import java.io.File
import java.io.FileOutputStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package dev.buijs.klutter.tasks

import dev.buijs.klutter.kore.KlutterTask
import dev.buijs.klutter.kore.project.Project
import dev.buijs.klutter.kore.shared.execute

/**
* Task to build a Klutter plugin project.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package dev.buijs.klutter.kore.shared
package dev.buijs.klutter.tasks

import dev.buijs.klutter.kore.KlutterException
import java.io.File
import java.util.concurrent.TimeUnit

fun String.execute(runFrom: File): String {
internal fun String.execute(runFrom: File): String {
val process = ProcessBuilder()
.command(split(" "))
.directory(runFrom)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
package dev.buijs.klutter.tasks

import dev.buijs.klutter.kore.KlutterTask
import dev.buijs.klutter.kore.shared.execute
import dev.buijs.klutter.kore.shared.verifyExists
import java.io.File

Expand Down

0 comments on commit a3004bf

Please sign in to comment.