| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the source code for the Representer used by the Java track on Exercism. It takes a Java exercise solution submitted by a student and transforms it into a normalized representation.
If you want to contribute to the Java Representer, please refer to the Contributing Guide.
Start by building the JAR using Gradle:
./gradlew buildThen, run the Java Representer using build/libs/java-representer.jar. For example, to create a representation for a solution to the leap exercise, run:
java -jar build/libs/java-representer.jar leap /path/to/leap /path/to/output/folderThe Representer output can be found in the following files inside the /path/to/output/folder directory:
To run the Java Representer using Docker, first build and tag the Docker image:
docker build -t exercism/java-representer .Then, run the image and mount the directory of the solution to represent. For example, to create a representation for a solution to the leap exercise, run:
docker run -v /path/to/leap:/input -v /path/to/output/folder:/output exercism/java-representer leap /input /outputThe Representer output can be found in the following files inside the /path/to/output/folder directory:
To run the unit tests:
./gradlew testTo run the smoke tests using Docker:
bin/run-tests-in-docker.sh| Back | FazBrowse Home | New Git URL |