stevedlawrence opened a new issue, #65:
URL: https://github.com/apache/daffodil-sbt/issues/65
Nowhere in the readme do make it clear how to set the config parameter in
`DaffodilBuildInfo`, we just say it's a "path to a config file", but there are
lots of different paths that one might consider (e.g. classpath resource path,
relative file path, absolute file path). Using an absolute file is the ideal
approach, and it should be created using SBT settings to ensure it always
works, even in cases where a schema project is added as a subproject of another
repo.
The two best ways to do this:
1. For a config file that lives in `src/main/resources`:
```scala
config = Some(resourceDirectory.value / "path" / "to" / "config.xml")
```
2. For a config file that lives in the root of the repository:
```scala
config = Some(baseDirectory.value / "path" / "to" / "config.xml")
```
We should probably include these two examples in the readme.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]