Files
VisualSapfor/src/Common/Passes/All/LocalSingleCommand.java

16 lines
459 B
Java
Raw Normal View History

package Common.Passes.All;
2023-09-17 22:13:42 +03:00
import Common.Utils.Utils;
import Common.Passes.ProcessPass;
2023-09-17 22:13:42 +03:00
public class LocalSingleCommand extends ProcessPass<String> {
String command = "";
@Override
protected boolean canStart(Object... args) throws Exception {
command = (String) args[0];
return true;
}
@Override
protected void body() throws Exception {
target = Utils.readAllOutput(Runtime.getRuntime().exec(command));
}
}