This repository is part of a series of Java tutorials for a Rational class written by Phill Conrad for CMPSC 56, a Java course taught in the Dept. of Computer Science at UC Santa Barbara.
- https://ucsb-cs56-pconrad.github.io/tutorials/rational/
- https://ucsb-cs56-pconrad.github.io/tutorials/rational_ex04/
Previous Repo | This Repo | Next Repo |
---|---|---|
cs56-rational-ex03 | cs56-rational-ex04 | cs56-rational-ex05 |
Previous Lesson | This Lesson | Next Lesson |
---|---|---|
rational_ex03 | rational_ex04 | rational_ex05 |
Once you clone this repo, these commands show how to compile and run the code inside. You need ant
to following these instructions; refer to cs56-rational-ex02 and the article on ant
for more information.
To do this: | Type this command: |
---|---|
Make a jar file | ant jar |
Run from the jar file | java -jar build/rational.jar |
Compile | ant compile |
See the targets in the ant file | ant -p |
Run the JUnit tests | ant test |
Produce Javadoc | ant javadoc |