public int aggregateResults() {

		if(!baseDir.toFile().exists() || !baseDir.toFile().isDirectory()){
			System.out.println("The specified path does not point to a directory");
			return -1;
		}

		File[] projectFolders = baseDir.toFile().listFiles(new FileFilter() {			
			@Override
			public boolean accept(File arg0) {
				if(arg0.isDirectory())
					return true;
				return false;
			}
		});

		int result = 0;
		for(File folder:projectFolders){
			result = parseStatistics(folder);
			if(result == -1){
				System.out.println("error in project: "+folder);				
			}


			result = parseSolution(folder);
			if(result == -1){
				System.out.println("error in project: "+folder);
			}
		}

		System.out.println("Aggregating Statistics...");
		result = exportStatistics();
		if(result == -1)
			return result;

		System.out.println("Aggregating Solutions...");
		result = exportSolutionAggregation();
		if(result == -1)
			return result;

		

		return result;
	}