|
1 | 1 | #Java Koans [](https://travis-ci.org/darsen/java-koans) |
2 | 2 |
|
3 | | -Running Instructions: |
4 | | -===================== |
| 3 | +Quick Start: |
5 | 4 | * Download and unarchive the contents of the most recent java-koans in development from: |
6 | | -https://github.com/matyb/java-koans/archive/master.zip |
7 | | -* Open a terminal and cd to the directory you unarchived: |
8 | | -```cd <the directory you just unarchived>``` |
9 | | -* Within it you'll find: |
10 | | - * *koans*: this directory contains the application and its lessons, it is all that is needed to advance through the koans themselves and **it can be distributed independently** |
11 | | - * *lib/koans-lib*: the directory for source code for the engine that executes the koans |
12 | | - * *lib/koans-tests*: the directory for tests to check the sanity of the application |
13 | | - * *lib/file-compiler*: the dynamic compiler module that loads newly saved java files into the JVM as classes |
14 | | - * *lib/file-monitor*: the file monitoring module for notifying the app when files are saved |
15 | | - * *lib/util*: application agnostic interfaces and utilities shared in projects |
| 5 | +https://github.com/takaczapka/java-koans/archive/master.zip |
| 6 | +* Open a console (termina) and cd to the directory you unarchived: |
| 7 | + ```cd <the directory you just unarchived>``` |
16 | 8 | * Change directory to the koans directory: ```cd koans``` |
17 | | -* If you are using windows enter: ```run.bat``` or ```./run.sh``` if you are using Mac or Linux. |
18 | 9 | * To export koans to run below command and open in IDE: |
19 | 10 | * IDEA IntelliJ: ```./gradlew idea (WINDOWS: gradlew.bat idea)``` |
20 | 11 | * Eclipse ```./gradlew eclipse (WINDOWS: gradlew.bat eclipse)``` |
21 | | - |
22 | | -Developing a Koan: |
23 | | -================== |
24 | | -* Follow any of the existing koans as an example to create a new class with koan methods (indicated by the @Koan annotation, they're public and specify no arguments) |
25 | | -* Define the order the koan suite (if it's new) will run in the koans/app/config/PathToEnlightenment.xml file |
26 | | -* Optionally you may use dynamic content in your lesson, examples are located in the XmlVariableInjector class (and Test) and the AboutKoans.java file |
27 | | - |
28 | | -Something's wrong: |
29 | | -================== |
30 | | -* If the koans app is constantly timing out compiling a koan, your computer may be too slow to compile the koan classes with the default timeout value. Update the compile_timeout_in_ms property in koans/app/config/config.properties with a larger value and try again. |
| 12 | +* Back to the console and run ```./run.sh``` (WINDOS: ```run.bat```) |
| 13 | +* Start hacking through |
0 commit comments