@@ -152,3 +152,67 @@ run the installer; accept all the defaults.
152152
1531536 . Back in the "Default Project Structure" dialog, in the "Project language level:" section,
154154 select "8 - Lambdas, type annotations etc.". Click "OK".
155+
156+ ## How work with Exercism using Eclipse
157+
158+ This is not a guide about how to learn to use Eclipse. Please, consult
159+ your favorite search engine for that because there are plenty of tutorials
160+ already available.
161+
162+ Once you've got Eclipse installed and running, there are at least two ways
163+ to get exercism tasks into Eclipse: Letting gradle build Eclipse workspace
164+ for you and using Buildship Gradle plugin for Eclipse.
165+
166+ Firstly, a simpler way of doing things.
167+
168+ 1 . Fetch an exercise: ` exercism fetch java <exercise> `
169+ (see [ the list of available exercises] ( http://exercism.io/languages/java ) ).
170+
171+ 2 . Change to the directory containing the exercise: `cd ~ /exercism/java/
172+ <exercise >` (by default things will end up in ` ~ /exercism`).
173+
174+ 3 . Let Gradle prepare things for Eclipse: gradle eclipse.
175+
176+ 4 . Start Eclipse.
177+
178+ 5 . From the "File" menu select "Import".
179+
180+ 6 . Select "Existing Projects Into Workspace" as import source.
181+
182+ 7 . Browse the directory containing the exercise fetched during the
183+ step 1 to "Select root directory:".
184+
185+ 8 . Hit the button labeled "Finish".
186+
187+ Secondly, a slightly more difficult, but more "Eclipseish" way of
188+ doing things. This is for those who absolutely despise doing anything
189+ away from Eclipse.
190+
191+ 1 . Install "Buildship Gradle Integration plugin from Eclipse
192+ Marketplace (accessible from Help-menu, under Eclipse Marketplace).
193+
194+ In case you've been reading about the Gradle STS plugin, note that
195+ The Buildship Gradle Integration plugin replaces the Gradle STS plugin
196+ which is no longer maintained.
197+
198+ Start (or restart) Eclipse after the plugin has been installed.
199+
200+ 2 . Fetch an exercise: ` exercism fetch java <exercise> `
201+ (see [ the list of available exercises] ( http://exercism.io/languages/java ) ).
202+
203+ 3 . From the "File" menu select "Import".
204+
205+ 5 . Select "Gradle" > "Gradle Project" as your import source.
206+
207+ 6 . Browse the directory containing the exercise fetched during
208+ the step 1 to the "Project root directory:".
209+
210+ 7 . Hit the button labeled "Finish".
211+
212+ To me it seems that the simple way of doing things is, as usual, the better
213+ way of doing things. The only caveat I've found this far is that you have
214+ to run ` gradle eclipse ` every time you change something affecting Eclipse.
215+
216+ For most exercises there is no need to ever touch build.gradle or anything
217+ else besides the source files, so this looks like a minor hassle not often
218+ encountered.
0 commit comments