Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Enable file in project directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Oct 1, 2017
1 parent 68f88df commit c51553e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class GradeTask extends DefaultTask {
def response = client.execute(gradePost)
} catch (Exception e) { }
}
if (gradeConfiguration.reporting.directory) {
if (gradeConfiguration.reporting.containsKey("directory")) {
def filename = Paths.get(gradeConfiguration.reporting.directory, gradeConfiguration.students.join("_") + ".json")
def file = new File(filename.toString())
def writer = file.newWriter()
Expand Down

0 comments on commit c51553e

Please sign in to comment.