mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Source generation build fix with backslash file-separator
This commit is contained in:
@ -364,7 +364,8 @@ val files = project
|
|||||||
val files = (base ** (_.isFile)).pair(sbt.io.Path.relativeTo(base))
|
val files = (base ** (_.isFile)).pair(sbt.io.Path.relativeTo(base))
|
||||||
val lines = files.toList.map(_._2).map { s =>
|
val lines = files.toList.map(_._2).map { s =>
|
||||||
val ident = s.replaceAll("[^a-zA-Z0-9_]+", "_")
|
val ident = s.replaceAll("[^a-zA-Z0-9_]+", "_")
|
||||||
ident -> s"""val $ident = createUrl("$s")"""
|
val sanitized = s.replace('\\', '/')
|
||||||
|
ident -> s"""val $ident = createUrl("$sanitized")"""
|
||||||
}
|
}
|
||||||
val content = s"""package docspell.files
|
val content = s"""package docspell.files
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user