Thanks Thiago, you are right.  I was so caught up in trying to use the
Symbols that I forgot the obvious.  :-)




On Fri, Feb 14, 2014 at 2:38 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 14 Feb 2014 15:24:53 -0200, Daniel Jue <teamp...@gmail.com> wrote:
>
>  Hi, I was wondering what is the best way of doing this:
>>
>
> Hi!
>
>
>
>  From the JVM arguments, I want our developers to specify a location to a
>> properties file, which will be treated as a symbol source.  I tried a
>> naive
>> approach and got a recursion error on SymbolSource.
>>
>> In one of my modules I have this:
>>
>> @Contribute(SymbolSource.class)
>> public void contributePropertiesFileAsSymbols(
>> OrderedConfiguration<SymbolProvider> configuration) {
>> configuration.add("DatabaseConfiguration",
>> new ClasspathResourceSymbolProvider(dbPropertiesFileLocation),
>> "after:SystemProperties", "before:ApplicationDefaults");
>> }
>>
>
> Why don't you use System.getProperty() to get the value passed as a
> command-line parameter?
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to