private List<String> getProcessOutput(Process p) {
		List<String> lines = new ArrayList<String>();
		if (p == null) {
			return lines;
		}
		InputStream in = p.getInputStream();
		BufferedReader reader = new BufferedReader(new InputStreamReader(in));
		String line;
		try {
			while ((line = reader.readLine()) != null) {
				lines.add(line);
			}
		}
		catch (IOException ignore) {
		}
		finally {
			try {
				reader.close();
			}
			catch (IOException e) {
			}
		}
		return lines;
	}
Program arguments for the application main class.
extensions/spring-xd-extension-spark/src/main/java/org/springframework/xd/spark/tasklet/SparkTasklet.java