private void copyJobToHost(String moduleJobName, List<File> jarFiles, List<File> configFiles, String host) {
		Iterator<File> iter = jarFiles.iterator();
		while (iter.hasNext()) {
			File jarFile = iter.next();
			Assert.isTrue(jarFile.exists(), jarFile.getAbsoluteFile() + " must exist");
		}
		iter = configFiles.iterator();
		while (iter.hasNext()) {
			File configFile = iter.next();
			Assert.isTrue(configFile.exists(), configFile.getAbsoluteFile() + " must exist");
		}

		URI jobDir = getBaseJobDirUri(moduleJobName);
		createJobDirectoryStructure(jobDir, host);
		try {
			URI baseUri = new URI(jobDir.getPath()
					+ "/lib/");
			copyFilesToTarget(baseUri, jarFiles, host);
			baseUri = new URI(jobDir.getPath()
					+ "/config/");
			copyFilesToTarget(baseUri, configFiles, host);
		}
		catch (URISyntaxException e) {
			throw new IllegalStateException("Path to file is not properly formatted", e);
		}
	}
Copies the files required for a job module to the host.

@param moduleJobName The module's job name.
@param jarFiles a list of jar File Objects to be copied to a job's lib directory
@param configFiles a list of configuration files that need to be copied to the jobs config directory.
@param host the IP where the files should be copied.  If isEc2 flag is false this param is ignored.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractIntegrationTest.java