Skip to content

Commit

Permalink
Adapt devdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed Oct 14, 2024
1 parent 199269b commit e4fec55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/code-howtos/fetchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ In `build.gradle`, these variables are filled:
"springerNatureAPIKey" : System.getenv('SpringerNatureAPIKey')
```

The `BuildInfo` class reads from that file.
The `BuildInfo` class reads from that file and the key needs to be put into the map of default api keys in `JabRefCliPreferences::getDefaultFetcherKeys`

```java
Injector.instantiateModelOrService(BuildInfo.class).springerNatureAPIKey
keys.put(SpringerFetcher.FETCHER_NAME, buildInfo.springerNatureAPIKey);
```

When executing `./gradlew run`, gradle executes `processResources` and populates `build/build.properties` accordingly. However, when working directly in the IDE, Eclipse keeps reading `build.properties` from `src/main/resources`. In IntelliJ, the task `JabRef Main` is executing `./gradlew processResources` before running JabRef from the IDE to ensure the `build.properties` is properly populated.
Expand Down

0 comments on commit e4fec55

Please sign in to comment.