Commit Graph

685 Commits

Author SHA1 Message Date
Havoc Pennington
fb2d68ff3c move newKey and newPath to Path from PathBuilder 2011-11-10 14:44:43 -05:00
Havoc Pennington
e0a49c06da Generalize path handling in substitutions
The new approach allows a mix of tokens in the substitution,
so you can refer to path elements that contain characters
that need quoting, including periods.
2011-11-10 14:42:05 -05:00
Havoc Pennington
cdcde9eebc pass an "includer" object down to the parser 2011-11-09 17:39:07 -05:00
Havoc Pennington
9509876ced add a TODO.txt to keep a few notes 2011-11-09 17:18:07 -05:00
Havoc Pennington
ecad3b31f0 move some stuff from ConfigImpl to a new class Loader
This is just to make ConfigImpl less of a random jumble.
2011-11-09 17:17:15 -05:00
Havoc Pennington
99d3c17fd0 add a bunch of small tests, fix related minor bugs
This brings code coverage up to a decent percentage
2011-11-09 16:42:58 -05:00
Havoc Pennington
0ec572c8d9 remove unused StackConfigObject and RawValueType 2011-11-09 11:11:24 -05:00
Havoc Pennington
58b19f5fa4 test and fix up the merged config object loaded from resources 2011-11-09 11:07:46 -05:00
Havoc Pennington
82586d7a02 make non-public getEnvironmentAsConfig and getSystemPropertiesAsConfig 2011-11-09 08:55:58 -05:00
Havoc Pennington
1b3d6d429f add jacoco code coverage plugin 2011-11-09 08:47:29 -05:00
Havoc Pennington
d0ac801720 various fixes suggested by findbugs 2011-11-09 00:07:43 -05:00
Havoc Pennington
cd6bf42cdc add findbugs sbt plugin 2011-11-09 00:07:21 -05:00
Havoc Pennington
2facd09341 add some more API docs 2011-11-08 22:30:08 -05:00
Havoc Pennington
84e37b3745 fix various warnings after enabling more warnings 2011-11-08 22:08:28 -05:00
Havoc Pennington
64c6c753e5 use internal AbstractConfigValue instead of public ConfigValue throughout implementation
In practice don't want to try to support custom ConfigValue.
2011-11-08 22:03:22 -05:00
Havoc Pennington
e11f117200 make ConfigTransformer private, don't think it's useful 2011-11-08 21:37:19 -05:00
Havoc Pennington
619ce047c2 fix the memory size and duration parsers
Switching to Java from Scala it's easy to get confused...
2011-11-08 21:36:49 -05:00
Havoc Pennington
c7c8c2ff14 Implement substitution in parser and config objects 2011-11-08 17:02:00 -05:00
Havoc Pennington
42b355deb1 Implement ${} substitutions in the tokenizer 2011-11-08 10:15:31 -05:00
Havoc Pennington
258449a051 use appendCodePoint(c) not append((char)c) 2011-11-08 09:19:34 -05:00
Havoc Pennington
9b2a96aef4 Make unquoted string values really work 2011-11-08 09:17:23 -05:00
Havoc Pennington
e3e1d7392d convenience functions to write tokens with fake origin in tests 2011-11-08 09:04:30 -05:00
Havoc Pennington
01cc2c755c Add support for unquoted string values 2011-11-07 23:02:38 -05:00
Havoc Pennington
fda3f7eead move tokenizer tests into their own file 2011-11-07 19:16:26 -05:00
Havoc Pennington
ff5bf095c7 add a test setup where files that should be parsed to same syntax tree are compared 2011-11-07 16:54:14 -05:00
Havoc Pennington
986e2a24cb add SyntaxFlavor to the parser (not used for anything yet) 2011-11-07 16:07:16 -05:00
Havoc Pennington
5a5eb7acfe sync specs with the gist versions 2011-11-07 15:49:10 -05:00
Havoc Pennington
dc99fa3f1d add sbt build definition 2011-11-07 15:31:23 -05:00
Havoc Pennington
45b8c4074f add a bunch of JSON parser tests 2011-11-07 15:30:47 -05:00
Havoc Pennington
f47a73ce28 rename ConfigFactory to ConfigImpl 2011-11-07 12:26:20 -05:00
Havoc Pennington
8f22d6e7ab move src/ to src/main/java 2011-11-07 12:25:08 -05:00
Havoc Pennington
e53a7d6294 more typing and hacking; add json parser 2011-11-07 12:24:05 -05:00
Havoc Pennington
f5edf529a5 more hacking, mostly on json tokenizer 2011-11-06 23:14:42 -05:00
Havoc Pennington
6b54720ddd more work 2011-11-06 15:30:04 -05:00
Havoc Pennington
9ca157d34a WIP initial sketch 2011-11-05 16:45:25 -04:00