упорядочил папки с кодом.
This commit is contained in:
15
src/Common/Passes/All/LocalSingleCommand.java
Normal file
15
src/Common/Passes/All/LocalSingleCommand.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package Common.Passes.All;
|
||||
import Common.Utils.Utils;
|
||||
import Common.Passes.ProcessPass;
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user