|
|
@@ -1,4 +1,4 @@
|
|
1
|
|
-# xJava [](https://travis-ci.org/exercism/xjava) [](https://gitter.im/exercism/xjava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
|
1
|
+# java [](https://travis-ci.org/exercism/java) [](https://gitter.im/exercism/xjava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
2
|
2
|
|
|
3
|
3
|
Source for Exercism Exercises in Java.
|
|
4
|
4
|
|
|
|
@@ -32,13 +32,13 @@ To submit a fix for an existing exercise or port an exercise to Java with the le
|
|
32
|
32
|
1. **Ensure you have the basic Java tooling installed:** JDK 1.8+, an editor and Gradle 2.x.
|
|
33
|
33
|
|
|
34
|
34
|
(see [exercism.io: Installing Java](http://exercism.io/languages/java/installing))
|
|
35
|
|
-- **Setup a branch on a fork of [exercism/xjava](https://github.com/exercism/xjava) on your computer.**
|
|
|
35
|
+- **Setup a branch on a fork of [exercism/java](https://github.com/exercism/java) on your computer.**
|
|
36
|
36
|
|
|
37
|
37
|
See [GitHub Help: Forking](https://help.github.com/articles/fork-a-repo/). Use those instructions (in conjunction with [Exercism Contributing Guide](https://github.com/exercism/x-common/blob/master/CONTRIBUTING.md#git-basics)) to:
|
|
38
|
38
|
* "fork" a repository on GitHub;
|
|
39
|
39
|
- install `git`;
|
|
40
|
40
|
- "clone" a copy of your fork;
|
|
41
|
|
- - configure an "upstream remote" (in this case, `exercism/xjava`);
|
|
|
41
|
+ - configure an "upstream remote" (in this case, `exercism/java`);
|
|
42
|
42
|
- create a branch to house your work
|
|
43
|
43
|
- **Write the codes.** Do your work on that branch you just created.
|
|
44
|
44
|
|
|
|
@@ -59,8 +59,8 @@ To submit a fix for an existing exercise or port an exercise to Java with the le
|
|
59
|
59
|
|
|
60
|
60
|
There are two objectives to the design of this build:
|
|
61
|
61
|
|
|
62
|
|
-1. when a problem is built from within the xjava repo, the tests run against the "example" code (i.e. when you, the contributor, are developing the exercise);
|
|
63
|
|
-2. when a problem is built outside the xjava repo (when a participant is solving the exercise), the tests run against the "main" code.
|
|
|
62
|
+1. when a problem is built from within the `exercism/java` repo, the tests run against the "example" code (i.e. when you, the contributor, are developing the exercise);
|
|
|
63
|
+2. when a problem is built outside the `exercism/java` repo (when a participant is solving the exercise), the tests run against the "main" code.
|
|
64
|
64
|
|
|
65
|
65
|
This repo is a multi-project gradle build.
|
|
66
|
66
|
|
|
|
@@ -109,10 +109,10 @@ and if you review the logs of your x-api, you'll find:
|
|
109
|
109
|
2015-09-06 15:21:01 - JSON::GeneratorError - source sequence is illegal/malformed utf-8:
|
|
110
|
110
|
```
|
|
111
|
111
|
|
|
112
|
|
-This is because some files generated by the build can't be served from the x-api. This is by design: the CLI does not serve binaries. To fix this, simply make sure you do a clean in your `xjava` repo before you fetch:
|
|
|
112
|
+This is because some files generated by the build can't be served from the x-api. This is by design: the CLI does not serve binaries. To fix this, simply make sure you do a clean in your `exercism/java` repo before you fetch:
|
|
113
|
113
|
|
|
114
|
114
|
```
|
|
115
|
|
-cd ~/workspace/exercism/xjava/exercises
|
|
|
115
|
+cd ~/workspace/exercism/java/exercises
|
|
116
|
116
|
gradle clean
|
|
117
|
117
|
cd ~/workspace/exercism/exercises
|
|
118
|
118
|
exercism fetch java bob
|