Skip to content

Commit c6a27c0

Browse files
committed
Allow overriding Bible name
This works for all import formats. When the import format does not provide a Bible name (or a misleading one) and the export format requires one (which is hard to edit later), the System Property `biblemulticonverter.bible.name` can be used to override the bible name, therefore avoiding the need to convert to an intermediate format. Closes #103.
1 parent 585e85a commit c6a27c0

File tree

1 file changed

+1
-1
lines changed
  • biblemulticonverter/src/main/java/biblemulticonverter/data

1 file changed

+1
-1
lines changed

biblemulticonverter/src/main/java/biblemulticonverter/data/Bible.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Bible {
1818
private final List<Book> books;
1919

2020
public Bible(String name) {
21-
this.name = Utils.validateString("name", name, Utils.NORMALIZED_WHITESPACE_REGEX);
21+
this.name = Utils.validateString("name", System.getProperty("biblemulticonverter.bible.name", name), Utils.NORMALIZED_WHITESPACE_REGEX);
2222
this.books = new ArrayList<Book>();
2323
}
2424

0 commit comments

Comments
 (0)