![]() Map environment = processBuilder.environment() Įnvironment.forEach((key, value) -> (key + value)) ![]() In this next example, we're going to see how to modify the working environment.īut before we do that let's begin by taking a look at the kind of information we can find in the default environment: ProcessBuilder processBuilder = new ProcessBuilder() For example, if we have multiple threads accessing a ProcessBuilder instance concurrently then the synchronization must be managed externally. We should note that this class is NOT synchronized. Last but not least, to start a new process with what we've configured, we simply call start(). When we want to redirect the process builder’s standard input, output and error destination to a file, we have these three similar redirect methods at our disposal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |