public File collect(Path projectRoot) throws IOException, ZipException {

		DataArchiver dataArchiver = new DataArchiver(projectRoot);
		try {
			ProjectFileVisitor fileVisitor = new ProjectFileVisitor(
					dataArchiver, projectRoot);

			Files.walkFileTree(projectRoot, fileVisitor);

			dataArchiver.add("DWFileList.txt", fileVisitor.getFileList());
			return dataArchiver.createArchive();
		} finally {
			dataArchiver.dispose();
		}
	}
public File collect ( Path projectRoot ) throws IOException , ZipException { DataArchiver dataArchiver = new DataArchiver ( projectRoot ) ; try { ProjectFileVisitor fileVisitor = new ProjectFileVisitor ( dataArchiver , projectRoot ) ; Files . walkFileTree ( projectRoot , fileVisitor ) ; dataArchiver . add ( "DWFileList.txt" , fileVisitor . getFileList ( ) ) ; return dataArchiver . createArchive ( ) ; } finally { dataArchiver . dispose ( ) ; } }
Gathers needed information about project

@param projectRoot
Project root path
@return archive containing the collected data
@throws IOException
@throws ZipException