private String createMultiProjectCSV ( ) { String csvData = null ; List < IProject > projects = null ; IProject project = null ; if ( isProjectKeyProvided ( ) ) { project = getExtractor ( ) . getProject ( getProjectKey ( ) ) ; projects = new ArrayList < IProject > ( ) ; projects . add ( project ) ; } else if ( isProjectKeyPatternProvided ( ) ) { projects = getExtractor ( ) . getProjects ( getProjectKeyPattern ( ) ) ; } else { projects = getExtractor ( ) . getAllProjects ( ) ; } csvData = getConverter ( ) . getCSVData ( projects , getMeasureObjects ( ) , isCleanValues ( ) , isSurroundFields ( ) ) ; LOG_INFO . info ( "Retrieved projects and generated CSV data." ) ; return csvData ; }
Create CSV by using all the projects provided .