Commit 8e92558
committed
Only write META-INF/json/ if annotations were found
Originally, we wanted to run the EclipseHelper only for a limited set of
situations, using the test whether the first class path element of the
current class loader is a directory as an indicator that we're running
in Eclipse. We also wanted to use the time stamp of META-INF/json/ as an
indicator whether we need to index the annotations or not.
However, it turns out that we probably need to run in more situations,
e.g. because the directories in question might be first indexed during a
run inside a LegacyEnvironment.
So let's just punt and run the EclipseHelper in more situations, but
avoid to write META-INF/json/ unless we really have anything to write.
This addresses #33.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 843e23c commit 8e92558
File tree
2 files changed
+7
-2
lines changed- src/main/java/org/scijava/annotations
2 files changed
+7
-2
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
0 commit comments