@Override
	public List<FileEntry> getLibAndResourceEntries(User user, FileEntry scriptEntry, long revision) {
		List<FileEntry> fileList = newArrayList();
		String basePath = getBasePath(scriptEntry);
		FileEntryRepository fileEntryRepository = getFileEntryRepository();
		GitHubFileEntryRepository gitHubFileEntryRepository = getGitHubFileEntryRepository();

		List<FileEntry> resourcesFileEntry;
		List<FileEntry> javaFileEntry;
		List<FileEntry> groovyFileEntry;
		List<FileEntry> libFileEntry;

		if (isGitHubFileEntry(scriptEntry)) {
			try {
				javaFileEntry = gitHubFileEntryRepository.findAll(basePath + JAVA);
				resourcesFileEntry = gitHubFileEntryRepository.findAll(basePath + RESOURCES);
				groovyFileEntry = gitHubFileEntryRepository.findAll(basePath + GROOVY);
				libFileEntry = gitHubFileEntryRepository.findAll(basePath + LIB);
				fileList.add(gitHubFileEntryRepository.findOne(basePath + buildScriptName));
			} catch (IOException e) {
				throw new NGrinderRuntimeException(e);
			}
		} else {
			resourcesFileEntry = fileEntryRepository.findAll(user, basePath + RESOURCES, revision, true);
			javaFileEntry = fileEntryRepository.findAll(user, basePath + JAVA, revision, true);
			groovyFileEntry = fileEntryRepository.findAll(user, basePath + GROOVY, revision, true);
			libFileEntry = fileEntryRepository.findAll(user, basePath + LIB, revision, true);
			fileList.add(fileEntryRepository.findOne(user, basePath + buildScriptName, SVNRevision.create(revision)));
		}

		for (FileEntry eachFileEntry : resourcesFileEntry) {
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isResourceDistributable()) {
				fileList.add(eachFileEntry);
			}
		}

		for (FileEntry eachFileEntry : javaFileEntry) {
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isLibDistributable() && !eachFileEntry.getPath().equals(scriptEntry.getPath())) {
				fileList.add(eachFileEntry);
			}
		}

		for (FileEntry eachFileEntry : groovyFileEntry) {
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isLibDistributable() && !eachFileEntry.getPath().equals(scriptEntry.getPath())) {
				fileList.add(eachFileEntry);
			}
		}

		for (FileEntry eachFileEntry : libFileEntry) {
			FileType fileType = eachFileEntry.getFileType();
			if (fileType.isLibDistributable()) {
				fileList.add(eachFileEntry);
			}
		}

		return fileList;
	}
Check if copy dependencies is successful.

@param results Result of executing command created by {@link #getCopyDependenciesCommand} with OSHI.
ngrinder-controller/src/main/java/org/ngrinder/script/handler/GroovyProjectScriptHandler.java