Uses of Class
org.buildobjects.process.ProcBuilder
-
Uses of ProcBuilder in org.buildobjects.process
Methods in org.buildobjects.process that return ProcBuilderModifier and TypeMethodDescriptionProcBuilder.clearEnvironment()Clears the environment before setting new variables.ProcBuilder.ignoreExitStatus()Ignore the error status returned from this commandAdds another argumentAdd multiple argsProcBuilder.withErrorConsumer(StreamConsumer errorConsumer) Process the error output with given consumer objectProcBuilder.withErrorStream(OutputStream stderr) Redirecting the error output.ProcBuilder.withExitStatuses(int[] exitstatuses) Deprecated.Please use the variants with a set or vargs parametersProcBuilder.withExpectedExitStatuses(int... expectedExitStatuses) Define the valid exit status codes for the command Convenience method taking varargs.ProcBuilder.withExpectedExitStatuses(Set<Integer> expectedExitStatuses) Define the valid exit status codes for the commandProcBuilder.withInput(byte[] input) Supply the input as byte[]Supply the input as stringProcBuilder.withInputStream(InputStream stdin) Take the input for the program from a given InputStreamProcBuilder.withNoTimeout()Disable timeout for the operation.ProcBuilder.withOutputConsumer(StreamConsumer outputConsumer) Process the standard output with the given consumer objectProcBuilder.withOutputStream(OutputStream stdout) Redirecting the standard output.ProcBuilder.withTimeoutMillis(long timeoutMillis) Specify a timeout for the operation.Add a variable to the process's environmentAdd multiple variables to the process's environmentProcBuilder.withWorkingDirectory(File directory) Override the wokring directory