Skip to content

Commit cdb1da8

Browse files
committed
[exercism#89] Adjust README to reflect moved dir.
- fixed a couple typos too.
1 parent 1b02854 commit cdb1da8

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ If you want more details, check out the [x-api README](https://github.com/exerci
102102
git remote add upstream https://github.com/exercism/xjava.git
103103
git pull --rebase upstream/master
104104
cd ~/workspace/exercism/x-api/tracks
105-
rm -rf java
105+
mv java java-original
106106
ln -s ../../xjava java
107107
```
108108

@@ -127,6 +127,7 @@ The rootproject is a container for the problem subprojects.
127127

128128
### The Problem Subprojects
129129

130+
The `exercises` subdirectory contains all of the problem subprojects.
130131
Each problem/subproject is a subdirectory of the same name as its slug.
131132

132133
* it's `build.gradle` names dependencies required to work that problem.
@@ -142,14 +143,14 @@ Each problem/subproject has three source sets:
142143
To run all the tests against example code:
143144

144145
```
145-
cd ~/workspace/exercism/xjava
146+
cd ~/workspace/exercism/xjava/exercises
146147
gradle assemble check
147148
```
148149

149150
To run the test against just one problem, run gradle from within that directory:
150151

151152
```
152-
cd ~/workspace/exercism/xjava/bob
153+
cd ~/workspace/exercism/xjava/exercises/bob
153154
gradle assemble check
154155
```
155156

@@ -182,9 +183,9 @@ and if you review the logs of your x-api, you'll find:
182183
This is because some files generated by the build can't be served from the x-api. That's actually fine. To fix this, simply make sure you do a clean in your xjava repo before you fetch:
183184

184185
```
185-
cd ~/workspace/exercism/xjava
186+
cd ~/workspace/exercism/xjava/exercises
186187
gradle clean
187-
cd ~/worksapce/exercism/exercises
188+
cd ~/workspace/exercism/exercises
188189
exercism fetch java bob
189190
```
190191

@@ -208,7 +209,14 @@ Before you submit a pull request, please ensure:
208209
./bin/build.sh
209210
```
210211

211-
verify that the script runs successfully.
212+
...verify that the script runs successfully.
213+
214+
Then, since your x-api is serving from this directory, make it pristine (see [Tip: gradle clean before exercism fetch](#tip-gradle-clean-before-exercism-fetch) for details):
215+
216+
```
217+
cd ~/workspace/exercism/xjava/exercises
218+
gradle clean
219+
```
212220

213221
2. **Fetch the problem from your local x-api, using the CLI.**
214222

@@ -223,7 +231,7 @@ Before you submit a pull request, please ensure:
223231

224232
```
225233
cd ~/workspace/exercism/exercises/java/<problem-slug>
226-
cp ../../../xjava/<problem-slug>/src/example/java/* src/main/java
234+
cp ~/workspace/exercism/xjava/exercises/<problem-slug>/src/example/java/* src/main/java
227235
gradle check
228236
```
229237

0 commit comments

Comments
 (0)