16 lines
346 B
Go
16 lines
346 B
Go
package main
|
|
|
|
import (
|
|
"os/exec"
|
|
"strconv"
|
|
)
|
|
|
|
func gradleCommand(work, task string) *exec.Cmd {
|
|
return exec.Command("cmd.exe", "/d", "/c", "gradlew.bat", task, "--console=plain", "--no-daemon")
|
|
}
|
|
func killTree(c *exec.Cmd) {
|
|
if c.Process != nil {
|
|
_ = exec.Command("taskkill.exe", "/PID", strconv.Itoa(c.Process.Pid), "/T", "/F").Run()
|
|
}
|
|
}
|