protected static boolean parseSqoopCommandArguments(String command, String[] sqoopArguments, List<String> runtimeArguments) {
		boolean connectProvided = false;
		boolean connectNeeded = false;
		if (command.toLowerCase().startsWith("import") || command.toLowerCase().startsWith("export") ||
				command.toLowerCase().startsWith("create") || command.toLowerCase().startsWith("codegen") ||
				command.toLowerCase().startsWith("list")) {
			connectNeeded = true;
		}
		for (int i = 0; i < sqoopArguments.length; i++) {
			if (sqoopArguments[i].startsWith("--connect") || sqoopArguments[i].startsWith("--options-file")) {
				connectProvided = true;
			}
			if (sqoopArguments[i].contains("\"")) {
				StringBuilder quotedArg = new StringBuilder();
				while(i < sqoopArguments.length) {
					if (quotedArg.length() > 0) {
						quotedArg.append(" ");
					}
					quotedArg.append(sqoopArguments[i]);
					if (sqoopArguments[i].endsWith("\"")) {
						break;
					}
					i++;
				}
				runtimeArguments.add(quotedArg.toString());
			}
			else {
				runtimeArguments.add(sqoopArguments[i]);
			}
		}
		return connectNeeded && !connectProvided;
	}
Class for running Sqoop tool.

@since 1.1
@author Thomas Risberg
extensions/spring-xd-extension-sqoop/src/main/java/org/springframework/xd/sqoop/SqoopRunner.java