Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Upgraded to Apache Commons Configuration 2.1. Fixed bug with settings. Load YAML files. Removed IDE-gone-mad imports.

Authordjarvis <email>
Date2016-12-14 22:38:06 GMT-0800
Commit693b1c401dab986f71598732e003705066f1b35f
Parent5a3ec32
Delta17 lines added, 3 lines removed, 14-line increase
src/main/resources/com/scrivenvar/settings.properties
preferences.root.state=state
preferences.root.options=options
+preferences.root.definition.source=definition.source
# ########################################################################
src/main/java/com/scrivenvar/test/TestVariableNameProcessor.java
import org.ahocorasick.trie.*;
import org.ahocorasick.trie.Trie.TrieBuilder;
-import static org.apache.commons.lang.RandomStringUtils.randomNumeric;
-import org.apache.commons.lang.StringUtils;
+import static org.apache.commons.lang3.RandomStringUtils.randomNumeric;
+import org.apache.commons.lang3.StringUtils;
/**
src/main/java/com/scrivenvar/definition/DefinitionSource.java
*/
public TreeView<String> asTreeView() throws IOException;
-
+
/**
* Returns all the strings with their values resolved in a flat hierarchy.
* This copies all the keys and resolved values into a new map.
*
* @return The new map created with all values having been resolved,
* recursively.
*/
public Map<String, String> getResolvedMap();
+
+ /**
+ * Must return a re-loadable path to the data source. For a file, this is the
+ * absolute file path. For a database, this could be the JDBC connection. For
+ * a web site, this might be the GET url.
+ *
+ * @return A non-null, non-empty string.
+ */
+ @Override
+ public String toString();
}
scrivenvar.yaml
+application:
+ title: Scrivenvar
+