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