Havoc Pennington
2c8bf3be7e
v0.2.1
2012-01-20 18:50:09 -05:00
Havoc Pennington
bda507b474
Fix behavior of ${?} optional substitution overriding a field
...
The broken behavior was:
foo=10
foo=${?bar}
where 'foo' should be 10 if bar is undefined, but instead
ended up undefined. Now, foo will be 10 (which was the
documented behavior).
2012-01-20 18:37:07 -05:00
Havoc Pennington
8422f34f51
add -SNAPSHOT back after 0.2.0 release
2011-12-14 10:08:39 -05:00
Havoc Pennington
b89e263eb6
v0.2.0
2011-12-14 10:08:07 -05:00
Havoc Pennington
5302c1e90e
remove a nonsense comment from Tokenizer.java leftover from earlier patch iteration
2011-12-13 18:34:29 -05:00
Havoc Pennington
c5028bca3d
Throw BugOrBroken if a ValidationFailed is created with no problems
...
Reported by Max in blog comments, thanks.
2011-12-13 18:33:59 -05:00
Havoc Pennington
516b38f44a
Track the comments preceding a setting in the ConfigOrigin for the value.
...
The rule is that any block of comments uninterrupted by another token
or blank line, goes with the following array element or object field.
The comments are shown in the output of ConfigValue.render().
They are also available in the ConfigOrigin API for custom use.
Comments that don't precede an array element of object field
get discarded, they are not available anywhere.
2011-12-13 16:47:21 -05:00
Havoc Pennington
59a2d8d0df
try to fix rendering of bullet list in API docs README section
2011-12-10 09:30:41 -05:00
Havoc Pennington
1f3c19f029
discuss withFallback in the README
2011-12-10 09:12:35 -05:00
Havoc Pennington
456535327e
some minor docs tweaks
2011-12-09 16:35:26 -05:00
Havoc Pennington
0cb0a8e072
add doc comment to ConfigUtil
2011-12-09 15:50:53 -05:00
Havoc Pennington
a5c78e4f92
link to API docs
2011-12-09 15:48:46 -05:00
Havoc Pennington
45881d4e9d
update link to the maven repo
2011-12-09 10:22:17 -05:00
Havoc Pennington
69ce27d46f
post-release add -SNAPSHOT
2011-12-09 10:21:20 -05:00
Havoc Pennington
19a05b1b2e
v0.1.8 release
2011-12-09 10:21:04 -05:00
Havoc Pennington
6991862def
add ConfigUtil.joinPath, .splitPath, .quoteString
...
To help people get their escaping and quoting right.
2011-12-09 10:20:02 -05:00
Havoc Pennington
aa8a258b59
throw proper ConfigException if EOF occurs before a ${} token ends
...
It was throwing because -1 was passed to a %c format string
2011-12-09 10:12:01 -05:00
Havoc Pennington
694dd9bef5
rename ConfigUtil to ConfigImplUtil
...
Because I want to add a public ConfigUtil class.
2011-12-09 09:46:14 -05:00
Havoc Pennington
46c6d639b5
set crossPaths := false to avoid Scala version on publish
...
Since it's a plain Java project, the Scala version is not wanted.
2011-12-09 09:41:50 -05:00
Havoc Pennington
16622f74cb
link to the published binaries in README
2011-12-09 08:57:42 -05:00
Havoc Pennington
10e61d1bcd
remove a check for a null in fromBasename that no longer happens
2011-12-07 09:26:57 -05:00
Havoc Pennington
0582f33d94
when AnySyntax finds nothing, concat all the exception messages
...
previously we were discarding these which could be bad if one
of them was a weird IO problem of some kind.
2011-12-07 09:25:17 -05:00
Havoc Pennington
c90f46cf78
change to 0.1.7-SNAPSHOT post-release
2011-12-07 09:12:51 -05:00
Havoc Pennington
db4517cced
0.1.7
2011-12-07 09:12:14 -05:00
Havoc Pennington
b13f1fbe88
Fix allow missing for the AnySyntax parse methods, issue gh-1
...
This fix could in theory go further and Parseable.relativeTo
could return a ParseableNotFound instead of null, but for now
eliminate null from within ConfigImpl at least.
2011-12-07 09:08:43 -05:00
Havoc Pennington
002fd53e8e
in tokenizer precompute the lineOrigin
...
We know we need it on every line now because we use it for the newline token.
So no advantage to doing it on-demand. Better to share among all tokens on the line.
2011-12-06 15:11:17 -05:00
Havoc Pennington
81a4fe63f9
start fixing Token hierarchy by factoring origin() up to base class
2011-12-06 15:04:13 -05:00
Havoc Pennington
7d13a00f7d
remove usage of Tokens.newReservedChar preventing compilation
...
I didn't notice this before because apparently I had to 'clean' to see it
2011-12-06 14:57:37 -05:00
Havoc Pennington
59a7012bc1
back to -SNAPSHOT after 0.1.6 release
2011-12-06 10:10:49 -05:00
Havoc Pennington
c6124a1ecd
0.1.6
2011-12-06 10:10:35 -05:00
Havoc Pennington
0c55fd6f06
note that ${} is special in HOCON and not in Java properties
2011-12-06 00:20:21 -05:00
Havoc Pennington
f95c309462
add a couple of minor notes to the README about sbt and Java properties
2011-12-06 00:12:44 -05:00
Havoc Pennington
9cf554250b
add a note to the spec contrasting with Java properties syntax
2011-12-06 00:12:21 -05:00
Havoc Pennington
0c200aad93
fix markup of one of the bullet lists in the spec
2011-12-05 23:51:48 -05:00
Havoc Pennington
99739bead3
specify that file: URLs must work just like filenames
2011-12-05 23:51:15 -05:00
Havoc Pennington
6bba70d13c
Make tokenizer create a Problem token instead of throwing parse errors
...
This allows the parser to throw the error. The parser can add more
context such as the name of the key whose value is being parsed.
2011-12-05 21:54:31 -05:00
Havoc Pennington
38b835d966
correct README statement that include "application" won't work from a file
...
An earlier change made includes in files fall back to classpath.
2011-12-05 14:46:41 -05:00
Havoc Pennington
8e3f56cd82
0.1.5-SNAPSHOT
2011-12-05 14:27:24 -05:00
Havoc Pennington
69e28a8542
0.1.5
2011-12-05 14:27:09 -05:00
Havoc Pennington
6254a1bccd
improve error messages for reserved chars
...
Requires passing the char through the tokenizer to the parser
since the parser will have more contextual information to
include in the error.
2011-12-05 14:25:22 -05:00
Havoc Pennington
236a49fe3e
put back -SNAPSHOT for git
2011-12-05 13:23:18 -05:00
Havoc Pennington
d5b79c00b4
0.1.4
2011-12-05 13:23:06 -05:00
Havoc Pennington
005cd6da2c
Improve error messages to suggest quoting strings or using .properties
...
Also, when displaying a token use a more user-friendly format
like ',' instead of COMMA
2011-12-05 13:22:05 -05:00
Havoc Pennington
63b920acd1
add a short summary of the Examples
2011-12-04 20:51:24 -05:00
Havoc Pennington
1e1785cb75
switch version back to -SNAPSHOT post-release
2011-12-02 21:48:55 -05:00
Havoc Pennington
27980ab82c
0.1.3 and move to the proper publish url (maven- not ivy-)
2011-12-02 21:48:29 -05:00
Havoc Pennington
c7f6428ccb
back to -SNAPSHOT
2011-12-02 19:28:20 -05:00
Havoc Pennington
f2c96c6943
bump to 0.1.2
2011-12-02 19:21:13 -05:00
Havoc Pennington
23280e8c49
Publish 0.1.1 snapshot
2011-12-02 18:45:34 -05:00
Havoc Pennington
f6fd02508e
add Config.entrySet() which returns the set of paths and non-null values
2011-12-02 18:44:11 -05:00