Basic Command-Line Usage
- Create a grader
- Create a submission
-
Download the latest release
Tip
The jagr-bin package is available on the AUR for Arch Linux users.
-
Create an empty working directory and copy the Jagr jar into it
-
Run
java -jar Jagr-<version>.jar, which should create the following folder structure:Text Only./graders -- input folder for grader jars (tests and rubric providers) ./libs -- for libraries that are required on each submission's classpath ./logs -- saved log files ./rubrics -- the output folder for graded rubrics ./submissions -- input folder for submissions ./submissions-export -- output folder for submissions -
Prepare the grader and submission for grading
- Prepare the grader jar by running the
graderBuildGraderGradle task in the grader project - Prepare the submission jar by running the
mainBuildSubmissionGradle task in the submission project - Locate the respective jars in the
build/libsfolder of the grader and submission projects
- Prepare the grader jar by running the
-
Copy the grader jar into the
gradersfolder and the submission jar into thesubmissionsfolder. If the grader requires any runtime dependencies (that are not already included in Jagr), copy them into thelibsfolderTip
The
graderBuildLibsgradle task provided by the jagr-gradle plugin can be used to generate a fat jar containing all runtime dependencies. This task automatically excludes dependencies already present in the Jagr runtime. -
Run
java -jar Jagr-x-x-x.jaragain to grade the submission