[ 
https://issues.apache.org/jira/browse/ACE-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

J.W. Janssen resolved ACE-401.
------------------------------

    Resolution: Fixed

Made the configurator's variable substitution algorithm a little less strict 
when it comes to found '${' and '}' patterns. Also removed the replacement of 
unknown variables with an empty string.

Added unit tests to keep track on regression for this issue.

> ACE configurator throws exception when consuming logging property file
> ----------------------------------------------------------------------
>
>                 Key: ACE-401
>                 URL: https://issues.apache.org/jira/browse/ACE-401
>             Project: ACE
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Wilfried Sibla
>            Assignee: J.W. Janssen
>
> Exception in thread "Apache ACE Configurator" 
> java.lang.IllegalArgumentException: stop delimiter with no start delimiter: 
> %d{ISO8601} | %-5.5p | %C | %X{bundle.name} | %m%n
>       at 
> org.apache.ace.configurator.Configurator.substVars(Configurator.java:369)
>       at 
> org.apache.ace.configurator.Configurator.substVars(Configurator.java:307)
>       at 
> org.apache.ace.configurator.Configurator.processConfigFile(Configurator.java:201)
>       at 
> org.apache.ace.configurator.Configurator.doConfigs(Configurator.java:151)
>       at org.apache.ace.configurator.Configurator.run(Configurator.java:121)
>       at java.lang.Thread.run(Thread.java:722)
> This line from the cfg file causes the exception:
> log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %C | 
> %X{bundle.name} | %m%n



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to