I'm using the following code:
List<String> command = new ArrayList<String>();
command.add(antExecutable);
command.add("test");
ProcessBuilder processBuilder = new ProcessBuilder(command);
processBuilder.directory(new File("C:\\Testing\\projects...myPath..."));
Process process = processBuilder.start();
And the question is: How can i get the build-status? Is it failed or not..?