Use the absolute path when passing parameters to the Loader
Somehow the relative path stopped working and I have zero interest in figuring out why right now.
- Id
- 4dbe6a1d389eb267d32deeb1ae4033ef9022c803
- Author
- Caio
- Commit time
- 2019-01-25T19:24:24+01:00
Modified pom.xml
<argument>-Xmx512m</argument>
<argument>-Xms512m</argument>
<argument>-Dlogback.configurationFile=src/test/resources/logback-test.xml</argument>
- <argument>-Dcerberus.recipes.filename=tmp/document.jsonlines</argument>
- <argument>-Dcerberus.recipes.datadir=tmp/hue</argument>
+ <argument>-Dcerberus.recipes.filename=${project.basedir}/tmp/document.jsonlines</argument>
+ <argument>-Dcerberus.recipes.datadir=${project.basedir}/tmp/hue</argument>
<argument>co.caio.cerberus.Loader</argument>
</arguments>
</configuration>
Modified src/main/java/co/caio/cerberus/boot/Renderer.java
}
}
- // FIXME test this
private Iterable<RecipeMetadata> renderRecipes(List<SearchResultRecipe> recipes) {
var recipeIds = recipes.stream().map(SearchResultRecipe::recipeId).collect(Collectors.toList());
return db.findAllById(recipeIds);