Commit Graph

903 Commits

Author SHA1 Message Date
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
Havoc Pennington
38fb8d6834 move publish settings to config/ project instead of global 2011-11-30 16:35:41 -05:00
Havoc Pennington
2365db970e Get the build ready for publishing releases
Not sure this is quite right, but closer than before.
2011-11-30 16:30:03 -05:00
Havoc Pennington
0ff5f1ff8c README code example fix 2011-11-30 11:18:46 -05:00
Havoc Pennington
2abd5ad09c minor README tweaks 2011-11-30 10:52:01 -05:00
Havoc Pennington
6d8e476dcf remove two "future directions" from the README
I don't think they made sense:

- "fallback lists" in substitutions can already be done another way
- the "delete" operator isn't clearly useful and feels imperative
  rather than declarative
2011-11-30 10:44:47 -05:00
Havoc Pennington
9578a79538 Better handle includes for files and classpaths
- support "/" to get an absolute file or resource
- fall back to a resource if there's no file
2011-11-30 10:35:21 -05:00
Havoc Pennington
5cc18bdc03 handle file: URLs the same as files; support including absolute filenames 2011-11-30 09:43:11 -05:00
Havoc Pennington
9689abd781 make ConfigException abstract 2011-11-30 09:24:46 -05:00
Havoc Pennington
9f9b351f0e add some more javadoc to ConfigException.java 2011-11-30 09:15:49 -05:00
Havoc Pennington
4896b7d75d When using "singleton holder" catch ExceptionInInitializerError and pull out the ConfigException if any 2011-11-30 09:01:48 -05:00
Havoc Pennington
62628b6404 some README cleanups 2011-11-30 01:55:56 -05:00
Havoc Pennington
9b44709c89 support -Dconfig.resource, -Dconfig.file, -Dconfig.url system props
These override application.{conf,json,properties} for ConfigFactory.load()
2011-11-30 01:51:36 -05:00