public GrinderProperties prepareTest(PerfTest perfTest) {
		try {
			proxy(this).markStatusAndProgress(perfTest,
				PREPARE_DISTRIBUTION, "Distribution files are being prepared.");
			cleanUpPerftestDistributionFolder(perfTest);
			ScriptHandler prepareDistribution = prepareDistribution(perfTest);
			GrinderProperties grinderProperties = getGrinderProperties(perfTest, prepareDistribution);
			proxy(this).markStatusAndProgress(perfTest,
				PREPARE_DISTRIBUTION, "Distribution files are prepared.");
			return grinderProperties;
		} catch (Throwable e) {
			throw new PerfTestPrepareException(e.getMessage(), e);
		}
	}
Prepare files for distribution. This method stores the files on the path
${NGRINDER_HOME}/perftest/{test_id}/dist folder.

@param perfTest perfTest
@return File location in which the perftest script and resources are distributed.
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java