-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,11 +76,17 @@ In `build.gradle`, these variables are filled: | |
"springerNatureAPIKey" : System.getenv('SpringerNatureAPIKey') | ||
``` | ||
|
||
The `BuildInfo` class reads from that file and the key needs to be put into the map of default api keys in `JabRefCliPreferences::getDefaultFetcherKeys` | ||
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 | ||
keys.put(SpringerFetcher.FETCHER_NAME, buildInfo.springerNatureAPIKey); | ||
``` | ||
Check failure on line 83 in docs/code-howtos/fetchers.md GitHub Actions / MarkdownFenced code blocks should be surrounded by blank lines
|
||
The fetcher api key can then be obtained by calling the preferences. | ||
|
||
```java | ||
importerPreferences.getApiKey(SpringerFetcher.FETCHER_NAME); | ||
``` | ||
|
||
|
||
Check failure on line 90 in docs/code-howtos/fetchers.md GitHub Actions / MarkdownMultiple consecutive blank lines
|
||
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. | ||
|
||
|