Преглед изворни кода

[#89] Adjust README to reflect moved dir.

- fixed a couple typos too.
John S. Ryan пре 10 година
родитељ
комит
cdb1da854b
1 измењених фајлова са 15 додато и 7 уклоњено
  1. 15
    7
      README.md

+ 15
- 7
README.md Прегледај датотеку

102
 	git remote add upstream https://github.com/exercism/xjava.git
102
 	git remote add upstream https://github.com/exercism/xjava.git
103
 	git pull --rebase upstream/master
103
 	git pull --rebase upstream/master
104
 	cd ~/workspace/exercism/x-api/tracks
104
 	cd ~/workspace/exercism/x-api/tracks
105
-	rm -rf java
105
+	mv java java-original
106
 	ln -s ../../xjava java
106
 	ln -s ../../xjava java
107
 	```
107
 	```
108
 
108
 
127
 
127
 
128
 ### The Problem Subprojects
128
 ### The Problem Subprojects
129
 
129
 
130
+The `exercises` subdirectory contains all of the problem subprojects.
130
 Each problem/subproject is a subdirectory of the same name as its slug.
131
 Each problem/subproject is a subdirectory of the same name as its slug.
131
 
132
 
132
   * it's `build.gradle` names dependencies required to work that problem.
133
   * it's `build.gradle` names dependencies required to work that problem.
142
 To run all the tests against example code:
143
 To run all the tests against example code:
143
 
144
 
144
 ```
145
 ```
145
-cd ~/workspace/exercism/xjava
146
+cd ~/workspace/exercism/xjava/exercises
146
 gradle assemble check
147
 gradle assemble check
147
 ```
148
 ```
148
 
149
 
149
 To run the test against just one problem, run gradle from within that directory:
150
 To run the test against just one problem, run gradle from within that directory:
150
 
151
 
151
 ```
152
 ```
152
-cd ~/workspace/exercism/xjava/bob
153
+cd ~/workspace/exercism/xjava/exercises/bob
153
 gradle assemble check
154
 gradle assemble check
154
 ```
155
 ```
155
 
156
 
182
 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:
183
 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:
183
 
184
 
184
 ```
185
 ```
185
-cd ~/workspace/exercism/xjava
186
+cd ~/workspace/exercism/xjava/exercises
186
 gradle clean
187
 gradle clean
187
-cd ~/worksapce/exercism/exercises
188
+cd ~/workspace/exercism/exercises
188
 exercism fetch java bob
189
 exercism fetch java bob
189
 ```
190
 ```
190
 
191
 
208
    ./bin/build.sh
209
    ./bin/build.sh
209
    ```
210
    ```
210
 
211
 
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
+   ```
212
 
220
 
213
 2. **Fetch the problem from your local x-api, using the CLI.**
221
 2. **Fetch the problem from your local x-api, using the CLI.**
214
 
222
 
223
 
231
 
224
    ```
232
    ```
225
    cd ~/workspace/exercism/exercises/java/<problem-slug>
233
    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
227
    gradle check
235
    gradle check
228
    ```
236
    ```
229
 
237