This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.onenow.reactive; | |
import io.reactivex.Observable; | |
import java.io.Serializable; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
/** | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!groovy | |
/** | |
* Process a command in the terminal and return standard output | |
*/ | |
import org.apache.commons.io.IOUtils | |
// https://docs.oracle.com/javase/8/docs/api/java/lang/ProcessBuilder.html#directory-java.io.File- | |
// https://alvinalexander.com/java/java-exec-processbuilder-process-1 | |
def call(commandStr, workingDir) { |