JaysGitLab / cs-5666-scatt-jacc-caj

cs-5666-scatt-jacc-caj created by GitHub Classroom
1 stars 1 forks source link

One report .txt for each sb2 #37

Open bclinthall opened 7 years ago

bclinthall commented 7 years ago

This is basically what's needed. I just want to wait till some pull requests shake out before putting it in.

void writeIndividualProjectReports(String destDirPath, List<Sb2> sb2List){
    for (int i=0; i<sb2List.size(); i++) {
        Sb2 sb2 = sb2List.get(i);
        File reportFile = new File(destDirPath, sb2.getName()+Reporter.REPORT_SUFFIX);
        PrintWriter pw = new PrintWriter(reportFile);
        reportProject(-1, pw, sb2);
    }
}